Code Tycoon Get Code Tycoon

Blog / Sessions

Reviewing What Claude Code Changed Today: A 10-Minute...

A 10-minute end-of-day routine to review Claude Code's changes: exact git commands, /diff, /code-review, what to check first, when to rewind or revert.

Reviewing What Claude Code Changed Today: A 10-Minute...

Agents write code faster than you can read it. A fixed ten-minute pass at the end of the day, in a set order, catches most of what goes wrong: files that should not have moved, tests that were edited to pass, and changes nobody asked for.

If you run Claude Code on several tasks a day, the diff piles up. You approved each step as it went, or you told it to run unattended, and now there are 30 changed files across 4 branches. Reading everything line by line is not realistic. Reading nothing is how a deleted test or a rewritten config file ships.

This is a routine we use on our own work, written so you can copy it. It uses plain git plus the review commands that ship with Claude Code, and it takes about ten minutes for a day of work on one project. The commands below are standard git and documented Claude Code commands; we cite the docs for the Claude Code parts. We did not time anyone else, so treat "ten minutes" as the budget we aim for, not a measured result.

Code Tycoon has a task log and daily digest for exactly this purpose, mentioned once, near the end. Everything in the routine works without it.

Table of contents

The routine at a glance

Minutes Step What you are looking for
0-2 Inventory How much changed, in which files, on which branches
2-4 Unexpected changes Lockfiles, config, migrations, deletions, edited tests
4-6 Run the checks Tests, type check and lint, run by you
6-8 Read risky diffs Auth, payments, data access, anything touching users
8-9 Second reader /code-review or /security-review on the diff
9-10 Decide and record Keep, revert or rewind; write one line per task

The order matters. Cheap, mechanical checks come first so that your reading time goes to the files that earned it.

Before you start: make the review possible

A review is only quick if the changes are easy to isolate. Three habits make that true, and they cost nothing.

One branch or worktree per task. If every task lives on its own branch, "what did Claude change" is git diff main...branch, with no guessing. Claude Code can create the worktree for you: claude --worktree feature-auth, and its docs describe the result as "a separate checkout on its own branch" (Claude Code docs). Worktree mechanics, and tools built on them, are in Claude Squad vs ccmanager vs Conductor.

Commit as you go. Ask Claude to commit at each working step, or commit yourself between prompts. Small commits give you something to revert to, and git log becomes a record of the day. A single uncommitted pile of changes is the hardest thing to review.

Know your base. Pick a reference point, usually main or the commit you started from this morning. Every command below measures against it. We use BASE=main in the examples; change it to a commit hash if that suits you better.

Minutes 0 to 2: inventory

Start with size, not content. You want to know whether you are looking at 3 files or 300.

git status --short
git log --since=midnight --oneline --no-merges
git diff --stat main...HEAD | tail -20

What each tells you:

  • git status --short shows uncommitted work. If there is a lot, stop and commit or stash it, because everything after this assumes the changes are in commits.
  • git log --since=midnight --oneline lists today's commits, one line each. Read the messages. If a message describes something you do not remember asking for, mark it.
  • git diff --stat ends with the totals: files changed, insertions, deletions. A large deletion count deserves a look.

Write down the numbers. If today's total is far above a normal day for you, the review budget goes up too, and that is useful to know before you start.

If the changes are in Claude Code's current session, /diff is the in-session version of this step. The docs describe it as a way to "Review the changes in your working tree, including the edits Claude has made so far" (commands reference).

Minutes 2 to 4: look for what should not have changed

The most useful part of the review is not reading what Claude changed on purpose. It is finding what it changed incidentally. Run:

git diff --name-status main...HEAD

The letters tell you what happened: A added, M modified, D deleted, R renamed. Scan for these specific patterns.

Deletions (D). Every deleted file needs a reason. Deleted tests are the worst case: an agent that cannot make a test pass sometimes removes it.

Edited tests. If a test file shows M and you did not ask for test changes, open it. Check the assertions. A test that was loosened to make a failing run pass is a bug that looks like a fix. Run git diff main...HEAD -- '*test*' to see only test changes.

