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

clearmind

一个 Claude Code 外挂,会打开跟随当前提示的侧边面板,显示计划步骤、工具操作和 Claude 的可见笔记,并在每个新提示时清空。

已翻译

关于这个 mod

ClearMind 为 Claude Code 添加一个跟踪当前处理提示的侧边面板。每次新提示都会清空面板;面板显示提示的第一行、通过任务工具(TodoWrite、TaskCreate/TaskUpdate)保留的计划(带有 pending/in-progress/done 标记和步骤计数器),以及每次工具调用的日志,其中包含简短标签、Claude 转录消息的第一行和一轮完成记录。步骤完成后,操作会折叠成一行摘要;没有计划时,日志保持平坦的时间顺序列表。它只读取会话已经显示的内容,不进行网络调用,并将状态保存在会话中。需要 Claude Code v2.1.287+;通过外挂 marketplace 安装(/plugin marketplace add cicoub13/cc-plugin-clearmind,然后运行 /plugin install clearmind@clearmind)。/clearmind 命令会切换面板:在宽阔的全屏终端中它显示为右侧边栏,否则显示在提示符上方;当终端至少有 144 列宽时,会在会话开始时自动打开。

安装

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

claude plugin marketplace add cicoub13/cc-plugin-clearmind
claude plugin install clearmind
原文 / README

ClearMind

A Claude Code mod that follows the current prompt in a side pane, so you can see where Claude is without reading every line of the transcript.

The pane is cleared each time you send a new prompt, and shows:

  • The prompt being worked on (its first line).
  • The plan: the steps Claude keeps with its task tools (TodoWrite, TaskCreate / TaskUpdate), as ○ pending, ● in progress, ✓ done, with a Plan 1/3 counter.
  • The journal:
    • each tool call (… running, ✓ done, ✗ failed), with a short label such as Bash · Run the tests or Edit src/parser.ts;
    • the first line of each message Claude writes in the transcript (› …);
    • the end of the turn (■ Done in 42s).

The actions of a step stay listed while the step is in progress. Once it is completed, they fold into one line: ✔ Reproduce the bug (4 actions). When Claude keeps no plan, the journal is a flat, chronological list.

ClearMind only reads what the session already shows: tool calls and the text of Claude's messages. It makes no network calls and keeps its state in the session.

Requirements

Claude Code v2.1.287 or later (mods). Tested with Claude Code 2.1.288.

Install

claude plugin marketplace add cicoub13/cc-plugin-clearmind
claude plugin install clearmind@clearmind

Or, inside a session: /plugin marketplace add cicoub13/cc-plugin-clearmind, then /plugin install clearmind@clearmind.

Use

  • /clearmind opens or closes the pane.
  • In a wide fullscreen terminal the pane is a sidebar to the right of the transcript; otherwise it is a framed region above the prompt.
  • The pane opens by itself at session start when the terminal is at least 144 columns wide.

Develop

git clone [email protected]:cicoub13/cc-plugin-clearmind.git
claude --plugin-dir ./cc-plugin-clearmind

Claude Code reloads the mod when a file changes, and writes the type declarations for your build into .claude-plugin/types/ (git-ignored); the root tsconfig.json extends them.

claude plugin validate .claude-plugin/plugin.json   # what Claude Code reads from the mod
claude plugin validate .                            # the marketplace
claude plugin test .                                # tests/*.test.ts
tsc -p .                                            # type-check, once the mod has loaded

| File | Role | | --- | --- | | hooks/register.tsx | The hooks module: events and pane drawing | | types/index.d.ts | The session state the pane draws from | | tests/clearmind.test.ts | Tests run by claude plugin test | | .claude-plugin/marketplace.json | Makes this repository installable as a marketplace |

License

Licensed under either of Apache License, Version 2.0 or MIT license, at your option.

更多类似作品