Trace who changed a line
If you ask
“Who last modified the authenticate function in auth.ts, and what was the context?”
Then
Find who wrote a specific line and when.
Works in Claude, Codex, Cursor & any MCP agent
How this prompt works
-
Turn on the Git connector in Claude, ChatGPT or Cursor — once.
-
Paste the prompt above. No code, no menus.
-
Find who wrote a specific line and when.
FAQ
How do I trace who changed a line with Git?
Add the Git MCP connector once, then paste this prompt into Claude or ChatGPT: "Who last modified the authenticate function in auth.ts, and what was the context?". Your AI runs it in Git.
Do I need to code?
No. You install the connector once (a short config or one click), then ask in plain words. The prompt on this page works as-is.
Which AI assistants work?
Claude (Desktop, Code), Cursor, ChatGPT and other MCP clients. The same prompt works across them.
Set up Git in Claude
Copy-paste config, setup steps and more ready-to-run prompts on the connector page.
Open Git setupMore prompts