Steering and recovering agent sessions
For engineers
Interrupting, correcting, rewinding and restarting a coding agent session before it drifts
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
A coding agent starts editing generated migration files that you never want touched. What is the best moment to step in?
Check yourself · 2 of 5
An agent edited eight files and also ran a database migration. You use the checkpoint rewind. What is true afterwards?
Check yourself · 3 of 5
An agent has now twice re-applied a fix you rejected earlier in a long session. What is the best response?
Check yourself · 4 of 5
Why does a multi-day agent task need a progress file in the repository?
Check yourself · 5 of 5
Which correction is most likely to change the agent's next step?
Topics
- Interrupting and redirecting a running agent4 min read · When to stop an agent mid-run, how to correct it in one message, and queued notes versus a hard stop
- Checkpoints, rewind and undo for agents5 min read · Restoring code and conversation to an earlier point, what checkpoints miss (shell side effects, databases) and git as the real net
- Starting fresh versus continuing a session5 min read · Signs of context rot, clearing or compacting, and a handoff note that lets a new session pick up the work
- Resuming agent work across days5 min read · Progress files, task lists and commit history that let you or another session resume a multi-day task cleanly
Start here
- Checkpointing (Claude Code docs) (opens in a new tab)DocsFree
Rewind menu, what is tracked, and the stated limits: shell changes and external edits are not restored.
- Review AI code edits (VS Code docs) (opens in a new tab)DocsFree
How an editor-based agent shows edits and lets you keep or undo them one by one.
- Effective harnesses for long-running agents (Anthropic) (opens in a new tab)ArticleFree
Progress files and clean commits that let each new session continue where the last stopped.
Helps to know first
110 questions · last verified 2026-12