How to understand code your AI coding agent wrote
Read one run at a time, right after it finishes, starting from what you asked for. For each important change, write one sentence about what a user can now do. Read the risky files first. BuildGist writes that first read for each meaningful run.
The checklist
- Reread the request you gave the agent.
- Run
git statusandgit diff --statto list the files and the size of each change. New untracked files show up ingit statusonly. - Open the risky files first: sign-in and permissions, anything that deletes data, payments, new dependencies, configuration.
- For each important change, finish the sentence "Now a user can ...".
- Mark anything you could not finish as a question, and ask about that change by name.
- Check the change against the request: what it did that you asked for, and what it did past it.
- Run the tests that cover the risky files, or write down that none do.
- Write the short summary below so the next person, or the next agent, starts from it.
One run, one sentence
Start from the request
Reread what you asked for before any of the code. The question is whether the change matches that request, and what it did past it.
List what changed
git status
git diff --stat
That is the files and the size of each change. Committed runs are covered in what did Claude Code change?
Read in order of risk
Read sign-in and permissions first, then anything that deletes data, then payments, new dependencies and configuration. Read interface text and docs last.
One sentence for each important change
Finish "Now a user can ..." for each important change. If you cannot, that is the part to ask about, naming that change rather than asking for the whole run again.
On the BuildGist home page, a real Claude Code run, shortened and edited, asked to "Add login with Google." 7 files changed, +224 -16. Two sentences cover what that example shows:
- Now a visitor can sign in with Google, and the app never sees their password. Google checks who visitors are and vouches for them. The name for that is the OpenID Connect (OIDC) authorization code flow.
- Now any signed-in user can delete anyone else's note, because nothing checks that the note is yours.
The second sentence is the high concern in that example. Sign-in working does not show it.
Keep up with each run
One read when the run ends stays short. Leaving several runs unread means the next read is all of them at once.
Explain a run to a teammate
A teammate, a reviewer or a manager who did not watch the run needs the same few facts. Copy this, fill it in from the steps above, and paste it into the pull request, the chat or the ticket.
Asked for: (the request, in one line)
Files changed: (from git diff --stat)
Now a user can: (one sentence per important change)
Past the request: (anything it did that you did not ask for)
Check before merging: (the risky path, and whether a test covers it)
Open questions: (changes you could not explain)
Keep it in plain words. Someone who does not read the code should be able to say what changed and what could go wrong. The line that matters most is often "Check before merging". In the Google sign-in example, that line is "any signed-in user can delete anyone else's note". Before you merge, the steps in how to review AI-generated code before you merge pick up from here.
BuildGist writes the first read
After each meaningful run of Claude Code, Cursor or Codex, BuildGist writes a plain-English explanation of what changed, what it means and what to check, and puts it in your Inbox. It works from uncommitted work too, and small changes stay quiet. It is written by AI, so check important behavior against the code and tests.
What you need
- A Mac with Apple silicon and macOS 12 or later.
- Claude Code, Cursor or Codex.
- A Git project. No commit, push, remote or GitHub repository is needed.
- A GitHub account, to sign in. BuildGist does not access your GitHub repositories.
Codex needs you to approve BuildGist once, in Codex. BuildGist shows the steps. Setup is in Getting started.
To explain a run, your computer sends BuildGist what that run needs, and BuildGist passes it to Anthropic. BuildGist does not keep this material. It does not send your whole repository, files the run did not change, or files named like secrets, such as .env files and keys. It keeps the explanation and short cited excerpts of changed code, at most 12 lines each. Secret masking is best-effort. Privacy has the full list.
Every account gets 7 days of BuildGist Pro free, with no card. The 7 days start at your first explanation or Continue handoff. Nobody is charged when the trial ends. After that, BuildGist Pro is $12 per month, plus any applicable tax shown at checkout. See pricing.
Try BuildGist Download for Mac
No Mac handy? Try it in your browser: paste a session or a git diff and see the explanation.
Apple silicon, macOS 12 or later. United States, 18 or older.
Related
- What did Claude Code change?
- Switch from Claude Code to Codex
- Hand off Claude Code to Cursor
- Review what Codex changed
- You’ve hit your session limit in Claude Code
- You’ve hit your usage limit in Codex
- Keep context across agents
- Review AI code before merging
- BuildGist or the git diff
- Claude Code session history
- Undo Claude Code changes
- BuildGist vs CLAUDE.md, AGENTS.md and HANDOFF.md
- Keep context from Claude Code to Cursor
- Resume an agent session in another tool
- BuildGist vs Conductor
- Codex context window full
- Undo Codex changes
- Cursor usage limit reached
- Review Cursor agent changes
- Codex session history location
- Your conversation is too long in Cursor
- One default coding agent, or two?
- Tools that summarize agent sessions
- Switch from Codex to Claude Code
- Move from Cursor to Claude Code
- Switch from GitHub Copilot to Claude Code
- Move from Windsurf to Cursor
- Switch from Gemini CLI to Claude Code
- Coding agent crashed mid-task
- Claude Code lost context after compacting
- What commands did the agent run?
- Turn an agent session into a PR description
- Which coding agents read AGENTS.md?
- Switch from Cursor to Codex
- Export a Claude Code conversation
- Keep the dead ends when you switch agents
- Write a handoff note for a fresh session
- Usage limit hit in the middle of a task
- Mac apps that explain agent runs
- Explain a Claude Code session
- What did my agent change before I merge?
- BuildGist vs an AI PR reviewer
- Review what Claude Code changed
- Review what Copilot changed
- Review what Windsurf changed
- Review what Gemini CLI changed
- Review what Devin changed
- Review what Cline changed
- Review what Aider changed
Questions: kayvanandre@gmail.com.