AI Skill Hub 强烈推荐:Agent Deck 是一款优质的MCP工具。已获得 2.4k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
为Claude、Gemini等AI编码助手设计的开源终端会话管理器。提供统一的TUI界面,帮助开发者管理多个AI Agent的交互sessions,支持MCP协议,适合使用AI辅助编程的开发者和AI研究人员。
Agent Deck 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
为Claude、Gemini等AI编码助手设计的开源终端会话管理器。提供统一的TUI界面,帮助开发者管理多个AI Agent的交互sessions,支持MCP协议,适合使用AI辅助编程的开发者和AI研究人员。
Agent Deck 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/asheshgoplani/agent-deck
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"agent-deck": {
"command": "npx",
"args": ["-y", "agent-deck"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Agent Deck 执行以下任务... Claude: [自动调用 Agent Deck MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"agent_deck": {
"command": "npx",
"args": ["-y", "agent-deck"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<img src="site/logo.svg" alt="Agent Deck Logo" width="120">
Works on: macOS, Linux, Windows (WSL)
curl -fsSL https://raw.githubusercontent.com/asheshgoplani/agent-deck/main/install.sh | bash
Then run: agent-deck
<details> <summary>Other install methods</summary>
Homebrew
brew install asheshgoplani/tap/agent-deck
Go
go install github.com/asheshgoplani/agent-deck/cmd/agent-deck@latest
From Source
git clone https://github.com/asheshgoplani/agent-deck.git && cd agent-deck && make install
</details>
<details> <summary>Uninstalling</summary>
agent-deck uninstall # Interactive uninstall
agent-deck uninstall --keep-data # Remove binary only, keep sessions
See Troubleshooting for full details.
</details>
<details> <summary>Shell completion</summary>
agent-deck completion <bash|zsh|fish> prints a completion script for commands and subcommands (agent-deck se<Tab> → session, agent-deck session st<Tab> → start/stop), plus live resource names where it matters — agent-deck remote update <Tab> offers your configured remotes, agent-deck session set-parent <Tab> <Tab> offers session titles at both positions, and agent-deck -p <Tab> offers your profiles.
```bash
```
agent-deck worktree list and agent-deck worktree finish work from any of those locations.
Common gotchas:
.agent-deck/ must live at the project root. For nested layouts that's next to .bare/; for at-root layouts that's inside the bare dir. If you commit .agent-deck/ into a specific branch's worktree instead, agent-deck will not find it — the lookup resolves to the project root, not the current worktree..bare ⇒ nested layout, anything else ⇒ at-root. A bare repo named something other than .bare inside a project dir (e.g. project/.git-bare/) is treated as at-root if you point at it directly. For a fully nested layout, use the canonical name .bare..git file at the project root pointing to .bare/ (a variant some tutorials recommend), point agent-deck add at .bare/ or at a linked worktree rather than at the project root — the .git file shadows the bare-repo detection path.Run sessions inside isolated Docker containers. The project directory is bind-mounted read-write, so agents work on your code while the rest of the system stays protected.
default_enabled = true in configT on a sandboxed session to open a container shellagent-deck try "task description" runs a one-shot sandboxed sessionHost tool auth (Claude, Gemini, Codex, etc.) is automatically shared into containers via shared sandbox directories — no re-authentication needed. The exception is the Claude Code login on macOS, which lives in the Keychain: copying it would fork the host's OAuth refresh chain and log the host out, so the sandbox keeps a login of its own. Run /login once in your first sandbox session (or pass a claude setup-token credential as CLAUDE_CODE_OAUTH_TOKEN via environment); see the single-owner rule in the sandbox reference.
[docker]
default_enabled = true
mount_ssh = true
auto_cleanup = true # Remove containers when sessions end (default: true)
Set auto_cleanup = false to keep containers alive after session termination, which is useful for debugging container state or inspecting logs.
See the Docker Sandbox Guide for the full reference including overlay details, custom images, and troubleshooting.
agent-deck -p work conductor setup ops --description "Ops monitor"
agent-deck # Launch TUI
agent-deck add . -c claude # Add current dir with Claude
agent-deck session fork my-proj # Fork a supported session
agent-deck session send my-proj --message-file task.md # Send a multiline prompt
agent-deck session remove my-proj # Remove stopped/errored session from registry (transcripts preserved)
agent-deck mcp attach my-proj exa # Attach MCP to session
agent-deck skill attach my-proj docs --source pool --restart # Attach skill + restart
agent-deck web # Start web UI on http://127.0.0.1:8420
⚠️ Changed in v1.9.55, extended after v1.16.5: in the new-session dialog (n), Enter advances to the next field on every row — Name, Tool, Model, Reasoning effort, Path, checkboxes and each Claude Options row — and only the trailing[ Create session ]button (or Ctrl+S from any field) creates the session, so walking the form with Enter never launches a session before you have chosen the model, path or options.↓/Spaceopen the model list. The dialog also remembers your last-used tool. Restore the old Enter-creates-from-any-row behavior with[ui].new_session_enter_advances = false.
Five minutes from zero to a Telegram bot that watches every Claude session you have running.
```bash
agent-deck watcher create webhook --name my-webhook --port 9000 agent-deck watcher create github --name gh-alerts --secret $GITHUB_WEBHOOK_SECRET agent-deck watcher create ntfy --name phone --topic my-private-topic agent-deck watcher create slack --name team-slack --topic my-slack-topic
agent-deck watcher start <name> agent-deck watcher list # health + events/hour per watcher agent-deck watcher status <name> # detail view including recent events agent-deck watcher test <name> # fire a synthetic event to verify routing
Routing rules live in the effective watcher data dir (`${XDG_DATA_HOME:-$HOME/.local/share}/agent-deck/watcher/clients.json` for new users, or legacy `~/.agent-deck/watcher/clients.json` when existing watcher state is present). Edit it to pick which conductor/group receives which events. Use `agent-deck watcher routes` to see the currently-loaded rules across all watchers.
**Conversational setup (recommended for first-time use):**
bash agent-deck watcher install-skill watcher-creator ```
Then, inside a Claude Code session started by agent-deck, ask: "Use the watcher-creator skill to set up a GitHub watcher". The skill walks through adapter selection, required settings, and emits the exact agent-deck watcher create command to run.
Safety notes: - The GitHub adapter enforces HMAC-SHA256 signature verification on every webhook — a missing/invalid signature drops the event. - Events are deduplicated in SQLite by (watcher_name, event_id), so retries from the sender do not double-fire the conductor. - Watchers keep per-adapter health in <effective watcher data dir>/<name>/state.json; the TUI watcher panel (press w) surfaces this in real time.
Doorbell rule: watchers are triggers, not launchers. They forward a short event string to the conductor and let the conductor decide what to do. A watcher should never call agent-deck launch or agent-deck add directly — those calls run outside any conductor's process and have no $AGENTDECK_INSTANCE_ID, so the spawned session becomes an orphan whose status events never route back. Use agent-deck session send <conductor> "[event] hint" from the watcher and let the conductor fan out from there.
Cost tracking answers "how many dollars"; this answers "how much of my subscription is left". When you run several agents at once, the limit you hit first is usually the provider's 5-hour or weekly plan window, not a dollar budget.
The numbers come from the providers themselves — nothing here is estimated from token counts.
$ agent-deck usage
Claude updated 2m ago
5h 23.5% resets in 2h14m
7d 41.2% resets in 3d6h
Z.ai (pro) updated 1m ago
5h 0.0%
7d 22.0% resets in 4d3h
agent-deck usage --json prints the same report for scripting. --refresh
Agent Deck supports per-group CLAUDE_CONFIG_DIR and env_file overrides. Useful when a single profile hosts groups that should authenticate against different Claude accounts — for example, a personal profile hosting a conductor group pinned to ~/.claude-team while other groups stay on ~/.claude.
Override any group by adding a [groups."<name>".claude] table to $XDG_CONFIG_HOME/agent-deck/config.toml (default ~/.config/agent-deck/config.toml):
[groups."conductor".claude]
config_dir = "~/.claude-team"
env_file = "~/git/work/.envrc"
Lookup priority: env > group > profile > global > default. The env_file is sourced into the tmux pane before claude (or the custom command) execs, so any exports it contains become part of the session environment.
Human-watchable verification: bash scripts/verify-per-group-claude-config.sh. The harness creates two throwaway groups, launches one normal and one custom-command session, and prints a pass/fail table.
Conductors are first-class agent-deck entities (see agent-deck conductor setup). Each conductor can carry its own Claude config_dir and env_file via a top-level [conductors.<name>.claude] block:
[conductors.gsd-v154.claude]
config_dir = "~/.claude-team"
env_file = "~/git/work/.envrc"
The conductor name is the string you passed to agent-deck conductor setup <name> — it's the same name that appears in session titles (conductor-<name>).
Precedence chain (most-specific → least-specific):
CLAUDE_CONFIG_DIR env var[conductors.<name>.claude] (when the session is a conductor session, i.e. Title starts with conductor-)[groups."<group>".claude] (PR #578)[profiles.<profile>.claude][claude] (global)~/.claude (default)This means a single [conductors.gsd-v154.claude] line replaces the need to duplicate the config into [groups."conductor".claude] — the conductor block scopes to exactly that conductor, not to every conductor that shares the conductor group.
Backward compat: sessions in the conductor group with NO matching [conductors.<name>.claude] block continue to resolve via [groups."conductor".claude] as they did in v1.5.4 Phase 1–3.
Closes issue #602.
/clearThe session analytics context bar divides the current prompt size by the model's context window. A model id does not carry its window, so a size read off the model-id table is shown as ≈49.5% (window inferred from model id), a reading larger than that table figure is shown as over-limit with the figure named (the window is then unknown, not 100% full), and an id the table has never seen shows window unknown. Set AGENTDECK_CONTEXT_WINDOW=<tokens> in the deck's environment to supply the real size; it renders plain, with no ≈.
A conductor's proactive /clear (clear_on_compact) only arms on an established window — that variable, or a size the harness reported. On an inferred, unknown or disproved window it stays off and the conductor falls back to Claude's own compaction; the reason is logged once per session as conductor_clear_on_compact_disarmed. See issue #2026.
For a new one-shot session, use agent-deck launch . -c claude --account <name>. Run agent-deck accounts (or agent-deck accounts --json) to list named slots configured under [profiles.<name>.claude].config_dir.
agent-deck session switch-account <session> <account> moves an existing session to another Claude account — conversation included. The session stops, its conversation file is migrated into the target account's config dir (copy-only, with a destination backup and size verification), the account is set, and the session restarts with --resume. session set <session> account <name> auto-migrates too. Claude Code may key one working directory under several project directories (the path as typed, its macOS /private form, its realpath); every copy of the conversation under those keys in both accounts is considered, the newest by last event wins (tie: longest), it is installed under every key in the target, each copy it replaces is backed up next to it, and a newer target copy is never overwritten. The receipt names the chosen copy; --json lists every candidate under transcript.
The TUI exposes the same two moments. The New Session dialog's Claude options carry an Account row (←/→ or Space to cycle, inherit = today's conductor/group/env chain), so a session can be created straight onto the right login. The Edit Session dialog (Shift+P) carries an account row for a session that already exists; saving it asks "Switch Account?" first, then runs the same migrate-and-resume flow as session switch-account, and the session card's [account:"…"] badge follows. Both rows are hidden when no [profiles.<name>.claude].config_dir blocks are configured.
Rows of a remote deck get the same dialog: Shift+P on a remote session lists that remote's own slots, previews the switch there (session switch-preview) and, once confirmed, runs the remote's own session switch; transcripts and credentials never leave the remote. See docs/REMOTE-COMMANDS.md.
agent-deck conductor setup glm-bot \ -env ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic \ -env ANTHROPIC_AUTH_TOKEN=<token> \ -env ANTHROPIC_DEFAULT_OPUS_MODEL=glm-5
agent-deck conductor setup glm-bot -env-file ~/.conductor.env
Each conductor gets its own directory, identity, and settings under the XDG data
root (default `~/.local/share/agent-deck/conductor/`):
~/.local/share/agent-deck/conductor/ ├── CLAUDE.md # Shared knowledge for Claude conductors ├── AGENTS.md # Shared knowledge for Codex conductors ├── bridge.py # Bridge daemon (Telegram/Slack, if configured) ├── ops/ │ ├── CLAUDE.md # Identity: "You are ops, a conductor for the work profile" │ ├── meta.json # Config: name, profile, description, env vars │ ├── state.json # Runtime state │ └── task-log.md # Action log └── review/ ├── AGENTS.md └── meta.json
Claude conductors use `CLAUDE.md`. Codex conductors use `AGENTS.md`. Shared `POLICY.md` and `LEARNINGS.md` remain agent-neutral.
**CLI commands:**
bash agent-deck conductor list # List all conductors agent-deck conductor list --profile work # Filter by profile agent-deck conductor status # Health check (all) agent-deck conductor status ops # Health check (specific) agent-deck conductor teardown ops # Stop a conductor agent-deck conductor teardown --all --remove # Remove everything
**Telegram bridge** (optional): Connect a Telegram bot for mobile monitoring. The bridge routes messages to specific conductors using a `name: message` prefix:
ops: check the frontend session → routes to conductor-ops infra: restart all error sessions → routes to conductor-infra /status → aggregated status across all profiles
**Slack bridge** (optional): Connect a Slack bot for channel-based monitoring via Socket Mode. The bot listens in a dedicated channel and replies in threads to keep the channel clean. Uses the same `name: message` routing, plus slash commands:
ops: check the frontend session → routes to conductor-ops (reply in thread) /ad-status → aggregated status across all profiles /ad-sessions → list all sessions /ad-restart [name] → restart a conductor /ad-help → list available commands
<details>
<summary><b>Slack setup</b></summary>
1. Create a Slack app at [api.slack.com/apps](https://api.slack.com/apps)
2. Enable **Socket Mode** → generate an app-level token (`xapp-...`)
3. Under **OAuth & Permissions**, add bot scopes: `chat:write`, `channels:history`, `channels:read`, `app_mentions:read`
4. Under **Event Subscriptions**, subscribe to bot events: `message.channels`, `app_mention`
5. If using slash commands, create: `/ad-status`, `/ad-sessions`, `/ad-restart`, `/ad-help`
6. Install the app to your workspace
7. Invite the bot to your channel (`/invite @botname`)
8. Run `agent-deck conductor setup <name>` and enter your bot token (`xoxb-...`), app token (`xapp-...`), and channel ID (`C01234...`)
</details>
Both Telegram and Slack can run simultaneously — the bridge daemon handles both concurrently and relays responses on-demand, plus periodic heartbeat alerts to configured platforms.
**Built-in status-driven notifications**: conductor setup also installs a transition notifier daemon (`agent-deck notify-daemon`) that watches status transitions and sends parent nudges when child sessions move `running -> waiting|error|idle`.
Dispatch can be suppressed at two scopes (PR #580, v1.7.34):
toml
[notifications] transition_events = false
bash
[costs] enabled = true # default; false turns cost tracking off (also [profiles.<name>.costs]) retention_days = 90
[costs.budgets] enforce = true # refuse agent sends and wakes once a limit is spent (default false: display-only) daily_limit = 50.00 weekly_limit = 200.00
[costs.run_budget] # per-run defaults for goals (0 = no cap) max_tokens = 80000 max_turns = 12 max_minutes = 30
[costs.pricing.overrides] "custom-model" = { input_per_mtok = 1.0, output_per_mtok = 5.0 }
#### Customizing the status-line cost segment
The home status bar shows a brief cost line drawn from the seven windows below. The default renders `$X.XX today`; configure `cost_line_template` to surface different windows or a per-profile layout. Variables substitute as `$X.XX`; unknown placeholders pass through literally so typos surface in the output.
| Variable | Window |
|---|---|
| `{cost_today}` | Today (00:00 local) |
| `{cost_yesterday}` | Prior day |
| `{cost_this_week}` | Monday-start of this week |
| `{cost_last_week}` | Prior Monday to Sunday |
| `{cost_this_month}` | First of this month |
| `{cost_last_month}` | Prior calendar month |
| `{cost_projected}` | Rolling 7-day average times 30 |
toml [costs] cost_line_template = "{cost_today} today | {cost_this_week} wk" cost_line_hide_when_zero = true # default; hide when every recognized var is $0.00
[profiles.work.costs] cost_line_template = "{cost_yesterday} yda | {cost_today} today | {cost_projected}/mo" ```
Resolution chain: profiles.<active>.costs.cost_line_template > [costs].cost_line_template > hardcoded "{cost_today} today". Setting the template to an empty string explicitly disables the segment.
Agent Deck 是一个用于协调 AI 代理的工具,旨在简化 AI 代理的管理和部署。它提供了一个易于使用的界面,允许用户创建、管理和监控 AI 代理。
Agent Deck 的功能包括 Docker Sandbox、智能状态检测、会话分叉、MCP 管理、全局搜索等功能,旨在提高 AI 代理的效率和可靠性。
Agent Deck 不需要任何特定的环境依赖或系统要求,任何支持 Python 的系统都可以使用它。
Agent Deck 可以通过 pip 或源码安装,用户可以选择使用 Docker Sandbox 或其他部署方式。安装完成后,用户可以使用 Agent Deck 的命令行界面或图形用户界面来管理 AI 代理。
Agent Deck 的使用教程包括创建、启动、测试 AI 代理、管理会话、监控状态等功能。用户可以使用 Agent Deck 的命令行界面或图形用户界面来完成这些任务。
Agent Deck 支持 per-group Claude 配置和环境变量配置,用户可以根据需要自定义配置。MCP 可以通过环境变量或配置文件来管理。
Agent Deck 提供了 API 接口,用户可以使用 curl 命令下载技能和参考文档。
Agent Deck 的 FAQ 摘要包括了与 tmux 相比的优势、会话分叉的优势、MCP 管理的优势等内容。
专业的MCP工具,为AI Agent提供统一终端管理方案。架构清晰,活跃维护,是AI编程工作流的优秀基础设施。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Agent Deck 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | agent-deck |
| 原始描述 | 开源MCP工具:Terminal session manager for AI coding agents. One TUI for Claude, Gemini, OpenC。⭐2.4k · Go |
| Topics | MCP协议AI Agent管理终端界面编码助手Go语言 |
| GitHub | https://github.com/asheshgoplani/agent-deck |
| License | MIT |
| 语言 | Go |
收录时间:2026-05-19 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端