Lockfiles and dependency manifests. package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum. A new dependency you did not ask for is a decision made for you. Look at what was added with git diff main...HEAD -- package.json.

Config and environment files. CI configuration, Dockerfiles, .env.example, build settings, hooks. These change how the whole project builds and runs, and they change quietly.

Migrations and schema files. A migration changes stored data or its structure, and is harder to take back than a code edit. Read every one.

Files far from the task. If the task was a button on the settings page and the diff touches the billing module, ask why. Sometimes there is a good reason, such as a shared helper. Sometimes the agent "tidied" something.

A quick filter that surfaces the unusual:

git diff --name-status main...HEAD | grep -E '^(D|R)|lock|\.env|Dockerfile|\.github|migrations?/'

This is a heuristic. It will miss things and flag harmless ones, so adjust the pattern to your own project's risky paths. The point is that you decide in advance which paths are risky, instead of discovering them in the diff.

Minutes 4 to 6: run the checks yourself

Run your tests, type checker and linter yourself, on the final state of the branch. Do not rely on Claude's report that they passed.

There are two reasons. First, the agent may have run the checks earlier in the session and then made further changes. Second, it may have run only a subset. Running the full suite takes you a few minutes of wall time while you read something else, and it is the check that does not depend on anyone's memory.

npm test && npm run typecheck && npm run lint

Substitute your own commands. If you have a CI pipeline, push the branch and let CI do it, then read the diff while it runs. The goal is the same either way: a pass or fail that you did not get from the agent's own summary.

If checks fail, note which ones and move on to reading. A failing check is a pointer to where to read first.

Minutes 6 to 8: read the risky diffs

Now read, but only the parts that earned it. From the previous steps you have a short list: deleted files, edited tests, new dependencies, config changes, anything near the task's edge. Add any code that handles:

  • authentication or authorization;
  • money or billing;
  • user data, personal data or anything under privacy rules;
  • input from outside the system (forms, webhooks, query strings);
  • file paths, shell commands or SQL built from variables.

For each, read the diff, not the file:

git diff main...HEAD -- path/to/file

Read for three things.

Does it do what the task said, and only that? Extra behavior is a finding even if it looks helpful.

Does it handle the failure case? Agents write the success path well and are less reliable on errors, empty inputs and timeouts. Look for what happens when the call fails.

Does it fit the code around it? A new helper that duplicates an existing one, or a new pattern in a codebase that uses another, is the start of drift. We write about catching it systematically in architectural drift in AI-written code.

Stop at two minutes. If you are not done, the unread files go on tomorrow's list, and you write that down. A review that runs long gets skipped the next day.

Minutes 8 to 9: get a second reader

Claude Code has built-in review commands, and they are a cheap second reader. Per the commands reference:

  • /code-review (alias /review) will "Review the current diff, or a PR number, branch, or path you pass, for correctness bugs." It takes an effort level (low through max) and flags such as --fix and --comment.
  • /security-review will "Analyze the changes on your current branch for security vulnerabilities", comparing your branch against origin's default branch, and needs an origin remote (commands reference).

Use them, with two cautions. First, a model reviewing a model's work shares some blind spots, so treat the output as a list of places to look and not as a verdict. Second, start without --fix. Letting a review rewrite the code you are trying to review makes the diff move under you. Run the review, read the findings, and decide. If you want a reviewer beyond the built-in commands, three code review skills compared shows what each checks.

An automated pass is most valuable for what you skipped in the last step: the files you did not have time to read. Ask it about those by path.

Minute 9 to 10: decide and record

For each task or branch, make one of three decisions:

  1. Keep. Merge it, or leave it queued for a normal pull request.
  2. Revert part. Take the good parts, undo the rest.
  3. Reject. Throw the branch away and re-run the task with a better prompt.

Then write one line per task. For example: "Settings page: kept. Unrequested lockfile change reverted. Test for empty input missing, add tomorrow." That line is the whole record. It takes thirty seconds and it is what you read the next morning, instead of rebuilding the context from git log.

If a task was rejected, write down why in terms of the prompt: what was unclear, which constraint was missing. Repeated rejections for the same reason are a CLAUDE.md entry waiting to be written. When those entries grow into a whole procedure, moving a CLAUDE.md section into a skill keeps the file short.

