Agent skill

Session Share

by asheshgoplani in asheshgoplani/agent-deck

Share Claude Code sessions between developers. An agent skill from asheshgoplani/agent-deck.

MITAuto-check passed

Install Session Share

skills CLI
$ npx skills add asheshgoplani/agent-deck --skill session-share -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asheshgoplani/agent-deck session-share --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asheshgoplani/agent-deck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/session-share .claude/skills/session-share && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
session-share
GitHub stars
1k
Token cost
~1.6k tokens
SKILL.md length
515 words
Files
8 (incl. scripts)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Share Claude Code sessions between developers. An agent skill from asheshgoplani/agent-deck.

  • Works in 5 steps: Working in agent-deck session on a feature → Needs to hand off to Developer B → Runs: $SKILL_DIR/scripts/export.sh → …
  • User mentions share session
  • SKILL.md covers Script Path Resolution…, Quick Start, Commands and Workflow: Sharing a Session, plus 5 more sections
  • Runs Shell scripts from its folder; calls brew and claude

What it does

Session Share is an agent skill from asheshgoplani/agent-deck. 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.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including scripts (for example `evals/RUNNER.md`, `evals/evals.json` and `scripts/export.sh`).

The repository describes itself as: Terminal session manager for AI coding agents. One TUI for Claude, Gemini, OpenCode, Codex, and more. The licence is MIT.

When your agent uses it

  • User mentions share session
  • Send session to
  • Continue from colleague
  • Export current session to file

Example prompts

  • “share session”
  • “export session”
  • “import session”
  • “/session-share”

Requirements

  • A Bash shell

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Working in agent-deck session on a feature
  2. Needs to hand off to Developer B
  3. Runs: $SKILL_DIR/scripts/export.sh
  4. Gets file: ~/session-shares/session-2024-01-20-feature.json
  5. Sends file to Developer B via Slack DM, email, or AirDrop

What it can do on your machine

Read from SKILL.md and the folder at commit 34cf369. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • brew
    • claude

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Session Share loads about 1.6k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 515 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from asheshgoplani/agent-deck at commit 34cf369, republished under its MIT licence (© asheshgoplani). 515 words, ~1,630 tokens.

Download SKILL.mdSave it as .claude/skills/session-share/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
session-share
description
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.
metadata.compatibility
claude, opencode

Session Share

Share Claude Code sessions between developers through portable file export/import.

Version: 1.0 | Privacy: Files are never uploaded to cloud unless you choose to share them

Script Path Resolution (IMPORTANT)

This skill includes helper scripts in its scripts/ subdirectory. When Claude Code loads this skill, it shows a line like:

Base directory for this skill: /path/to/.../skills/session-share

You MUST use that base directory path to resolve all script references. Store it as SKILL_DIR:

bash
# Set SKILL_DIR to the base directory shown when this skill was loaded
SKILL_DIR="/path/shown/in/base-directory-line"

# Then run scripts as:
$SKILL_DIR/scripts/export.sh
$SKILL_DIR/scripts/import.sh ~/Downloads/session-file.json

Quick Start

bash
# Export current session
$SKILL_DIR/scripts/export.sh
# Output: ~/session-shares/session-2024-01-20-my-feature.json

# Share the file via Slack, email, AirDrop, etc.

# Other developer imports
$SKILL_DIR/scripts/import.sh ~/Downloads/session-2024-01-20-my-feature.json
# Session appears in agent-deck, ready to continue

Commands

Export Session

Export the current Claude session to a portable file:

bash
$SKILL_DIR/scripts/export.sh [options]

Options:

OptionDescription
--session <id>Export specific session (default: current)
--output <path>Custom output path
--include-thinkingInclude Claude's thinking blocks
--no-sanitizeDon't redact sensitive data

Examples:

bash
# Export current session
$SKILL_DIR/scripts/export.sh

# Export to specific location
$SKILL_DIR/scripts/export.sh --output /tmp/handoff.json

# Export specific session with thinking blocks
$SKILL_DIR/scripts/export.sh --session abc123 --include-thinking

What gets exported:

  • All conversation messages (user and assistant)
  • Tool calls and results
  • File modifications tracked
  • Session metadata

