TUI console for managing parallel claude -p tasks
Project description
claude-conductor
终端 TUI 控制台,统一管理多个并行的 claude -p 任务。
任务在后台运行,完成时铃声 + 高亮通知,无需在多个终端 tab 间反复切换轮询。
安装
需要 Python 3.10+,以及已安装 Claude CLI。
git clone git@github.com:BensonJinBin/cconductor.git
cd cconductor
pip install -e .
macOS 上若有多个 Python 版本(如同时安装了 Homebrew Python 和 Framework Python),确保 pip 和 conductor 命令属于同一环境。可用 which conductor 确认路径。
使用
conductor
界面布局
┌─────────────────┬──────────────────────────────┐
│ 任务列表 │ 选中任务的输出 │
│ │ │
│ ✓ fix bug a1b2│ │
│ ● write doc c3d│ │
│ ○ add test e5f6│ │
├─────────────────┴──────────────────────────────┤
│ 输入栏(新建任务 / 追加指令) │
└────────────────────────────────────────────────┘
操作
| 操作 | 方式 |
|---|---|
| 新建任务 | 底部输入栏输入 prompt,回车 |
| 指定工作目录新建任务 | Ctrl+O 唤起目录选择器,或输入 @/path prompt |
| 查看输出 | 点击 / 方向键选中左侧任务 |
| 追加指令 | 选中任务后,在输入栏输入新指令,回车 |
| 终止任务 | 选中任务后,Ctrl+X(SIGINT,5 秒后强杀) |
| 退出追加模式 | Esc |
| 退出程序 | Ctrl+Q |
状态说明
| 图标 | 颜色 | 含义 |
|---|---|---|
| ○ | 暗色 | pending — 等待启动 |
| ● | 黄色 | running — 执行中 |
| ✓ | 绿色 | done — 已完成 |
| ✗ | 红色 | error — 执行失败 |
| ⊘ | 暗色 | cancelled — 已终止 |
任务变为 done 或 error 时,终端铃声响起。Header 副标题显示所有任务累计费用。
任务持久化
每个任务自动保存到 ~/.conductor/sessions/<uuid>.json,重启后恢复最近 max_visible_tasks 个任务。
已持久化的任务可以继续追加指令(resume 模式),跨重启不丢失上下文。
配置文件
路径:~/.conductor/config.toml(不存在时自动使用默认值)
[claude]
# 每次调用 claude 时附加的默认参数
default_flags = ["--dangerously-skip-permissions"]
[ui]
# 任务完成时是否响铃
bell_on_complete = true
# 启动时加载的最近任务数量
max_visible_tasks = 20
进程生命周期
关闭 conductor(Ctrl+Q)不会终止正在运行的 claude 子进程。任务会在后台继续执行,输出在下次启动时可恢复查看。
查看当前运行的 claude 进程:
pgrep -la claude
贡献
欢迎提交 Issue 和 Pull Request。
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_conductor-0.1.0.tar.gz.
File metadata
- Download URL: claude_conductor-0.1.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04889a2ee71bcb34afdbe884ef17d800ba68f10d897d88b5f428986b061bea6
|
|
| MD5 |
2479c214caed58579d2efbfc176f5b12
|
|
| BLAKE2b-256 |
693f06ba58c93b53132f45efbada0db38058c798335d5290e37dd72998617217
|
File details
Details for the file claude_conductor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: claude_conductor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d2c505352b360080d7b756214ee696b35bfa0f2f3288a9e9570a996c29fee8
|
|
| MD5 |
98002dc5afb9a796525c7ccba3684079
|
|
| BLAKE2b-256 |
4db46468895cc1ff664edc9dc6645fe4ec6a5c6376c4c4c98ca4c76d9a348de2
|