/tree switches away from a branch, Atomic can optionally summarize the abandoned branch and attach that summary at the new position. This preserves context from the path you left without replaying the entire branch.
Branch summaries are separate from
/compact and unaffected by compactionModel. Branch navigation generates a lossy prose summary of an abandoned path, whereas compaction uses memory compaction or a custom compaction model on your active context.Choose whether to summarize
When leaving a branch in/tree, choose one of three options:
- No summary
- Summarize with the default prompt
- Summarize with custom focus instructions
"branchSummary": { "skipPrompt": true } in settings.json to skip the prompt and default to no summary.
How branch summarization works
Atomic collects as many recent messages from the abandoned branch (up to the common ancestor) as fit while leaving room for the summary prompt and reply. That history budget iscontextWindow - branchSummary.reserveTokens (defaulting contextWindow to 128000 when unknown, and reserveTokens to 16384). branchSummary.reserveTokens reserves headroom for the summary call rather than capping the history budget itself.
If the abandoned branch contains no summarizable messages, Atomic records "No content to summarize" without sending a model request.
Otherwise, the provider sizes summary output from the model’s output limit and available context, inheriting the session’s thinkingLevel unless it is "off". Atomic rejects incomplete summaries rather than saving partial prose.
How summary requests run
Branch summary requests run no tools and bypass prompt cache writes so summarizing an abandoned branch does not disturb prompt caching on your main branch. They retry temporary failures within your retry settings. If the account is out of quota or the server asks for a wait longer than the retry limit, Atomic stops without retrying that model. To switch branches anyway, run/tree and choose No summary.
For the exact prompt template, BranchSummaryEntry structure, message serialization, edge cases, and the session_before_tree extension hook, see Branch summary format and Extension hooks for branch summarization.