-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Feature Request: Add session fork functionality #5865
Description
Motivation
After finishing work in a session, I often want to branch into parallel tasks that share the same context. For example, after implementing a feature, I want to simultaneously write tests (in one session) and docs (in another) - both need the implementation context but should run independently.
Currently this requires re-explaining context in new sessions or working sequentially.
Proposed Solution
Add a --fork flag:
goose session --resume --fork
goose session --resume --name <session-name> --fork
goose session --resume --session-id <session-id> --forkCreates a new session with all messages copied from the source, allowing independent continuation.
Alternatives Considered
- Manual DB duplication (error-prone, not user-friendly)
- Export/import session JSON (more complex than needed)
Additional Context
-
Claude Code has this via
--fork-session- proven UX -
Desktop UI: fork button in session history would be a nice future addition
-
I have verified this does not duplicate an existing feature request