When several sessions touched the same project

If you run parallel sessions, add one check: did two sessions edit the same file?

git log --since=midnight --name-only --pretty=format: | sort | uniq -c | sort -rn | head -10

This counts how many commits touched each path today. High numbers on a file are not proof of a collision, because one session can commit the same file many times. They are a prompt to ask whether two tasks fought over it. Separate branches hide the problem until merge, which is the point at which you pay for both sets of work.

If you run many sessions across projects, a per-day summary is worth having. The task log and daily digest views in Code Tycoon list each task's prompts, changed files and cost, and alert when two sessions edit the same file (the views). It is one way to do the inventory step without typing the commands; the commands above do the same job by hand.

How to undo what you reject

There are two undo mechanisms and they cover different ground.

Git is permanent and covers everything. To drop a bad commit on a branch you own: git revert <commit> keeps history and is safe on shared branches; git reset --hard <commit> discards and is for local branches only. To take back one file from the base: git checkout main -- path/to/file. To throw away a whole experimental branch: git branch -D branch-name, and remove its worktree with git worktree remove.

Claude Code checkpoints are quicker and narrower. The checkpointing docs say Claude Code "automatically tracks Claude's file edits", and /rewind (aliases /checkpoint and /undo) opens a menu to "Restore code and conversation", restore only one, or summarize (checkpointing docs). Know their limits, which the docs state plainly:

  • Files changed only by Bash commands are not tracked, and "To revert it, use version control, such as Git."
  • Most subagent edits are not captured in your checkpoints.
  • Changes from outside the session and from other concurrent sessions are normally not captured.
  • Checkpoints are "designed for quick, session-level recovery. For permanent version history and collaboration, continue using version control."

In practice: use /rewind during the session while you are still iterating, and git for anything you are reviewing at the end of the day. The end-of-day review is a git job.

FAQ

How long should it take to review a day of Claude Code changes?

Aim for about ten minutes per project for a normal day. That is a budget, not a measurement. If a day produced far more change than usual, give it more time, or split the review across the next morning.

What should I check first in a Claude Code diff?

What should not have changed: deleted files, edited tests, lockfiles, config and migrations. Run git diff --name-status against your base and scan for those before you read any code.

Can Claude Code review its own changes?

Yes. /code-review reviews the current diff for correctness bugs, and /security-review analyzes your branch for security vulnerabilities. Treat the output as pointers to read, not a verdict, and run it without --fix first.

How do I see exactly what Claude changed in a session?

Use /diff inside Claude Code to review the working tree, including its edits so far. For a full picture, git diff <base>...HEAD on the task's branch shows everything.

Does /rewind replace git?

No. The docs call checkpoints a tool for quick session-level recovery and say to keep using version control for permanent history. Bash-only changes and most subagent edits are not tracked.

Why did Claude edit my tests?

Sometimes because a test failed and the shortest path to green was to change the test. Always read edited test files, and prefer telling Claude in CLAUDE.md or the prompt that tests are not to be modified unless asked.

Should I let Claude commit for me?

It helps the review: small commits are easy to inspect and revert. You can tell Claude to commit at each working step. Read the messages, because they describe what it thinks it did, which is not always what the diff shows.

Conclusion

A routine beats good intentions. Set a base, inventory the change, look for what should not have moved, run the checks yourself, read only the risky diffs, ask a second reader about the rest, then decide and write one line. Ten minutes a day is enough to catch the failures that matter. For the cost side of the same sessions, see what does Claude Code really cost per month; to see tasks, changed files and cost in one place, self-host Code Tycoon is free.

Related articles


About this research

Code Tycoon is a tool that runs Claude Code and Codex sessions on a dedicated server and maps, prices and tracks them; we run seventeen of our own products on it, and the routine above is how we go through the day's changes. The Claude Code facts come from its commands and checkpointing documentation, read on 2026-11-23. The git commands are standard; adjust paths and the base to your repository. We did not time other teams, so the ten-minute budget is a target.

Content reviewed and updated: 2026-11-26


Keep reading