The Claude Code workflow: explore, plan, implement, commit

By Christophe Paka · Facts checked on 23 October 2026

You ask Claude to fix a bug. A plan scrolls by and you hit approve. Later a long diff appears, and you skim it and say yes. One reader called this habit "a ritual", not planning.

The cost shows up days later, as a bug in code nobody checked. A good Claude Code workflow has four steps, but only two moments where you decide. The figure below shows both gates, and where each one sends the work back.

Four steps: 1 Explore and 2 Plan in plan mode with no file edits, a gate where you approve the plan, 3 Implement, a gate where you review the diff and run tests, then 4 Commit. Dashed arrows send work back.
Figure 4.1: Explore, plan, implement, commit. Two gates, both yours: the plan before any edit, the diff before any commit.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Read the bar at the top. The grey bar says plan mode: no file edits until you approve. Plan mode is a setting where Claude reads your code and writes a plan, but changes no file. Steps 1 and 2 sit under that bar.

  2. Follow Explore into Plan. Box 1, Explore, is Claude reading the code the change touches. You ask, Claude reads, so you need no code skills here. Box 2, Plan, lists which files change and how. Its box notes that Ctrl+G opens the plan in your text editor, so you can fix it.

  3. Stop at the first gate. The middle box reads GATE: you approve the plan. You annotate and loop until it is right. The dashed arrow on the left says not right: back to explore. A wrong plan costs one round of notes.

  4. Watch Implement run in steps. Box 3, Implement, holds edits plus tests, in steps. Its note says correct early, tersely. The first minute of each step is when a correction costs the least.

  5. Stop at the second gate. The lower box reads GATE: you review the diff and run tests. A diff is the list of lines that changed. The dashed arrow says problems found: fix or rewind, never commit blind.

  6. End at Commit. Box 4, Commit, saves the change as a version in git with a descriptive message. On a shared project you also open a PR, a pull request that asks others to review your change first.

Key takeaways

  • Approve a written plan before any edit, and read the diff before any commit, every time.
  • Name the files, the goal and a check Claude can run in every prompt.
  • After two failed corrections on one issue, run /clear and restart with a better prompt.

Try this: run one change through both gates

Pick a change that touches more than one file in a project that is in git. Plan mode is worth it there.

  1. Press Shift+Tab until the status bar shows plan mode, or type /plan at the start of your prompt.
  2. Ask for the change. Name the files, what you see, and a test Claude can run to prove it works.
  3. When the plan appears, press Ctrl+G, cut the extras, save, then pick Yes, manually approve edits.
  4. When Claude says it is done, type ! git diff to see the real lines, or ask: explain this diff in plain words, file by file, and list anything I did not ask for.
  5. Run the tests yourself. If they pass and no file outside the task changed, ask Claude to commit with a descriptive message.

Expected result: One commit you have read, with a plan you approved before any file changed. If a gate found a problem, it went back before it reached git.

Questions readers ask

How do you review Claude Code's diffs without just rubber stamping them?

Read the real diff, not only Claude's summary: the summary is a claim, the diff is the change. Check files in this order: the changed files list, deleted or changed tests, settings files, then the rest. A diff too long to read in one sitting means the step was too big.

Is plan mode still worth it?

Yes, for the right size of task. If you can describe the diff in one sentence, just ask and then read the diff. If the change spans several files, or code other parts rely on, plan first. See why one big prompt drifts.

Can I review a diff if I cannot read code?

Yes. Ask Claude to explain the diff in plain words, file by file, and to list anything you did not ask for. Then compare its file list with the file names in the diff. A file you did not expect is your first question.

Sources: Best practices (Claude Code docs); Choose a permission mode (Claude Code docs); Common workflows (Claude Code docs).

This figure is from Claude Code Made Crystal Clear, chapter 4.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams