josippapez/ai-setup/tree/main/claude/plugins/prompt-timeline
prompt-timeline
一个 Claude Code 插件,会把你自己的提示渲染成记录中的独立青色卡片,添加列出每个提示并可跳转的 /timeline 面板,并在输入框上方加入提示条。
关于这个 mod
prompt-timeline 让你在很长的会话中也能轻松找到自己的提示。你的提示会绘制成青色卡片,标题为 › You · #N,以区别于 Claude 的输出;输入框上方的提示条会列出最近 6 个提示,点击即可跳转。/timeline 会打开一个面板,将本次会话的每个提示列为跳转链接。提示会按照会话保存它们的方式记录(session.append、door prompt),因此列表从插件载入时开始,并会在 /reload-plugins 后保留。其他钩子会为每次回复渲染模型/思考量标签、排队提示卡片、开头带描述的 Bash 卡片,以及带彩色标签的工具调用卡片,标签包括 Bash、Read、Edit、Write、Search、Web、Tools、Agent、Browser 或 MCP 服务器。使用 claude plugin test claude/plugins/prompt-timeline 测试。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add josippapez/ai-setup claude plugin install prompt-timeline
原文 / README
prompt-timeline
A mod that makes your own prompts easy to find in a long session.
- Your prompts draw as a cyan card headed
› You · #N, so they stand apart from Claude's output. - A strip above the prompt box lists your last six prompts; click one to jump back to it. It sits above the prompt rather than in a pane because panes share one dock as tabs.
/timelineopens a pane with every prompt of the session, each one a jump link.
Prompts are recorded as the session stores them (session.append, door prompt), so the
list starts from when the plugin loaded and survives /reload-plugins.
Test: claude plugin test claude/plugins/prompt-timeline
- A prompt that is still queued (sent while a turn runs) draws as a dim "◌ Queued" card until it is sent. Slash commands keep the default row.
hooks/look.tsx: each reply opens with a magenta pill naming the model (◆ Opus 5.5), and startup notices get a blueℹand their/commandas a pill. The prompt strip sits under a cyan divider as chips, the latest one highlighted.- Each reply keeps the model and effort it was made with (saved per session in the plugin's store on disk, keyed by the start of the reply's text), so a later
/modelor effort change never relabels older replies. - A Bash call's card leads with its description and shows the command as one dim line.
- Tool calls draw as cards (
hooks/cards.ts): a colored label (Bash, Read, Edit, Write, Search, Web, Tools, Agent, Browser for chrome-devtools, or the MCP server name), one readable title and a dim detail line.
