cicoub13/cc-plugin-clearmind
clearmind
現在のプロンプトを追いかけるサイドペインを Claude Code に追加する mod。計画の手順、ツール操作、Claude の見えるメモを表示し、新しいプロンプトごとに消去します。
この mod について
ClearMind は、現在処理中のプロンプトを追跡するサイドペインを Claude Code に追加します。新しいプロンプトのたびにペインを消去し、プロンプトの 1 行目、タスクツール(TodoWrite、TaskCreate/TaskUpdate)で保持した計画(pending/in-progress/done の印と手順カウンター付き)、各ツール呼び出しの短いラベル、Claude のトランスクリプトメッセージの 1 行目、ターン完了を表示します。手順が完了すると操作は 1 行の要約に折りたたまれ、計画がなければログは時系列のフラットな一覧になります。セッションにすでに表示されている内容だけを読み取り、ネットワーク呼び出しは行わず、状態をセッション内に保持します。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 aPlan 1/3counter. - The journal:
- each tool call (
…running,✓done,✗failed), with a short label such asBash · Run the testsorEdit src/parser.ts; - the first line of each message Claude writes in the transcript (
› …); - the end of the turn (
■ Done in 42s).
- each tool call (
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
/clearmindopens 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.
