Thank you for your interest in contributing to git-ai. This is a cool moment for the industry and we're all here to build a the standard for tracking AI code.
- Rust https://rustup.rs/ (compiler and tooling)
- Taskfile https://taskfile.dev/ (modern make)
-
Fork the repository on GitHub
-
Clone your fork:
git clone https://github.com/YOUR_USERNAME/git-ai.git cd git-ai -
Build the project:
cargo build
-
Run the tests:
cargo test -
Check code coverage (optional but recommended):
task coverage
The project maintains a minimum code coverage threshold of 50% (enforced in CI). This threshold is based on the current coverage rounded down to the nearest 5%. Pull requests that reduce coverage below this threshold will fail CI checks.
It's often helpful to point your git-ai to a development build. The dev script builds the binary and installs it to ~/.git-ai/bin/git-ai, replacing the production binary so you can test changes with real git repositories.
sh scripts/dev.sh # debug build (default)
sh scripts/dev.sh --release # release buildIf ~/.git-ai isn't set up yet, the script will run the installer automatically first.
You can run specific git-ai commands directly with cargo. Because you're not addressing git or git-ai you need to tell cargo which codepath it should hit:
GIT_AI=git cargo run -- status
GIT_AI=git-ai cargo run -- checkpoint- Check existing issues: Look for related issues or feature requests
- For new features or architectural changes: We encourage you to chat with the core maintainers first to discuss your approach. This helps ensure your contribution aligns with the project's direction and saves you time.
-
Create a new branch for your changes:
git checkout -b my-feature-branch
-
Make your changes and commit them with clear, descriptive messages
-
Push to your fork:
git push origin my-feature-branch
-
Open a Pull Request against the main repository
-
Reference any related issues in your PR description (e.g., "Fixes #123" or "Related to #456")
-
Wait for review from the maintainers
The project uses standard Rust formatting. Please run cargo fmt before committing your changes.
If you have questions about contributing, feel free to open an issue or reach out to the maintainers.
- Discord: https://discord.gg/XJStYvkb5U
- Office Hours: https://calendly.com/d/cxjh-z79-ktm/meeting-with-git-ai-authors