DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to review an agent refactor step by step with Graph Code

Use a turn-based Graph Code loop so the agent pauses after every turn inside its session and waits for your review before it continues.

Short answer: Install Graph Code and add the project; then create a loop and choose Turn-based, which hands off the check to you; write the refactor goal and the order you want it done in. All steps.

Who it is forA developer doing a risky refactor who wants agent speed but a human check at every step.

The problemLetting an agent refactor unattended can produce a huge diff you cannot review; prompting it step by step by hand is slow.

The outcomeA refactor done in reviewed increments, in a live session you can steer, that ends only when you end it.

What you need first

  • macOS
  • At least one CLI coding agent installed

Steps

  1. Install Graph Code and add the project
  2. Create a loop and choose Turn-based, which hands off the check to you
  3. Write the refactor goal and the order you want it done in
  4. When the loop pauses, open its terminal workspace and review the turn's changes
  5. Correct it in the session or let it continue
  6. End the loop yourself once the refactor is complete

Prompt for your agent

Set up a GraphCode turn-based loop for this refactor: <describe it>. Break it into small steps, one per turn, and after each turn summarise the files changed and the tests run so I can approve the next step.

Caveat. Requires macOS 15 or newer on Apple Silicon. Building from source needs zig; the DMG or Homebrew is simpler.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for scgopi/GraphCode and "Review an agent refactor step by step"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer