Minideas

Idea 2 of 15 · Claude Code

Steering a session

Plan first, interrupt or rewind when it drifts, and keep the context window under control.

plan1. read cart.js2. add a failing test3. fix, rerun testsOK1. plan modeit proposes, edits nothing2. then it editsonce you approve
1 / 3

Just ask, or plan first

If you know what you want, just ask. When the approach is unclear, the change spans many files or the code is new to you, switch to plan mode (Shift+Tab) first: Claude proposes a plan without editing anything, and you correct it before you approve.

/rewinda checkpoint at every prompt you sendrestore:codeconversationbothEscstops it at any moment, so you can steer
2 / 3

Esc and /rewind

Press Esc to interrupt and redirect it at any time. Each prompt you send is a checkpoint: /rewind restores the code, the conversation or both. Changes outside the files it edited, such as data in a database, can’t be rewound.

your messagesits repliesfiles it readtest resultssummaryeverything shares one context windowfull? it compacts; or /compact, /clear yourself
3 / 3

The context window

Messages, files read, command output and Claude’s replies all share one context window. When it fills up, Claude Code compacts older turns into a summary, losing some details. Add a focus, like /compact focus on the discount bug, to choose what the summary keeps, or /clear before an unrelated task. Big side jobs can go to a subagent instead, coming up next.

Swipe the card, or use the arrow keys.

Go deeper

Each card stack gives you the idea. These open resources go into the detail.

Notes on the Claude Partner Network learning path on Anthropic Academy.