Skip to content

feat: Git AI integration#11976

Open
acunniffe wants to merge 3 commits intoRooCodeInc:mainfrom
acunniffe:feat/git-ai-direct-integration
Open

feat: Git AI integration#11976
acunniffe wants to merge 3 commits intoRooCodeInc:mainfrom
acunniffe:feat/git-ai-direct-integration

Conversation

@acunniffe
Copy link

@acunniffe acunniffe commented Mar 21, 2026

Related GitHub Issue

No issue. Spoke with Roo in our Git AI <> Roo slack connect. attn: @mrubens

Description

When the git-ai CLI is installed on a host, Roo Code calls git-ai checkpoint before and after every file edit so that its contributions are marked as roo-code in git-ai blame.

Since Roo Code does not have a hooks system this integration is done via the direction integration approach.

How it works:

  • A singleton checks if git-ai is installed on the host. That check guards every other call to the git-ai integration so nothing runs on machines that don't have git-ai installed.
    -src/services/git-ai/ module exposes two functions — gitAiBeforeEdit and
    gitAiAfterEdit called inside the write_to_file, edit_file, edit, search_replace, apply_diff and apply_patch tools.

Test Procedure

  1. Install git-ai CLI
  2. Open a git repo in VS Code with Roo Code
  3. Make edits using different tool types (write_to_file, edit_file, edit, search_replace,
    apply_diff, apply_patch)
  4. Run git-ai blame — verify AI-edited lines are attributed to roo-code, not the
    human

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Additional Notes

discord: aidanc

Interactively review PR in Roo Code Cloud

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Enhancement New feature or request labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant