[FEATURE]: /branch command to create new session with compacted context #4757

Open
opened 2026-02-16 17:45:18 -05:00 by yindo · 1 comment
Owner

Originally created by @tobiastornros on GitHub (Jan 11, 2026).

Originally assigned to: @thdxr on GitHub.

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

When working on larger tasks, I often want to explore different ideas or directions without losing the context of what I've already discussed.

A /branch command would create a new session with a summary of the current conversation, letting you branch off to try different approaches while preserving shared context.

Similar to git branches but for conversations.

Related to #4596 but with a different approach.

Originally created by @tobiastornros on GitHub (Jan 11, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request When working on larger tasks, I often want to explore different ideas or directions without losing the context of what I've already discussed. A `/branch` command would create a new session with a summary of the current conversation, letting you branch off to try different approaches while preserving shared context. Similar to git branches but for conversations. Related to #4596 but with a different approach.
yindo added the discussion label 2026-02-16 17:45:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4596: [FEATURE]: Fork/Copy sessions with full context - Similar feature request with the exact same approach of creating copies/branches of sessions
  • #4317: Feature: generic /compact command, auto-compaction, and fork-aware conversations - Proposes fork-aware conversation IDs and related infrastructure
  • #4659: [FEATURE] Sliding window context management for long-running sessions - Addresses context preservation and session management with related features

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #4596: [FEATURE]: Fork/Copy sessions with full context - Similar feature request with the exact same approach of creating copies/branches of sessions - #4317: Feature: generic /compact command, auto-compaction, and fork-aware conversations - Proposes fork-aware conversation IDs and related infrastructure - #4659: [FEATURE] Sliding window context management for long-running sessions - Addresses context preservation and session management with related features Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4757