PathChan/CodeReader

Plugin插件 Native原生 ⭐ 3 MIT Docs & Writing文档与写作

Project Overview项目介绍

CodeReader is a native web plugin built exclusively for DeepSeek Harness (DSH). It adds an in-interface workspace file tree navigation and multi-tab code editing panel directly into the DSH conversation screen. You do not need to switch to an external editor when an AI agent modifies your code, you can browse, review, edit the code and write changes back to disk all within the same DSH window. To install the plugin, you must first have a working DSH installation configured for web use, then run a simple npx command to add it from this GitHub repository.

The core workflow starts after you install and launch DSH web. Click the "Open File" entry on the workspace folder row in the DSH sidebar to toggle the file tree open or closed. Navigate the tree by expanding directories one level at a time, click a file to open it in the right-side editing panel, and click a folder to just expand or collapse it, matching the familiar VS Code file tree workflow. When you are done editing, save the file with Ctrl+S or Cmd+S, and the changes are written back to your local disk and verified automatically.

All user preference settings for CodeReader are stored locally in your browser, and are never sent to any remote server. The plugin can only read and write files within your current DSH workspace, it will never access paths outside the active workspace for improved security. CodeReader is released under the permissive MIT open source license. To uninstall the plugin, you can run a single npx dsh plugin remove command that cleans up all plugin files from your DSH profile.

CodeReader是一款原生DeepSeek Harness(DSH)网页插件,可在DSH对话界面中为当前工作区添加文件树导航和多标签编辑面板。当智能体修改代码时,用户无需切换至外部编辑器,就可以直接在同一窗口浏览、核对、编辑代码,并将修改写回磁盘,优化了和AI智能体协作编辑代码的流程。

点击侧边栏工作区文件夹行的「打开文件」即可调出文件树,再次点击可以收起。文件树支持逐级展开目录,点击文件就能在右侧编辑面板打开,点击文件夹仅执行展开或折叠操作,操作逻辑和VS Code的文件树保持一致,符合大部分开发者的日常使用习惯。

本插件仅可在已安装DSH并配置好网页端环境后使用,可通过npx命令一键从GitHub仓库安装,也可拉取源码本地构建后安装。插件读写范围仅限当前工作区目录,不会访问工作区外路径,采用MIT许可协议,所有用户偏好设置都保存在本地浏览器中。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

npx @deepseek-ai/dsh plugin --profile web add github:PathChan/CodeReader

把 PathChan/CodeReader 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

CodeReader

DeepSeek Harness(DSH)Web 插件:在对话界面中提供工作区文件树与多标签编辑画板。

智能体修改代码时,可在同一窗口中浏览、核对、编辑并写回磁盘,无需切换至外部编辑器。

功能

文件树

  • 工作区文件夹行、「新会话」按钮左侧提供「打开文件」入口;再次点击可收起。
  • 目录可逐级展开;文件图标采用 Seti 风格(与 VS Code 文件树同类)。
  • 单击文件在右侧画板中打开;单击文件夹仅展开或折叠。

画板编辑

  • 支持以多标签打开源文件与产物,当前文件可直接编辑。
  • 提供语法高亮与行号;未保存标签以圆点标识,关闭前将提示确认。
  • 通过 Ctrl+S / Cmd+S 或工具栏保存,内容写回当前工作区磁盘,并在写入后校验。
  • 可将当前文件交由系统默认程序打开(如本机 IDE、图片查看器)。
  • 画板可折叠,需要时再展开;DSH 侧栏收起时,文件树同步让出空间。

与智能体协同

  • 智能体生成过程中,画板自动切换为只读,避免与模型同时改写同一文件。
  • 对话中的产物路径被点击时,可按设置选择「系统默认软件」或「在工作区画板中打开」。

设置

偏好保存在本机浏览器,不经过服务端。

  • 默认打开方式:系统默认软件 / 工作区画板。
  • 编辑器主题:跟随 Harness、深色、浅色。
  • 入口:文件树工具栏齿轮,或 DSH「设置」中的「文件树设置」。

使用方法

  1. 安装插件并启动 DSH Web(见下文)。
  2. 在侧栏工作区文件夹行点击「打开文件」。
  3. 在文件树中打开目标文件,于右侧画板编辑;保存后即写入磁盘。
  4. 如需使用本机程序打开,请使用画板工具栏中的「在系统默认软件中打开」。

安装

需已安装 DSH,并使用 Web 配置:

npx @deepseek-ai/dsh plugin --profile web add github:PathChan/CodeReader
npx @deepseek-ai/dsh web

从本仓库源码安装时,请先构建再加入配置:

npm install
npm run build
npx @deepseek-ai/dsh plugin --profile web add .
npx @deepseek-ai/dsh web

卸载:

npx @deepseek-ai/dsh plugin --profile web remove codereader

说明

  • 读写范围限于当前工作区目录,不会访问工作区以外的路径。
  • 许可证:MIT

更多 DSH 插件见 Topic:dsh-plugin

← 上一个 Prev dsh-Kimi-WebBridge 下一个 Next dsh-observation-journal →