Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ChenYCLv0.5.2In 1 marketplace
持久化 todo 队列: 被动显示不干涉对话, 支持归集/暂停恢复/多选 fork 到新 session/OpenCode 风格 TUI 面板
You run one by typing its /name in Claude Code.
1 caution to review before installing
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
跨会话持久的任务队列 + OpenCode 风格实时 TUI 面板。默认只显示、不干涉对话流程 (见下方"被动模式"), 需要它介入时再一条命令开启。解决的痛点:
mode active, 插件才会约束当前目标任务。 ┌──────────────────────────────────┐
会话内 TodoWrite ──┐ │ .claude/todo-queue.json │──▶ fork 迁出 ──▶ 新 session
代码 TODO/FIXME ───┼─▶│ (跨会话持久队列 + 事件日志) │ (独立队列 / git worktree)
用户 /add ─────────┘ │ queued ⇄ active ⇄ paused → done │
└──────────┬───────────────────────┘
│
SessionStart hook ◀──────────┤ 新会话带出上会话完成度/遗留目标/暂停任务
UserPromptSubmit hook ◀──────┤ 被动: 一行只读状态 │ 主动: 目标约束
Stop hook ◀──────────────────┤ 被动: 从不拦截 │ 主动: 按 auto 推进
PostToolUse hook ◀───────────┘ 被动: 不改队列 │ 主动: 归集+绑定
/todo-queue:collect 扫描代码注释里的 TODO/FIXME 入队 (随时可用);
active 模式下 PostToolUse hook 还会把会话内的 TodoWrite/TaskCreate 自动汇入并对账。UserPromptSubmit hook
每轮注入目标任务、验收标准和"新需求先入队、别现场展开"的规则。auto on/smart 时, Stop hook 在队列非空时拦截停止并喂入下一个;
max_auto(默认 10 次/轮) 兜底防死循环, 每次用户发言重置计数。bind 手动绑定。UI 与 list 中以
⚙agent ⎇worktree wf:xxx s:会话 标签显示 (worktree 已删除会标 ✗)。pause(暂停, 跨会话可 resume 恢复, 不参与自动推进) / cancel(取消) /
fork(多选迁出到新 session, 迁出即从当前队列移除)。history 可查各会话完成度与事件流水; 新会话启动自动带出上会话摘要。/plugin marketplace add ChenYCL/claude-code-plugin-enhancement
/plugin install todo-queue@claude-code-plugin-enhancement
重启 Claude Code 后生效。队列文件按项目独立 (<项目>/.claude/todo-queue.json),
也可用环境变量 TQ_QUEUE_FILE 指定独立队列 (fork 的新 session 就靠它隔离)。
| 命令 | 作用 |
|---|---|
/todo-queue:add <任务> | 入队 (自动提炼标题/优先级/验收标准, 同名去重) |
/todo-queue:list | 查看队列 |
/todo-queue:next | 取下一个任务设为目标并开始执行 |
/todo-queue:done [id] [备注] | 标记完成 (自动模式下顺势接下一个) |
/todo-queue:pause [id] [原因] | 暂停任务, 跨会话保留上下文 |
/todo-queue:resume <id> | 恢复暂停的任务 (恢复 todo 记忆) |
/todo-queue:cancel <id> [原因] | 取消任务 |
/todo-queue:focus <id> | 切换目标任务 |
/todo-queue:fork <id...> | 多选迁移到新 session 单独处理 (支持 --worktree) |
/todo-queue:collect [路径] | 归集代码 TODO 注释 + 会话遗留需求 |
/todo-queue:history | 历史记录 + 各会话完成度 |
/todo-queue:mode [passive|active] | 切换被动/主动模式 |
/todo-queue:setup | 首次配置引导 (statusline/auto/UI, claude-hud 式交互) |
/todo-queue:gc [--dry-run] | 空间清理 (每日也会自动运行) |
/todo-queue:ui | 打开实时 UI 面板 (OpenCode 风格任务列表) |
/todo-queue:auto [on|off|smart] | 自动推进 (仅 active 生效, smart=智能判断) |
/todo-queue:status | 统计概览 (含完成度进度条) |
也可以直接使用 CLI (无需进入 Claude Code):
python3 plugins/todo-queue/scripts/tq.py add "修复登录超时" -p 1 -a "重试 3 次后仍能登录"
python3 plugins/todo-queue/scripts/tq.py fork tq-2 tq-3 --worktree --launch
/todo-queue:ui 或手动运行:
python3 plugins/todo-queue/scripts/tq_ui.py --project /path/to/project # 交互 TUI
python3 plugins/todo-queue/scripts/tq_ui.py --once [--history] # 打印一次快照
todo-queue wallet-find
~/Documents/wallet-find 被动 ▓▓▓▓░░░░░░ 4/10 (40%)
────────────────────────────────────────────────────
当前目标
▌ ▸ tq-3 P1 修复登录超时 ⚙backend ⎇wallet-find-fix s:abcd1234
验收 重试3次后仍能登录
已暂停 1
⏸ tq-7 P3 等第三方接口修复
待办 2
· tq-5 P2 补充单元测试 wf:run42abc
· tq-6 P3 更新 README
会话 todos
▸ Building the repo map context layer
✓ Fix auth timeout
最近完成
✓ tq-2 清理死代码
────────────────────────────────────────────────────
会话 abcd1234 2026-08-13 21:40
j/k 移动 ␣ 多选 n 开始 p 暂停 d 完成 x 取消 m 迁移 h 历史 q 退出
use_default_colors), 直接继承终端的 light/dark 主题,
两种主题下都不突兀; 选中行用左侧色条 ▌ 而非反色块 (反色在 light 主题下会变成刺目的黑底);
终端只有 8/16 色时自动降级到最接近的基础色。~/.claude/tasks/session-*,
即 Agent SDK todo-tracking 的持久化文件), 会话 ID 由插件 hooks 自动记录关联。两种模式 (迁出的任务在原队列标记 migrated 并移除, 是移动不是复制):
| 模式 | 命令 | 隔离方式 | 适用 |
|---|---|---|---|
| 队列文件 | fork tq-1 tq-3 | 同目录, TQ_QUEUE_FILE 指向独立队列 | 纯任务拆分 |
| worktree | fork tq-1 tq-3 --worktree | 新建 git worktree + 分支 tq/<名称> | 需并行改代码 |
加 --launch 自动在新终端 (tmux 窗口 / macOS Terminal) 启动 claude, 新 session 的
SessionStart hook 会自动带出迁入的任务队列。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub chenycl/claude-code-plugin-enhancement --plugin todo-queue