ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 lucenity0

readout

Shows which files Read opened, which lines, and what each search looked for, on the folded tool line

未翻訳

この mod について

readout 是一個 Claude Code 外掛,將折疊的工具呼叫摘要列展開,顯示 Read 讀取的檔案路徑與行號、Grep/Glob 的搜尋樣式與範圍、Bash 指令、WebFetch/WebSearch 的網址或查詢。支援同一工具連續呼叫合併顯示、資料夾聚合、重複讀取標記 ×2、失敗呼叫標紅,以及在支援終端中以連結開啟檔案。透過 function hooks 實作,可於設定中選擇 inline/expand 模式、連結與背景色。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add lucenity0/claude-readout
claude plugin install readout
原文 / README

claude-readout

Shows which files Claude Code read. The folded Read 3 files line names them instead, along with the lines it read and what it searched for.

<p align="center"> <img src="assets/demo.svg" alt="The same turn twice. Claude Code folds six calls into Read 5 files, ran 1 shell command. readout names each file as it is read: src/{date.ts ×2, date.test.ts:1-60}, src/tz/{offsets.ts, rules.ts}, then the grep command on its own row" width="760"> </p>

It answers #21151. Verbose mode shows the names too, but it turns on more than names, and it doesn't reach VS Code. readout changes only the folded line, on every surface, at no token cost.

 

install

readout runs on function hooks, an early-access part of Claude Code. Turn them on in ~/.claude/settings.json:

{ "env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" } }

Then install it and start a new session:

claude plugin marketplace add lucenity0/claude-readout
claude plugin install readout@claude-readout

To hack on it instead, clone it and load the folder with claude --plugin-dir ~/claude-readout.

Function hooks may change between releases. readout was tested on Claude Code 2.1.289.

 

what it shows

Read                 the path, relative to the project or under ~, and the lines: date.test.ts:1-60
Grep, Glob           the pattern, and where it looked
Bash                 the command, one row each, wrapping when long
WebFetch, WebSearch  the url or the query

Calls in a row to the same tool share a line. Files in one folder gather as src/{a.ts, b.ts}, a file read twice shows ×2, and the call still running is dim until it lands. A line that runs past the window ends in +N more.

In terminals that draw links (iTerm2, Warp, Ghostty, WezTerm, kitty, VS Code), each path is a link: cmd-click it to open the file.

In the terminal, tool rows sit on a quiet band in softer text, so they stand apart from Claude's replies.

A call that failed is red, along with its reason. A call a plugin blocked says which one (blocked by <plugin>).

● Read  src/old.ts  File does not exist

ctrl+o and --verbose work as before.

 

settings

{ "pluginConfigs": { "readout@claude-readout": { "options": { "mode": "inline", "links": "auto", "tint": "auto" } } } }

mode is inline (the default: one line per tool, as above) or expand, which unfolds every group into Claude Code's own row per call.

links is auto, on or off. A terminal that can't draw links prints each URL beside its name, so auto only turns them on in the terminals above.

tint is auto (a band to suit your light or dark theme), off, or a band color of your own such as #1d2128.

 

contributing

claude plugin validate .
claude plugin test .

The labels and layout live in format.ts and the drawing in register.tsx. The demo is drawn with format.ts too: node --experimental-strip-types assets/demo.mts.

 


<sub>MIT · built with Claude Code</sub>

関連作品