Send context to parent, child, or sibling session before switching
Timestamp: !date '+%Y-%m-%d %H:%M:%S'
Working Directory: !pwd
Git Branch: !git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "Not in git repo"
Git Status: !git status --short 2>/dev/null | head -10 || echo "No changes"
Last Commit: !git log -1 --oneline 2>/dev/null || echo "No commits"
Handover Dir: !context-manage path
context-manage send parent "bug-fix" <<'EOF'
[handover body]
EOF
# ~/.local/state/claude-context/ctx-child-to-parent-bug-fix.md (or wherever `context-manage path` resolves)
Create a context handoff file for transitioning between sessions.
/context:send child [subject]
/context:send parent [subject]
/context:send sibling [subject]
IMPORTANT: Direction is REQUIRED. Must be one of: parent, child, or sibling.
Subject is optional -- infer it from the current conversation if the user omits it. The handover location is managed by context-manage (see context-manage path).
Validate the direction - error if it is not parent|child|sibling
Map the direction from the argument
Auto-capture project state (timestamp, git branch, working dir, git status)
If the user did not provide a subject, infer one from the current conversation
Assemble the handover body and pipe it to the script (it names the file, captures git/cwd/time, prunes stale handovers, and prints the path):
context-manage send <direction> "<subject>" <<'EOF'
<handover body>
EOF
Show the user clear next steps.
File naming pattern (handled by the script):
context-manage send child <subject> -> ctx-parent-to-child-<subject>.mdcontext-manage send parent <subject> -> ctx-child-to-parent-<subject>.mdcontext-manage send sibling <subject> -> ctx-sibling-to-sibling-<subject>.md/context:send child database-migration
$ context-manage send child "database-migration" <<'EOF'
[handover body]
EOF
/home/user/.local/state/claude-context/ctx-parent-to-child-database-migration.md
Next steps:
1. Start child session for focused work
2. In new session, run: /context:receive parent
/context:send parent
$ context-manage send parent "api-implementation" <<'EOF'
[handover body]
EOF
/home/user/.local/state/claude-context/ctx-child-to-parent-api-implementation.md
Next steps:
1. Exit this session
2. Resume parent session
3. In parent session, run: /context:receive child
/context:send sibling parallel-task
$ context-manage send sibling "parallel-task" <<'EOF'
[handover body]
EOF
/home/user/.local/state/claude-context/ctx-sibling-to-sibling-parallel-task.md
Next steps:
1. Start sibling session for parallel work
2. In new session, run: /context:receive sibling parallel-task
/context:send database-work
ā Error: Must specify direction: parent, child, or sibling
Usage: /context:send <parent|child|sibling> [subject]
The context file should include:
Assemble the handover body, then pipe it to context-manage send:
context-manage send <direction> "<subject>" <<'EOF'
# Context: Parent -> Child
[Context content here]
EOF
This clears any existing file for the same direction+subject, preventing accumulation of old context.
/context:receive - Receive context from parent/child session