Skip to content
Back to skills

Agent Deck

ASecurity

agent-deck, the terminal session manager for AI coding agents. Use when the user mentions "agent-deck", "session", "sub-agent", "MCP attach", or "git worktree", or needs to create, start, message, read, fork, restart, or supervise agent-deck sessions; launch child sessions or consult another CLI through agent-deck; attach MCPs to a session; manage groups, profiles, accounts, or worktree sessions; fan out a fleet of child sessions and check them non-blockingly; export or import a session for a...

  • 1,358 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 4, 2026
ai-agentsrustgoshellbashdockergitdocumentation

Works with

  • claude code
  • terminal
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add asheshgoplani/agent-deck --skill agent-deck --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Deck?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Deck
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asheshgoplani-agent-deck/badge)](https://www.skillsdirectory.com/skills/asheshgoplani-agent-deck)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-deck
description: agent-deck, the terminal session manager for AI coding agents. Use when the user mentions "agent-deck", "session", "sub-agent", "MCP attach", or "git worktree", or needs to create, start, message, read, fork, restart, or supervise agent-deck sessions; launch child sessions or consult another CLI through agent-deck; attach MCPs to a session; manage groups, profiles, accounts, or worktree sessions; fan out a fleet of child sessions and check them non-blockingly; export or import a session for a teammate ("share session"); tag sessions and find past conversations (recall); run a local retrospective over their own transcripts, or reproduce an agent-deck bug and prove its fix; set up conductors or watchers; switch to a session by name ("go to X", "X par jao"); show a page or report it wrote on the user's phone or Mac app ("open this page", "show it on my phone", `agent-deck open`); configure config.toml; troubleshoot agent-deck; or work on the agent-deck repo itself (fix, add or review its code or docs, open or fix a PR). Not for in-conversation subagents, plain git worktrees, plain tmux, team or sprint retrospectives, or bugs in projects other than agent-deck.
metadata:
  compatibility: "claude, codex, opencode"
---

# Agent Deck

> Run `agent-deck --version` for your installed version. This skill targets v1.16.11+; most patterns work back to v1.7. See [Backward Compatibility](references/gotchas.md#backward-compatibility) for what needs ≥1.16.11.

## Scripts

Helper scripts live in this skill's `scripts/` folder. Resolve them from the base directory shown when the skill loaded, not from the user's project:

```bash
SKILL_DIR="/path/shown/in/base-directory-line"
$SKILL_DIR/scripts/launch-subagent.sh "Title" "Prompt" --wait
```

Plugin installs resolve to `~/.claude/plugins/cache/agent-deck/agent-deck/<hash>/skills/agent-deck/`; a repo checkout resolves to `<repo>/skills/agent-deck/`.

## Essential Commands

| Command | Purpose |
|---------|---------|
| `agent-deck` | Launch interactive TUI |
| `agent-deck add -t "Name" -c claude /path` | Create session |
| `agent-deck launch . -c claude --account <name>` | Create and start a session under a named account slot |
| `agent-deck session start/stop/restart <name>` | Control session |
| `agent-deck session send <name> "message"` | Send message |
| `agent-deck session send <name> --message-file <file>` | Send message from file (`-` = stdin); no shell quoting. Also on `launch`/`session start` |
| `agent-deck session command --json <name> "/compact"` | Run a Claude Code slash command or skill (`/model`, `/compact`, `/clear`, `/exit`) safely and verify it; never via `session send`. `session commands --json <name>` lists them |
| `agent-deck session ref <source> <target>` | Type a short reference to `<source>` (title, id, path, status, how to read it) into `<target>`'s composer, not sent; `--print` only prints it |
| `agent-deck session output <name>` | Get bounded, ANSI-clean last response (JSON/quiet/copy preserve full source) |
| `agent-deck session children --json` | Child sessions' live status + asserted completions (non-blocking, read-only) |
| `agent-deck session current [-q\|--json]` | Auto-detect current session |
| `agent-deck session fork <name>` | Fork Claude/OpenCode/Pi/Codex/Oh My Pi/Antigravity conversation |
| `agent-deck mcp list` | List available MCPs |
| `agent-deck mcp attach <name> <mcp>` | Attach MCP (then restart) |
| `agent-deck status` | Quick status summary |
| `agent-deck open report.html` | Show an HTML report to the user in the macOS app Browser panel (works from remote sessions too) |
| `agent-deck add --worktree <branch>` | Create session in git worktree |

**Status:** `●` running | `◐` waiting | `○` idle | `✕` error

Every other command and flag is in [cli-reference.md](references/cli-reference.md).

## Rules

1. **Flags before arguments:** `session start -m "Hello" name` always works. Since 0.12.0 nearly every subcommand (`session`, `add`, `launch`, `group`, `worktree`, `try`, ...) also accepts flags after the positional, so on a current build a flag after the name is not why it was ignored (older builds dropped it); only `config show [path]` and `openclaw send <message>` stop parsing at the first positional, so there a flag after it is ignored or read as text. Everything after `--` is positional.
2. **MCPs on request only:** attach one when the user asks, then `session restart` it; attaching alone does not load it. `--global` writes Claude's config for every project; the default writes the session's `.mcp.json`.
3. **Leave other sessions to work:** read another session with a single `session output` or `session children` call rather than a polling loop, which can interfere with the target.
4. **State only the task in a child's prompt.** Every session agent-deck launches already carries its identity (session id, title, parent, core commands, completion sentinel; `$AGENTDECK_IDENTITY_FILE` for custom `--cmd`), so a prompt need not explain who the child is or how to reach its parent. Opt out with `--no-identity` or `[launch] inject_identity = false`; gemini also needs its identity folder trusted (`documentation/HARNESS_IDENTITY.md`).

## Configuration

`$XDG_CONFIG_HOME/agent-deck/config.toml` (default `~/.config/agent-deck/config.toml`; legacy `~/.agent-deck/config.toml` still honored, but only when the XDG file does not exist; once it does, the legacy file is ignored). Every option is in [config-reference.md](references/config-reference.md).

## Where to Look Next

Read the matching reference before acting on anything beyond the commands above.

| When the task involves | Read |
|---|---|
| What agent-deck and each session's CLI (claude, codex, gemini) can do; choosing the `-c` tool for a child | [capabilities.md](references/capabilities.md) |
| Sessions messaging each other, `send` delivery guarantees, `output`, `children`, `inbox drain`, `handoff`, send pitfalls | [session-communication.md](references/session-communication.md) |
| Launching a sub-agent (`launch-subagent.sh`), retrieval modes, worker prompt conventions, the `===AGENTDECK_DONE===` completion sentinel, consulting Codex or Gemini, root-level peers (`-no-parent`) | [sub-agents.md](references/sub-agents.md) |
| Fanning out several children and supervising them non-blockingly | [fleet.md](references/fleet.md) |
| Conductors (`conductor setup`), Telegram/Slack channels, watchers (webhook, GitHub, ntfy, Slack) | [conductors.md](references/conductors.md), then [documentation/WATCHERS.md](https://github.com/asheshgoplani/agent-deck/blob/main/documentation/WATCHERS.md) for custom watchers |
| Switching the AgentDeck app or this terminal to a session by name: "go to X", "switch to X", "X par jao", "X pe chalo" (`agent-deck switch`) | [switch.md](references/switch.md) |
| Showing an HTML or Markdown page you wrote on the user's phone (Pages panel) and Mac app (Browser panel): "open this page", "show it on my phone" (`agent-deck open <file>`, `--last`, `--json`) | [open-page.md](references/open-page.md) |
| Context inspection (`session context`), worktrees, scratch sessions (`try`), runtime health (`health`, dead letters, `remote update --from-build`), recall hints and search, session sharing, switching a session to another Claude account | [session-workflows.md](references/session-workflows.md) |
| Self-improvement (transcript mining), goals (goal-driven worker autonomy), trust-but-verify for completion claims | [autonomy.md](references/autonomy.md), then [self-improvement.md](references/self-improvement.md) or [goal.md](references/goal.md) for the deep dive |
| Using agent-deck as a daemon supervisor (it is not one), known gotchas and workarounds (`--no-wait` Enter fallback, `text file busy`, `-c "claude <subcommand>"`, config drift, channel subscription, Telegram conductor topology, v1.9.x findings), and what needs a deck newer than 1.16.11 | [gotchas.md](references/gotchas.md) |
| TUI keys, dialogs, search, and layout | [tui-reference.md](references/tui-reference.md) |
| A session in error, MCPs not loading, diagnostics, getting help, or filing a bug | [troubleshooting.md](references/troubleshooting.md) |
| Docker sandboxed sessions | [sandbox.md](references/sandbox.md) |
| Durable session hints and tags, the cross-harness transcript index, `recall context --into current`, federated search, the recall MCP server | [recall.md](references/recall.md) |
| Exporting or importing a session for another developer | [session-share.md](references/session-share.md) |
| A local retrospective over the user's own transcripts, Recall index and logs (repeated failures, retries, stuck sessions); privacy rules and the pause-for-the-user-to-file handoff | [retro.md](references/retro.md), metrics in [retro-metrics.md](references/retro-metrics.md) |
| Reproducing an agent-deck bug in isolation and proving a fix (reproduced / not reproduced / fixed verdicts, receipts, the result contract) | [repro.md](references/repro.md), then [repro-contract.md](references/repro-contract.md) |
| User-level vs pool skills, attaching and detaching skills | [documentation/SKILLS.md](https://github.com/asheshgoplani/agent-deck/blob/main/documentation/SKILLS.md) |
| Working on the agent-deck repo itself: fix, add or review something in its code or docs, open a PR, answer an intake or review verdict | [contributing.md](references/contributing.md); it mirrors the PR intake gate and runs `scripts/contributing/self-check.sh` (tests only in a container) |

Files in this skill

  • SKILL.md60.7 KB
  • references/cli-reference.md27.2 KB
  • references/config-reference.md55.8 KB
  • references/goal.md28.2 KB
  • references/sandbox.md10.6 KB
  • references/self-improvement.md8.8 KB
  • references/troubleshooting.md9.9 KB
  • references/tui-reference.md7.3 KB
  • scripts/goal/goal.sh5.9 KB
  • scripts/goal/manager.py16.4 KB
  • scripts/goal/prompts/worker.md5.1 KB
  • scripts/goal/tests/test_manager.py19.5 KB
  • scripts/goal/tests/test_worker_prompt.py3.3 KB
  • scripts/launch-subagent.sh4.3 KB
  • scripts/self-improvement/analyze-all-conductors.sh4.6 KB
  • scripts/self-improvement/build_manifest.py6.1 KB
  • scripts/self-improvement/distill.py8.8 KB
  • scripts/self-improvement/file-issues.sh9.3 KB
  • scripts/self-improvement/file_issue.py5.2 KB
  • scripts/self-improvement/list_candidates.py8.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.