better-er/dsh-classic-coding
「DSH·古法编程」:在 DSH Web 界面右侧栏用 Monaco 编辑器打开工作区代码文件。
Project Overview项目介绍
This is a native client plugin built exclusively for the DeepSeek Harness (DSH) web client, nicknamed "classic-coding" for its goal of letting developers edit code directly inside DSH without switching to external editors. It adds a toggle button labeled "⌨️ Classic Coding" to the footer of DSH’s sidebar, which when clicked slides open a full editing panel from the right side of the DSH conversation interface. The panel includes a collapsible file tree on the left, a Monaco Editor in the center, and a status bar at the bottom that shows the current file path and save status.
This plugin is designed for developers who prefer to keep their entire AI-assisted coding workflow inside the DSH web interface. It adds a small suffix to file links in DSH’s conversation output; clicking the suffix opens the file directly in the plugin’s editor, while clicking the original file link retains DSH’s default behavior of opening the file in an external editor. The file tree automatically filters out common ignored directories like .git and node_modules, lazy-loads directory contents, and automatically adapts when the DSH sidebar is collapsed to a narrow rail, and automatically matches DSH’s active light or dark theme.
The plugin is released under the open-source MIT license, and can be installed in two different ways via the DSH CLI. You can install it directly from GitHub by running dsh plugin --profile web add github:better-er/dsh-classic-coding, which triggers an on-demand build via npm’s prepare script when installing from source. Alternatively, you can install the pre-built package from npm by running dsh plugin --profile web add dsh-classic-coding, which does not require a local build step. After installation, you just need to restart the DSH web client to activate the plugin, and the Monaco Editor is loaded dynamically from a CDN with no extra dependencies.
这是一个专为 DeepSeek Harness(DSH)开发的原生网页端插件,中文名为「dsh·古法编程插件」。它的核心功能是在DSH对话界面的右侧滑出一个集成了 Monaco 编辑器与文件树面板的侧边编辑区,让开发者不需要切换到外部编辑器,就能直接在DSH对话中修改本地工作区的代码文件,简化AI编程时的编辑流程,保持在同一个会话界面内完成代码修改操作。
该插件面向习惯在DSH内完成全流程AI编程的开发者,支持多种便捷操作。用户可以点击DSH侧栏底部的「⌨️ 古法编程」按钮来展开或收起编辑面板,点击对话消息流中文件条目后的「古法编程」尾巴,就能直接在插件内置编辑器中打开对应文件,保留原按钮的外部打开行为不变。 文件树支持懒加载、折叠展开,自动过滤 .git、node_modules 等无关目录,适配侧栏不同宽度模式,跟随DSH明暗主题自动切换样式。
该插件遵循MIT许可协议免费开源,仅支持DSH网页端,不支持其他平台。用户可以通过两种dsh命令方式安装:从GitHub源码安装时,npm会触发prepare脚本现场构建;从npm安装时,包内已包含构建产物,不需要额外构建。安装完成后重启DSH网页端即可自动启用,卸载执行对应命令后重启就能完全移除插件。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-classic-coding(better-er/dsh-classic-coding)
仓库:https://github.com/better-er/dsh-classic-coding
本站详情页:https://www.yhbd.top/plugins/better-er-dsh-classic-coding/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-10-02 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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命令行安装
dsh plugin --profile web add dsh-classic-coding
把 better-er/dsh-classic-coding 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH·古法编程
引言
为了在 AI 编程的高度发展的今天,保护古法编程这一非物质文化遗产,DSH·古法编程被开发出来,让你可以在 DeepSeek Harness 中继续体验大脑的思考能力。
功能
- 原生查看打底:文件默认完全交给 dsh 内置查看器,插件不参与自动认领,Markdown、图片、PDF 与代码预览都保持原样。
- 按需进入编辑:内置文档预览头部出现铅笔图标,点击把当前文件切换为 Monaco 编辑模式;编辑模式工具栏里的「查看」按钮切回内置预览。
- 复用内置文件树与 tab:不再自建文件树与覆盖层面板,编辑 tab 与内置 tab 一起分栏、浮出、跨会话切换保活。
- 编辑器:Monaco 经 CDN 动态加载,按扩展名自动选语言,随 DSH 明暗主题实时切换。
- 保存:Ctrl+S 或工具栏「保存」按钮写回原文件。写入走插件自己的保存端点,不经过 agent 沙箱与权限链。
演示视频
| 古法编程插件演示 · 42 秒 |
|---|
![]() |
视频录制于旧版覆盖层面板时期,交互入口已改为 dsh 内置右侧栏 tab。
安装
从 GitHub 安装:源码在 src/,lib/ 不入仓库,安装时 npm 会触发 prepare 脚本现场构建。
dsh plugin --profile web add github:better-er/dsh-classic-coding
从 npm 安装:包内已含构建产物 lib/index.js 与 lib/client.js,安装时不再构建。
dsh plugin --profile web add dsh-classic-coding
两种方式装完都会自动挂载,重启 DSH web 后启用,无需手工编辑任何文件。
卸载
dsh plugin --profile web remove dsh-classic-coding
彻底移除,重启 DSH web 后不再加载。
要求与开发
- 标准形态:dsh 客户端插件,声明
dsh.client、导出./client。 - 自挂载 bundle:同时声明
dsh.bundle,用dsh plugin --profile web add从 GitHub 安装后自动识别为 profile layer 并挂载,无需手工写组合 entry。 - 读取复用内置:文件内容与目录列举交给
@deepseek-ai/dsh-api-workspace-files,正文经地址dsh-resource://file/session/<会话>/<路径>调remote.workspaceFiles.readBytes读取,文件树用内置files类型,插件不再自建 describe / listDir / readFile。 - 写入自带端点:内置服务不提供修改操作,故 Host 端经
mountRpcChannel向webServer自注册/classic-coding前缀路由,只保留writeFile一个端点,复用connection.requestRejection做 Host 校验与浏览器鉴权,并实现官方client-request/server-response信封。保存刻意走 Node 原生fs.writeFile,不经ctx.fs的 agent 沙箱。 - 构建产物:源码在
src/,用 tsdown 构建出lib/index.js、lib/index.d.ts与lib/client.js。lib/不入库,从 GitHub 安装时由prepare自动构建;本地开发跑pnpm install后pnpm build,类型检查用pnpm typecheck,产物冒烟用pnpm smoke。package.json声明dsh.client.platform: "web"、exports["./client"] → ./lib/client.js。 - UI 挂载点:
ctx.sidebarRightTabs.register注册 tab 类型code,不写patterns,因此不参与自动认领,只能由sidebarRight.openResource(address, { kind: 'code' })点名打开;sidebar.right.tab.document.actions提供内置预览头部的「编辑」图标,sidebar.right.pane.tab按类型 id 注册正文。不再占用sidebar.footer.action与shell.overlay。 - 样式:DSH 主题 CSS 变量
--dsw-alias-*,明暗主题自适应,data-ds-dark-theme属性变化时实时跟随切换 Monaco 主题。 - 编辑器加载:Monaco Editor 经 CDN 动态加载,React 组件从 loader 的 module table 获取,不引入任何额外 npm 依赖。

Small-tailqwq/dsh-deep-whale
d-dev0101/open-sea-skin
kingOfSoySauce/dsh-liang-skin
RevolutionLA/dsh-dream-skin
Fishquito7/dsh-skill-mcp-panel
01Virex/dsh-status-rotator
ymh0000123/dsh-theme-endfield
SLin-code/dsh-custom-skin