What gets redacted (by default):

  • API keys and tokens
  • Absolute paths (converted to relative)
  • Thinking blocks (Claude's internal reasoning)
Import Session

Import a shared session file and create an agent-deck session:

bash
$SKILL_DIR/scripts/import.sh <file-path> [options]

Options:

OptionDescription
--title <name>Override session title
--project <path>Import to specific project
--no-startDon't auto-start the session

Examples:

bash
# Import and start
$SKILL_DIR/scripts/import.sh ~/Downloads/session-feature.json

# Import with custom title
$SKILL_DIR/scripts/import.sh session.json --title "Feature Work from Alice"

# Import without starting
$SKILL_DIR/scripts/import.sh session.json --no-start

Workflow: Sharing a Session

Developer A (Exporter)
  1. Working in agent-deck session on a feature
  2. Needs to hand off to Developer B
  3. Runs: $SKILL_DIR/scripts/export.sh
  4. Gets file: ~/session-shares/session-2024-01-20-feature.json
  5. Sends file to Developer B via Slack DM, email, or AirDrop
Developer B (Importer)
  1. Receives the session file
  2. Runs: $SKILL_DIR/scripts/import.sh ~/Downloads/session-2024-01-20-feature.json
  3. Session appears in agent-deck as "Imported: feature"
  4. Starts session - Claude has full context from Developer A's work
  5. Continues where Developer A left off

Export File Format

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

Security & Privacy

What's Redacted by Default
Data TypeRedaction
API keysReplaced with [REDACTED]
TokensReplaced with [REDACTED]
Home pathsConverted to ~
Username in pathsConverted to $USER
Thinking blocksRemoved entirely
Show full SKILL.md (224 more words)Show less
Best Practices
  1. Review before sharing - Open the export file and scan for sensitive data
  2. Use direct transfer - Slack DM, email, AirDrop are more private than cloud links
  3. Delete after import - Remove the file once imported successfully
  4. Use --include-thinking sparingly - Thinking blocks may contain sensitive reasoning

Troubleshooting

IssueSolution
"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 projectUse --project /correct/path to specify destination
Large file sizeUse default settings (strips thinking blocks)

Technical Details

Session Storage

Claude stores sessions in: ~/.claude/projects/<encoded-path>/<session-id>.jsonl

Path encoding: /Users/alice/project becomes -Users-alice-project

How Import Works
  1. Reads export JSON file
  2. Creates directory: ~/.claude/projects/<encoded-current-project>/
  3. Writes messages as JSONL: <session-id>.jsonl
  4. Creates agent-deck session pointing to this path
  5. Sets claude-session-id so restart uses --resume
Dependencies
  • jq - JSON processing (install: brew install jq)
  • agent-deck - Session management
  • claude - Claude Code CLI

Backward Compatibility

This skill's scripts only use agent-deck add/basic session creation and claude --resume, both stable since well before v1.16.11 — no part of this skill is gated on the recent CLI additions (session send delivery verdicts, context inspector, health, remote dead-letter). It works unchanged on any deck version that can create a Claude session pointed at an existing .jsonl transcript.

© asheshgoplani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts) in skills/session-share of asheshgoplani/agent-deck.

  • SKILL.md
  • evals/RUNNER.md
  • evals/evals.json
  • scripts/.gitkeep
  • scripts/export.sh
  • scripts/import.sh
  • scripts/utils.sh
  • tests/test_export_895_regression.sh

Open the folder on GitHubat commit 34cf369

Compare with similar skills

Session Share next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Session Share compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Session Share this skillasheshgoplani/agent-deck1k—~1.6kAutomated safety check: PassMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k11 repos~4.1kAutomated safety check: NotesApache-2.0
Agent Browser CLIvercel-labs/agent-browser44k24 repos~864Automated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Agent Browser CLI

    vercel-labs/agent-browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking…

    44k GitHub starsUsed in 24 repos~864 tokens
    Productivity & AutomationAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed

More from asheshgoplani/agent-deck

  • Agent Deck

    asheshgoplani/agent-deck

    agent-deck, the terminal session manager for AI coding agents.

    1k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Deck Retro

    asheshgoplani/agent-deck

    Run a fully local agent-deck retrospective over the user's own transcripts, Recall index and logs.

    1k GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Deck Repro

    asheshgoplani/agent-deck

    Reproduce agent-deck bugs from an issue, transcript excerpt, or description in an isolated environment, and prove fixes with the same reproduction and a regression test.

    1k GitHub stars~1.3k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Deck Recall

    asheshgoplani/agent-deck

    Record and later find what an agent-deck session was for, across harnesses, and hand a past conversation to the current one.

    1k GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Fleet

    asheshgoplani/agent-deck

    Fan out a fleet of independent agent-deck child sessions from inside a session and check their progress non-blockingly.

    1k GitHub stars~4.2k tokensUpdated 3 days ago
    Auto-check passed
  • Watcher Creator

    asheshgoplani/agent-deck

    Guide for creating agent-deck watchers conversationally. An agent skill from asheshgoplani/agent-deck.

    1k GitHub stars~2.7k tokensUpdated 3 days ago
    Auto-check passed

Questions about Session Share

What does Session Share do?

Share Claude Code sessions between developers. An agent skill from asheshgoplani/agent-deck. Session Share is an agent skill from asheshgoplani/agent-deck. Share Claude Code sessions between developers.

When should I use Session Share?

Session Share fits situations like: user mentions share session; send session to; continue from colleague; export current session to file.

How do I install Session Share in Claude Code?

Run `npx skills add asheshgoplani/agent-deck --skill session-share -a claude-code`. Or copy the skill folder (skills/session-share in asheshgoplani/agent-deck) into .claude/skills/session-share in your project. Claude Code loads it when a task matches its description.

How do I install Session Share in Codex?

Run `npx skills add asheshgoplani/agent-deck --skill session-share -a codex`. Or copy the skill folder (skills/session-share in asheshgoplani/agent-deck) into .agents/skills/session-share in your project. Codex loads it when a task matches its description.

Can I use Session Share in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asheshgoplani/agent-deck --skill session-share -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/session-share, .gemini/skills/session-share, .github/skills/session-share and .opencode/skills/session-share in your project.

What does Session Share need to run?

Going by SKILL.md and its folder, Session Share needs a shell for the scripts in its folder and the command-line tools its instructions call (brew and claude). Our summary lists: A Bash shell.

Does Session Share access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Session Share safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Session Share use?

Session Share is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Session Share use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Session Share?

Skills that share tags, products or a category with Session Share: MCP Server Builder (anthropics/skills, 180k stars), Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars) and Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Session Share?

asheshgoplani (a GitHub user) maintains it in asheshgoplani/agent-deck, which has 1,034 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 5, 2026.

Source: asheshgoplani/agent-deck on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.