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

next-prompts

一个让你持续推进的 Claude Code mod:每回合后建议接下来最值得发送的 3 个提示,显示相对于 Claude 自己时间估算的实时计时器,并在提示列上方的面板中跟踪目标进度。

Optinuss@Optinuss

1/

This is my favorite Claude Code mod that I built. It gives three suggested new prompts to further the project development based on recent Terminal history. This has helped me think of new action items. #Mods #ClaudeCode #Claude

原帖图片1

2/

Open sourced. Added a progress bar with estimate time to complete the current prompt. https://github.com/BEXAI/Mod-3-Next-Prompts

原帖图片1
已翻译

关于这个 mod

next-prompts

这是一个让你持续推进的 Claude Code mod:每回合后建议接下来最值得发送的 3 个提示,显示相对于 Claude 自己时间估算的实时计时器,并在提示列上方的面板中跟踪目标任务进度。

功能

下一条提示建议

  • 每回合结束后,Haiku 会读取最近 3 次交流以及项目状态(目标、未完成任务、git status),按影响排序,提出 3 个具体的下一步提示。
  • 如果任务尚未完成,建议 #1 会继续下一个任务。
  • 点击建议,或输入 1、2 或 3 后按 Enter 发送。

估算门控的计时器

  • 注册 estimate MCP 工具(mcp__next-prompts__estimate),要求 Claude 在进行任何变更前,用时长估算和简短计划调用它。
  • 在收到估算前,Edit、Write、NotebookEdit 和 Bash 调用都会被拒绝(subagent 不受此限制)。
  • 全宽进度条会显示相对估算值的已用时间、预计完成时间和计划;请求超时后会变成黄色。

目标和任务面板

  • 接收 TodoWrite / TaskCreate / TaskUpdate 调用,并显示目标、进度条、已用时间,以及每项任务花了多久或已经运行了多久。
  • 默认显示 5 项任务,可用按钮展开其余任务。每项任务完成并发送新提示后,列表会重置。

完成提醒

  • 运行 2 分钟或更久的请求结束时,会显示 toast、播放声音(Glass.aiff),并发送 macOS 通知。

安装

将仓库克隆到 Claude Code mod 目录:

git clone https://github.com/BEXAI/Mod-3-Next-Prompts.git ~/.claude/mods/next-prompts

然后将其作为 Claude Code 外挂启用并重新启动工作阶段。Claude Code 会自行在 .claude-plugin/types/ 下生成类型定义。

目录结构

.claude-plugin/plugin.json   plugin manifest
hooks/hooks.json             hook module list
hooks/register.tsx           all hooks: suggestions, estimate tool, timer, tasks, UI
hooks/register.test.ts       unit tests for the pure helpers
types/index.d.ts             plugin state types

配置

hooks/register.tsx 顶部的设置是常量:

| Constant | Default | Meaning | |---|---|---| | LOOKBACK | 3 | 发送给 Haiku 的过往提示数量 | | MAX_CHARS | 1500 | 此上下文中每条消息的字符上限 | | SUGGEST_TIMEOUT_MS | 15000 | 生成建议的时间限制 | | LONG_TURN_MS | 120000 | 请求运行多久后触发完成提醒 | | SHOWN_TASKS | 5 | 展开按钮前显示的任务数 | | DONE_SOUND | Glass.aiff | 完成提醒所用的声音 |

备注

  • 声音和通知使用 afplay 与 osascript,因此只在 macOS 上工作。其余功能可在任何平台使用。
  • 建议由 Haiku 以低 effort 运行,发送新提示后会取消。

安装

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

claude plugin marketplace add BEXAI/Mod-3-Next-Prompts
claude plugin install next-prompts
原文 / README

next-prompts

A Claude Code mod that keeps you moving: after every turn it suggests the 3 best prompts to send next, shows a live timer against Claude's own time estimate, and tracks your goal's task progress, all in a panel above the prompt.

Features

Next-prompt suggestions

  • After each turn, Haiku reads the last 3 exchanges plus the project state (goal, open tasks, git status) and proposes 3 concrete next prompts, ordered by impact.
  • If tasks are unfinished, suggestion #1 continues the next one.
  • Click a suggestion, or type 1, 2 or 3 and press Enter to send it.

Estimate-gated timer

  • Registers an estimate MCP tool (mcp__next-prompts__estimate) and tells Claude to call it with a time estimate and a short plan before making any change.
  • Edit, Write, NotebookEdit and Bash calls are refused until that estimate is in (subagents are exempt).
  • A full-width progress bar shows elapsed time against the estimate, the projected finish time and the plan, and turns yellow when the request runs over.

Goal and task panel

  • Picks up TodoWrite / TaskCreate / TaskUpdate calls and shows the goal, a progress bar, elapsed time, and each task with how long it took or how long it has been running.
  • Shows 5 tasks by default, with a button to expand the rest. The list resets after every task is done and you send a new prompt.

Done alert

  • Requests that run 2 minutes or longer end with a toast, a sound (Glass.aiff) and a macOS notification.

Install

Clone into your Claude Code mods directory:

git clone https://github.com/BEXAI/Mod-3-Next-Prompts.git ~/.claude/mods/next-prompts

Then enable it as a plugin in Claude Code and restart the session. Claude Code generates the type definitions under .claude-plugin/types/ itself.

Layout

.claude-plugin/plugin.json   plugin manifest
hooks/hooks.json             hook module list
hooks/register.tsx           all hooks: suggestions, estimate tool, timer, tasks, UI
hooks/register.test.ts       unit tests for the pure helpers
types/index.d.ts             plugin state types

Configuration

Settings are constants at the top of hooks/register.tsx:

| Constant | Default | Meaning | |---|---|---| | LOOKBACK | 3 | Number of past prompts sent to Haiku | | MAX_CHARS | 1500 | Character cap per message in that context | | SUGGEST_TIMEOUT_MS | 15000 | Time limit for generating suggestions | | LONG_TURN_MS | 120000 | How long a request runs before the done alert fires | | SHOWN_TASKS | 5 | Tasks shown before the expand button | | DONE_SOUND | Glass.aiff | Sound for the done alert |

Notes

  • The sound and notification use afplay and osascript, so they work only on macOS. Everything else works on any platform.
  • Suggestions run on Haiku with low effort and are cancelled once you send a new prompt.

Showcase: This is my favorite Claude Code mod that I built.

It gives three suggested new prompts to further the project development based on recent Terminal history.

This has helped me think of new action items. #Mods #ClaudeCode #Claude

Open sourced. Added a progress bar with estimate time to complete the current prompt. https://github.com/BEXAI/Mod-3-Next-Prompts 依終端歷史建議三個下一步 prompt

更多类似作品