Claude Code
Track Claude Code-generated code with Git AI, including line-level attribution, prompt history, token usage, and tool activity across commits and pull requests.
Supported since: 2025-09-01

Capabilities
Claude Code fully supports the Git AI standard.
| Feature | Supported |
|---|---|
| Agent Mode | ✓ |
| Prompt Saving | ✓ |
How this integration works
Claude Code has native support for Hooks. When you install Git AI it will automatically install the necessary hooks on Write|Edit|MultiEdit.
{
"hooks": {
"PostToolUse": [
{
"hooks": [
{
"command": "git ai checkpoint claude --hook-input stdin",
"type": "command"
}
],
"matcher": "Write|Edit|MultiEdit"
}
],
"PreToolUse": [
{
"hooks": [
{
"command": "git ai checkpoint claude --hook-input stdin",
"type": "command"
}
],
"matcher": "Write|Edit|MultiEdit"
}
]
}
}Troubleshooting
Make sure there are no Hook Errors
Claude Code will show you which Hooks it runs and error if there are any issues invoking each hook.
If you see anything, please open an issue on the GitHub repository.
Cursor
Track Cursor-generated code with Git AI, including line-level attribution, prompt history, token usage, and tool activity from edit to production.
GitHub Copilot
Track GitHub Copilot-generated code with Git AI attribution from local edits to commits, pull requests, dashboards, and production analysis.