Sessions and effort
A session is the context window a piece of work runs in. Two choices decide how well it goes: where one session ends and the next begins, and how much effort the model spends inside it.
The five options at a phase boundary
Section titled “The five options at a phase boundary”Matt Pocock’s router calls a phase “a chunk of work inside a session: the grilling, the implementation, the QA” (source: Matt Pocock: Phase boundaries), and keeps the decision about the context for the gap between two phases: “mid-phase there is no decision to make: continue, or split the work that’s left into subagents” (source: Matt Pocock: Phase boundaries). At the boundary come five options, asked from the top, and “the first yes wins” (source: Matt Pocock: Phase boundaries):
- Continue, when “the next phase needs this phase as a primary source, or you have enough smart zone left” (source: Matt Pocock: Phase boundaries) for it to fit. “Grilling → implementation is the standard yes” (source: Matt Pocock: Phase boundaries).
/clear, when everything in the session is disposable. It is “the cheapest move on the board” (source: Matt Pocock: Phase boundaries), and “the old session stays resumable” (source: Matt Pocock: Phase boundaries); clear a context that still mattered, though, and you lose “the why behind what you built” (source: Matt Pocock: Phase boundaries)./handoff, only when the work travels: to “a new harness” (source: Matt Pocock: Phase boundaries), a new directory or repository, a colleague, or a detour found mid-phase that would derail it. “What /handoff buys is portability” (source: Matt Pocock: Phase boundaries).- A subagent, when the work is “scoped tightly enough to run with you away from the keyboard, no steering” (source: Matt Pocock: Phase boundaries). “Automated review is the standard case” (source: Matt Pocock: Phase boundaries).
/compact, otherwise, with an instruction “so the summary keeps what the next phase needs” (source: Matt Pocock: Phase boundaries).
The order is a cost order. “Every move except Continue turns a primary source into a secondary source” (source: Matt Pocock: Phase boundaries), a summary in place of the session as it happened, and reaching for /compact first risks “a fresh session that is confidently wrong about a decision the summary flattened” (source: Matt Pocock: Phase boundaries). So the instruction names what the next phase needs:
/compact keep every decision with its reason, the acceptance criteria and what is out of scope; next comes /to-tickets
The plan for these docs follows the tree: the research, the grill, the spec and the tickets share one window, compacted at the nearest boundary only if it nears the smart zone; then a clear, and a fresh session per ticket.
The smart zone as a budget
Section titled “The smart zone as a budget”Matt Pocock’s dictionary turns the smart zone into a rule for sessions: “doing one task per session gives each task the sharpest part of the session” (source: Matt Pocock: Dictionary of AI coding, smart zone), and “when a single task is bigger than one smart zone, split it” (source: Matt Pocock: Dictionary of AI coding, smart zone). That is one reason for a fresh session per ticket on this site; Build on a branch shows the rhythm.
Drawn to scale on a “1M window” (source: Anthropic: Model configuration).Drawn to scale on a “200K window” (source: Anthropic: Model configuration).
Before you type
~7.8K (source: Anthropic: Explore the context window) tokens in Anthropic's illustrative session: system prompt, CLAUDE.md, auto memory, MCP tool names, skill descriptions.
What the session adds
Prompts, replies, tool output and “each file read” (source: Anthropic: Explore the context window).
Where the smart zone ends
Commonly around “125K-150K tokens” (source: Matt Pocock: Dictionary of AI coding, smart zone) on frontier models, whatever the window.
What a compaction reloads
~16.6K (source: Anthropic: Explore the context window) tokens once that session is compacted: a summary, recent files, invoked skills, and the startup content minus its skill descriptions.
Effort
Section titled “Effort”Effort sets how much the model reasons before it answers. Current models take “low, medium, high, xhigh, max” (source: Anthropic: Model configuration), and “each level trades token spend against capability” (source: Anthropic: Model configuration).
My default is high. I go higher for one session at a time: xhigh to plan, or for a change that touches many files; max for a risky review or a hard bug. Trivial edits get medium. In the /effort slider, s will “apply the level to this session only” (source: Anthropic: Model configuration).
What too much effort costs
Section titled “What too much effort costs”Higher is not better by default. Anthropic’s own guidance says that “max may show diminishing returns and is prone to overthinking, so test before adopting it broadly” (source: Anthropic: Model configuration), and that “at a lower level, Claude returned a starting point sooner, which fits work where you review each result and steer the next step” (source: Anthropic: Model configuration). In CodeRabbit’s code review benchmark, “turning up effort did not consistently produce a better review” (source: CodeRabbit: Claude Opus 5.5 code review benchmarks). LangChain improved its coding agent by changing the harness alone, and “kept the model fixed, gpt-5.2-codex” (source: LangChain: Improving Deep Agents with harness engineering); on that model, running only at xhigh scored below high due to agent timeouts (source: LangChain: Improving Deep Agents with harness engineering). Its answer was to spend “more reasoning compute on planning and verification” (source: LangChain: Improving Deep Agents with harness engineering), and that is where I spend mine.
Subagents
Section titled “Subagents”A subagent “runs in its own context window with a custom system prompt, specific tool access, and independent permissions” (source: Anthropic: Create custom subagents), and “returns only the summary” (source: Anthropic: Create custom subagents). It is not free: its requests “count toward the same usage limits as your main conversation” (source: Anthropic: Create custom subagents), and what it returns is a claim to check, as Verify with gates explains.
I fan out research and review, never the building of a UI, because one context has to hold the taste.
What a checkpoint cannot undo
Section titled “What a checkpoint cannot undo”“Every prompt you send that starts a turn creates a new checkpoint” (source: Anthropic: Checkpointing), and /rewind can “restore code and conversation” (source: Anthropic: Checkpointing), or either alone. “Checkpointing does not track files modified by Bash commands” (source: Anthropic: Checkpointing); a subagent’s edits to files the conversation had not touched “stay, so use git to revert them” (source: Anthropic: Checkpointing); and “edits from other concurrent sessions are normally not captured” (source: Anthropic: Checkpointing). Checkpoints are “designed for quick, session-level recovery” (source: Anthropic: Checkpointing). For the rest, “continue using version control” (source: Anthropic: Checkpointing), which on this site means a branch per ticket.
Sources
Section titled “Sources”- Matt Pocock: Phase boundaries github.com
- Matt Pocock: Dictionary of AI coding, smart zone github.com
- Anthropic: Model configuration code.claude.com
- Anthropic: Explore the context window code.claude.com
- CodeRabbit: Claude Opus 5.5 code review benchmarks coderabbit.ai
- LangChain: Improving Deep Agents with harness engineering langchain.com
- Anthropic: Create custom subagents code.claude.com
- Anthropic: Checkpointing code.claude.com