Skip to content

[FEATURE]: /handoff command — compact + continue in a fresh session #26757

Description

@mrosnerr

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Long-running sessions accumulate context until quality degrades or the context window fills up. Today the options are:

None of these give you what you actually want: a fresh session that picks up where you left off with just enough context to continue.

Proposed workflow

A /handoff (or /continue) command that:

  1. Runs compaction on the current session to produce the structured summary
  2. Creates a new session
  3. Injects the compacted summary as the initial context in the new session
  4. Switches to the new session

The old session stays intact for reference but the agent continues in a clean context window.

Why this fits naturally

The primitives already exist:

  • Compaction generates a high-quality LLM summary (Goal → Progress → Key Decisions → Next Steps → Relevant Files)
  • Fork creates new sessions and remaps message IDs
  • The gap is a summaryOnly fork mode — start from the compaction output instead of copying all messages

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions