ClaudeMods
☰
ZH-TW
● 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.

更多類似作品