lovvvve

Claude Agents Workbench — Development skill for Claude Code

Development community

把 claude agents (Agent View) 放进 tmux 左半边,右半边是自动跟随当前 attach session 工作目录的 shell.

How to install Claude Agents Workbench

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lovvvve/claude-agents-workbench and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Agents Workbench does

把 claude agents (Agent View) 放进 tmux 左半边,右半边是自动跟随当前 attach session 工作目录的 shell.

Alternatives in Development

  • OpenAI Codex CLI — (Rust implementation) 67.8k ★
  • IPolloWork — Enterprise-grade, local-first Agent Workbench for people and agent teams 4.9k ★
  • Claude Auto Resume — A shell script utility that automatically resumes Claude CLI tasks when usage limits are lifted 732 ★

README

cw — Claude Code Agent View 工作台

把 `claude agents`(Agent View)放进 tmux 左半边,右半边给你一个**自动跟随当前 attach session 工作目录**的 shell。

┌──────────────────────────────────────────┬──────────────────────────┐
│ claude agents                            │ ~/deploy-argocd          │
│                                          │ $ git log --oneline -3   │
│   ✻ implement ticket 25        Working   │ 3c84dfe fix ingress      │
│   ∙ ask matt skills            Done      │ 4ceb5ff add lint         │
│   ✢ architecture migration     Working   │ $ kubectl get pods       │
│                                          │ ...                      │
│ v2.1.273 Opus 5 max you@host             │ cw → ~/deploy-argocd     │
│ /home/you/deploy-argocd ‹master›         │                          │
└──────────────────────────────────────────┴──────────────────────────┘
          左:原生 Agent View                  右:跟着切目录的 shell

在左边 attach 进某个 agent,右边立刻 `cd` 到那个 agent 的工作目录(含 git worktree);`←` 回列表时右边保持不动;换一个 agent,右边跟着换。

解决什么问题

SSH 上服务器跑 `claude agents`,进到某个 session 之后,这个终端窗口就被 Agent View 占满了。想看一眼 `git log`、`kubectl get pods`、跑个测试,都得另开窗口再手动 `cd` 过去。agent 一多,「我现在在哪个目录」本身就成了负担。

安装

git clone  ~/claude-agents-workbench
cd ~/claude-agents-workbench
./install.sh

`install.sh` 把 `cw` symlink 到 `~/.local/bin`(指向仓库,改完代码即生效),并往 `~/.zshrc` 追加一行加载器。它是幂等的,能就地迁移旧安装;卸载用 `./install.sh --uninstall`。

还需要配一个满足条件的 statusline,见 [statusline 要求](#statusline-要求)。

**依赖**:`tmux`(建议 ≥ 3.2)、`python3`、`flock`、`pgrep`、`claude`。不需要 `jq`。

**shell**:右 pane 用 zsh 时体验最好——通过 `SIGUSR1` + `zle` 切目录,不会打断你正在敲到一半的命令。其他 shell 自动降级为 `send-keys cd`,功能一样,只是 `cd` 会进 shell 历史,且仅在空闲提示符下切换(不会打断 `vim`、`tail -f`)。

用法

cw            # 进入工作台;已存在则复用并自愈,不会新建第二个
cw -n api     # 独立的第二个工作台(cw-api),互不干扰
cw -r         # 重启左 pane 的 Agent View(claude 升级后用)
cw -s         # 查看状态,不进入
cw -k         # 关闭工作台
cw -h         # 帮助

**退出与重启**:在 Agent View 里按 `Esc`(一次即可)退出后,左 pane 会落回 shell,pane 和 session 都留着。直接敲 `clau