russellpope/claude-mods/tree/main/outputs-pane
outputs-pane
Claude Code 的侧边面板,列出会话中 Claude 写入或编辑的每个文件,分为计划和代码区段,并可点击在编辑器中打开。
关于这个 mod
outputs-pane 在 Claude Code 中添加侧边面板,列出会话期间 Claude 写入或编辑的每个文件。Markdown 和文本文件归入计划区段,其余文件归入代码区段。每行显示文件名、文件夹、时间戳和图标;新文件带绿色 +,编辑带黄色 ~,最新文件在前。点击名称会在配置的编辑器中打开(默认是 zed)。每次成功 Write 后面板都会弹出,每个区段可以折叠,也可用 /outputs 重新打开。需要支持 function-hooks mod 的 Claude Code(基于 2.1.288)、Nerd Font,以及能够从命令行打开的编辑器。通过将 CLAUDE_CODE_PLUGIN_DIRS 指向 outputs-pane 文件夹安装,编辑器可在 pluginConfigs 中配置。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add russellpope/claude-mods claude plugin install outputs-pane
原文 / README
outputs-pane
A side pane in Claude Code that lists every file Claude writes or edits in the session. Markdown and text files go in a planning section at the top, everything else in a code section below. Click a file name to open it in your editor.
outputs 3 2
▾ planning 2
design.md docs/specs/ 14:02
notes.md 14:10
▾ code 3
main.rs src/ 14:05
Cargo.toml 14:06
util.ts web/lib/ 14:11
click a name for zed
What it does
- Tracks every successful
Write(green+, new file) andEdit(yellow~, changed file). Newest first, one row per file. A file Claude created stays marked new after later edits. Failed or denied writes are left out. - Pops open on every successful
Write, so a closed pane comes back when there's something new. Edits are listed without reopening it. - Sections:
.md,.mdx,.markdownand.txtgo under planning; everything else under code. Click a section header to fold or unfold it. Planning gets up to half the rows and code gets the rest. A folded section takes no rows. - Icons: Nerd Font file-type icons with colors in the style of eza
--icons. - Hover: the row under the pointer is highlighted and the file name is underlined.
- Open: clicking a file name runs your editor command with the file's path. A toast confirms it or shows the error.
/outputsopens the pane by hand.
The list lives in the session's state, so it survives the mod reloading but starts empty in each new session.
Requirements
- Claude Code with function-hooks mods enabled. Built and tested on 2.1.288.
- A terminal font with Nerd Font glyphs. Ghostty and kitty have them built in. Without one the icons show as boxes.
- An editor that opens a file from the command line:
zed,code,subl,nvimin a GUI wrapper, and so on.
Install
git clone https://github.com/russellpope/claude-mods.git ~/claude-mods
Then add the folder to the env block of ~/.claude/settings.json:
{
"env": {
"CLAUDE_CODE_PLUGIN_DIRS": "~/claude-mods/outputs-pane"
}
}
Start a new claude session. The pane opens at session start when the terminal is at least 144 columns wide; in a narrower window, type /outputs. See the repo README for other ways to load it and what to do if it doesn't.
Settings
| Setting | Default | What it does |
| --- | --- | --- |
| editor | zed | Command that opens a clicked file. The path is added as the last argument, so code -r runs code -r <file>. The first word is found on PATH; use an absolute path (/usr/local/bin/zed) if Claude Code doesn't see your shell's PATH. |
Change it from Claude Code's config menu, or in ~/.claude/settings.json:
{
"pluginConfigs": {
"outputs-pane": {
"options": {
"editor": "code -r"
}
}
}
}
Using it
- Clicks reach the pane in Claude Code's fullscreen mode, where the terminal reports mouse clicks. Elsewhere, focus the pane with ctrl+x tab and press Enter on a row.
- Close the pane with its
×. It reopens on the next new file, or with/outputs. - Docked or inline: in fullscreen mode the pane docks beside the transcript; otherwise it sits above the prompt.
- Width: the mod asks for 36 columns. If you have ever dragged a pane's edge, Claude Code keeps that width (
pluginPanes.dockColumnsin~/.claude.json), and it wins over what the mod asks for.
Limitations
- Only files written through Claude's
WriteandEdittools are tracked. Files created by shell commands (Bash) or notebooks don't show up. - Files are sorted into sections by extension, so a
READMEwith no extension goes under code. - Colors are fixed hex values tuned for dark themes.
Development
claude plugin validate .
claude plugin test .
Tests are in hooks/register.test.tsx. They cover tracking, sections, the row split, folding, the pop-up, the editor setting and the click-to-open path.
