git-courer redefines Git operations with a unique MCP server that understands code context before committing changes. By analyzing the abstract syntax tree (AST) and generating human-readable commit messages without unnecessary token usage, it enhances version control efficiency and clarity.
git-courer is an innovative MCP server designed to revolutionize the way Git operations are performed by intelligently processing your code before committing. This tool eliminates the need for tokens in git operations while offering seamless integration with local machine learning models like Ollama.
Unlike conventional tools that simply wrap git diff with LLM calls for generating commit messages, git-courer analyzes the Abstract Syntax Tree (AST) to build a dependency graph. This allows it to determine the type of changes—such as new functions, modified signatures, or breaking changes—using Go without relying on external models for decision-making. The LLM is only tasked with crafting a human-readable message based on these analyses.
pr-review command to run tests, detect merge conflicts, and review change statistics before merging.git-courer release command facilitates easy versioning and changelog generation, automatically defining version increments based on commit types.git-courer encompasses the entire git workflow, supporting essential operations such as commits, pushes, merges, and branches, as well as utilities for syncing and configuring repositories. All commands return structured JSON responses, simplifying scripting and automation without the hassle of text parsing.
The tool utilizes both local resources and cloud-based LLMs effectively. It processes changes locally and sends structured commit contexts—comprising 'WHY' and 'WHAT' information—to a cloud LLM for message crafting, enhancing efficiency and minimizing token usage.
git-courer features a user-friendly interactive TUI for configuration and management. It automatically configures multiple supported AI tools, providing integration flexibility with various backend systems, including Ollama and other OpenAI-compatible servers.
The project is open for contributions and aims to foster a collaborative environment. Users are encouraged to report issues, suggest features, or contribute to enhancements by referring to the extensive documentation.
For a detailed workflow demonstration and comprehensive command references, please consult the docs/commands.md.
In summary, git-courer serves as a complete solution for git operations enhanced by intelligent analysis and efficient processing, making it a valuable tool for developers seeking to optimize their workflow.
No comments yet.
Sign in to be the first to comment.