
Claude Mod:为 Claude Code 构建的 VS Code 风格文件浏览器面板
一位 Reddit 用户展示了一个 Claude Code 插件:添加带 git 状态颜色、搜索、文件预览和编辑功能的 VS Code 风格文件浏览器面板。包含 `/plugin marketplace` 安装命令和 GitHub 仓库,仅支持 Windows,并说明了限制。

关于这个 mod
该插件打开一个面板,显示工作目录的文件夹树、git 状态颜色、覆盖子文件夹的搜索,以及行操作(打开、添加到提示词、重命名、复制、删除到回收站、复制路径、在文件资源管理器中显示)。按住 Ctrl 单击可插入 @path 提及;支持 Markdown/图片/文本预览,以及带语法高亮的编辑、查找/替换、撤销/重做和软换行。它会保留编码和换行符;如果文件已在磁盘上发生变化,则拒绝保存。使用 /plugin marketplace add IT-BAER/claude-forge,再执行 /plugin install file-explorer@claude-forge 安装;也可以使用 claude --plugin-dir path/to/claude-forge/mods/file-explorer 试用。限制:仅支持 Windows(powershell.exe);依赖 Claude Code 的 mod API,而该 API 会随版本变化(在 2.1.283 上测试);文件树显示前 800 行;每个文件的编辑上限为 30,000 个字符。仓库:https://github.com/IT-BAER/claude-forge/tree/main/mods/file-explorer(MIT)。
安装
安装方法请查看原始来源。
原文 / README
I wanted a better file tree next to the chat without switching to an editor, so I wrote a mod for it. It opens a pane with the folder tree of your session's working directory. You can preview files and edit them without leaving Claude Code. What it does File tree with git status colours, search across all subfolders (also collapsed ones), and a row menu: open, add to prompt, rename, duplicate, delete (to the Recycle Bin), copy path, reveal in File Explorer. Ctrl+click on a file adds an "@path" mention to your prompt. Preview for Markdown (rendered, with a Source toggle), images and text files. Editor with syntax colours, find and replace, undo/redo, and soft wrap. Encoding and line endings are kept, and a save is refused if the file changed on disk in the meantime. Try it /plugin marketplace add IT-BAER/claude-forge /plugin install file-explorer@claude-forge Start a new session, then type /files to open or close the pane. For a one-session test without installing: claude --plugin-dir path/to/claude-forge/mods/file-explorer . Limits, so you know before you try Windows only for now. It calls powershell.exe for previews, saves and image handling. It uses Claude Code's mod API, which changes between releases. I run it on 2.1.283, and an upgrade can break it. The tree shows the first 800 rows. Edits are limited to 30,000 characters per file, and larger files open read-only. I have not tested it on macOS or Linux. Repo (MIT): https://github.com/IT-BAER/claude-forge/tree/main/mods/file-explorer Feedback and bug reports welcome. If something breaks after a Claude Code update, tell me your version. submitted by /u/IT-BAER [link] [comments]