PitchHut logo
A smart MCP server for Git with zero token operations.
Pitch

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.

Description

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.

Features

Intelligent Commit Generation

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.

Streamlined Workflows

  • Commit Preview: Review changes and automatically generate structured commits based on dependencies.
  • Pre-PR Checks: Utilize the pr-review command to run tests, detect merge conflicts, and review change statistics before merging.
  • Automated Releases: The git-courer release command facilitates easy versioning and changelog generation, automatically defining version increments based on commit types.
  • Automatic Backups: Safeguard against errors with automatic backups before any destructive operations, enabling easy rollbacks.

Comprehensive Git Functionality

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.

Local and Cloud Collaboration

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.

Simplified Configuration and Commands

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.

Ongoing Support and Contributions

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.

Demo

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.

0 comments

No comments yet.

Sign in to be the first to comment.