Cursor
Track Cursor-generated code with Git AI, including line-level attribution, prompt history, token usage, and tool activity from edit to production.
Supported since: 2025-10-15
Capabilities
| Feature | Supported |
|---|---|
| Agent Mode | ✓ |
| Tab Completion | ✓ (beta) |
| Cursor CLI | ✓ |
| Prompt Saving | ✓ |
How this integration works
Cursor IDE has native support for Hooks. When you install Git AI it will automatically install the necessary hooks beforeSubmitPrompt and afterFileEdit.
{
"hooks": {
"afterFileEdit": [
{
"command": "/Users/aidancunniffe/Desktop/git-ai/target/debug/git ai checkpoint cursor --hook-input stdin"
}
],
"beforeSubmitPrompt": [
{
"command": "echo 'them'"
},
{
"command": "/Users/aidancunniffe/Desktop/git-ai/target/debug/git ai checkpoint cursor --hook-input stdin"
}
]
},
"version": 1
}Troubleshooting
Make sure there are no Cursor Hook Errors.
Got to CTRL + SHIFT + P and search for "Output: Show Output Channels". Then select "Hooks".
This will show you a log of any errors encountered calling the Cursor Hooks.
If you see anything, please open an issue on the GitHub repository.
If you're not seeing Cursor Hook invocations when the agent is working your hooks.json file is likely corrupted or otherwise not being read correctly.
DIY Dashboards
Track AI authorship across your repos without the Git AI platform — install over MDM, run the CI actions, and build your own dashboards from stats and raw git notes.
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.