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
- Install Graph Code and add the project
- 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
- When the loop pauses, open its terminal workspace and review the turn's changes
- Correct it in the session or let it continue
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer