Skip to content

Feature Request: Add session fork functionality #5865

@wpfleger96

Description

@wpfleger96

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> --fork

Creates 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions