ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 hoangbits

implement-plan-tracker

一个始终在面板中显示完整计划的 Claude Code 外挂

已翻译

关于这个 mod

一个始终在面板中显示完整计划的 Claude Code 外挂:

2/5 done · ~45 min left · task list
✓ 1. Read ticket (~5 min)
✓ 2. Write OpenSpec proposal (~15 min)
▶ 3. Implement context functions (~20 min)
○ 4. Add tests (~10 min)
○ 5. Commit and open PR (~5 min)
> Add a step after the current one
  • 每个步骤都带有 ✓ 已完成、▶ 当前步骤或 ○ 待处理标记
  • 显示 done/total 计数和剩余时间
  • 提供文字框来新增步骤,即使 Claude 正在工作也可以新增
  • 状态列项目:Plan 2/5 · ~45 min left ▶ Implement context functions

剩余时间

外挂会要求 Claude 在每个步骤结束时给出估计,例如 (~10 min)。

  • 完成任何步骤前,剩余时间是 Claude 各项估计的总和。
  • 步骤完成后,外挂会测量各步骤实际花费的时间,并按实际时间/估计时间缩放 Claude 的估计。
  • 没有估计的步骤使用已测量时间的平均值。
  • 会扣除当前步骤已经经过的时间。

Claude 工作时新增步骤

按 ctrl+x tab 将焦点移到面板,按 Tab 进入文字框,输入步骤后按 Enter。步骤会插入当前步骤之后。

  • Task list:外挂会重写任务列表(或建立任务),加入新步骤。
  • OpenSpec:外挂会在当前步骤之后将一行 - [ ] 写入 tasks.md。
  • Claude 会在下一次工具调用的结果中收到有关新步骤的说明,因此能看到这项编辑而不必停止。如果 Claude 正在闲置,这则说明会随下一条消息发送。

计划来源

  1. 主要对话的 Claude Code 任务列表(TodoWrite,或 TaskCreate/TaskUpdate/TaskList)。
  2. 没有任务列表时:最新 openspec/changes/<change>/tasks.md 中的复选框(跳过 archive 文件夹)。该文件变更时以及每轮结束时,面板都会刷新。

安装

/plugin marketplace add hoangbits/claude-implement-plan-tracker
/plugin install implement-plan-tracker@implement-plan-tracker

这个外挂使用 Claude Code 函数 hook(早期访问功能),需要支持外挂函数 hook 的 Claude Code 版本。

使用

  • 面板会在工作阶段开始时打开。终端机窄于 144 列时,会等到你打开它才显示。
  • 随时输入 /plan 打开面板。
  • ctrl+x tab 将焦点移到面板。Esc 或 ctrl+x x 关闭它。

开发

claude plugin validate .
claude plugin test .
claude --plugin-dir .

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add hoangbits/claude-implement-plan-tracker
claude plugin install implement-plan-tracker
原文 / README

claude-implement-plan-tracker

A Claude Code plugin that always shows the whole plan in a pane:

2/5 done · ~45 min left · task list
✓ 1. Read ticket (~5 min)
✓ 2. Write OpenSpec proposal (~15 min)
▶ 3. Implement context functions (~20 min)
○ 4. Add tests (~10 min)
○ 5. Commit and open PR (~5 min)
> Add a step after the current one
  • Every step, with ✓ done, ▶ current, ○ pending
  • A done/total count and the time left
  • A text box to add a step, also while Claude is working
  • A status line entry: Plan 2/5 · ~45 min left ▶ Implement context functions

Time left

The plugin asks Claude to end each step with an estimate, for example (~10 min).

  • Before any step is done, the time left is the sum of Claude's estimates.
  • After steps are done, the plugin measures how long each one took. It scales Claude's estimates by actual time / estimated time.
  • Steps without an estimate use the average measured time.
  • The current step's elapsed time is subtracted.

Add a step while Claude works

Press ctrl+x tab to focus the pane, Tab to the text box, type the step, and press Enter. The step goes after the current step.

  • Task list: the plugin rewrites the task list (or creates a task) with the new step.
  • OpenSpec: the plugin writes a - [ ] line into tasks.md after the current step.
  • Claude gets a note about the new step with the result of its next tool call, so it sees the edit without stopping. If Claude is idle, the note goes with your next message.

Plan source

  1. Claude Code's task list (TodoWrite, or TaskCreate / TaskUpdate / TaskList) for the main conversation.
  2. When there is no task list: the checkboxes in the newest openspec/changes/<change>/tasks.md (the archive folder is skipped). The pane refreshes when that file changes and at the end of each turn.

Install

/plugin marketplace add hoangbits/claude-implement-plan-tracker
/plugin install implement-plan-tracker@implement-plan-tracker

The plugin uses Claude Code function hooks (early access). It needs a Claude Code build with plugin function hooks.

Use

  • The pane opens at session start. In a terminal narrower than 144 columns, it waits until you open it.
  • Type /plan to open the pane at any time.
  • ctrl+x tab moves focus to the pane. Esc or ctrl+x x closes it.

Develop

claude plugin validate .
claude plugin test .
claude --plugin-dir .

更多类似作品