Agents
Cursor
Track Cursor generated AI-code all the way to production.
Supported since: 2025-10-15
Install Git AI
No special setup required. One command, no per-repo config.
curl -sSL https://usegitai.com/install.sh | bash
Prompt Cursor & Commit
No workflow changes. AI attribution is added automatically on commit.
AI Blame & Ask
See who wrote every line — human or AI. Use git-ai ask to query the original prompts and context behind any AI-generated code.
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.