better-er/dsh-classic-coding 预览 preview

better-er/dsh-classic-coding

Plugin插件 Native原生 ⭐ 6 MIT UI & Themes界面与主题

「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网页端即可自动启用,卸载执行对应命令后重启就能完全移除插件。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 依赖。

License

MIT

← 上一个 Prev telegram 下一个 Next dsh-plugin-market →