Loading...
Loading...
Share Claude Code sessions between developers. Use when user mentions "share session", "export session", "import session", "send session to", "continue from colleague", or needs to (1) export current session to file, (2) import session from another developer, (3) hand off work context. Enables private, secure session transfer via direct file sharing.
npx skill4agent add asheshgoplani/agent-deck session-share# Export current session
scripts/export.sh
# Output: ~/session-shares/session-2024-01-20-my-feature.json
# Share the file via Slack, email, AirDrop, etc.
# Other developer imports
scripts/import.sh ~/Downloads/session-2024-01-20-my-feature.json
# Session appears in agent-deck, ready to continuescripts/export.sh [options]| Option | Description |
|---|---|
| Export specific session (default: current) |
| Custom output path |
| Include Claude's thinking blocks |
| Don't redact sensitive data |
# Export current session
scripts/export.sh
# Export to specific location
scripts/export.sh --output /tmp/handoff.json
# Export specific session with thinking blocks
scripts/export.sh --session abc123 --include-thinkingscripts/import.sh <file-path> [options]| Option | Description |
|---|---|
| Override session title |
| Import to specific project |
| Don't auto-start the session |
# Import and start
scripts/import.sh ~/Downloads/session-feature.json
# Import with custom title
scripts/import.sh session.json --title "Feature Work from Alice"
# Import without starting
scripts/import.sh session.json --no-startscripts/export.sh~/session-shares/session-2024-01-20-feature.jsonscripts/import.sh ~/Downloads/session-2024-01-20-feature.json{
"version": "1.0",
"exported_at": "2024-01-20T15:30:00Z",
"exported_by": "alice",
"session": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Feature Implementation",
"original_project": "/Users/alice/my-project"
},
"context": {
"summary": "Last few user messages for quick context",
"modified_files": ["src/auth.ts", "src/middleware.ts"]
},
"messages": [ /* JSONL records as JSON array */ ],
"stats": {
"total_messages": 150,
"user_messages": 45,
"assistant_messages": 105
}
}| Data Type | Redaction |
|---|---|
| API keys | Replaced with |
| Tokens | Replaced with |
| Home paths | Converted to |
| Username in paths | Converted to |
| Thinking blocks | Removed entirely |
--include-thinking| Issue | Solution |
|---|---|
| "Could not detect current Claude session" | Make sure you're in an agent-deck session with active Claude |
| "Session file not found" | Session may not have been saved yet; send a message first |
| Import shows wrong project | Use |
| Large file size | Use default settings (strips thinking blocks) |
~/.claude/projects/<encoded-path>/<session-id>.jsonl/Users/alice/project-Users-alice-project~/.claude/projects/<encoded-current-project>/<session-id>.jsonlclaude-session-id--resumejqbrew install jqagent-deckclaude