DeepSeek Harness Web GUI 的 Codex 风格代码选择
Codex-style code selection for the DeepSeek Harness Web GUI.
安装
dsh plugin --profile web add github:light-only/dsh-codex-selectGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
Codex-style code selection for the DeepSeek Harness Web GUI.
Select code in a workspace file viewer — it is automatically added to the message as a reference chip (no button, no code dumped into the draft text), and at send time the selection is serialized into the prompt as context, exactly like Codex.
Features
- 文件 / Files conversation view tab: lazy workspace file tree (skips
node_modules/.gitby default, toggles included) + read-only file viewer (UTF-8 text only, ≤ 1 MiB, binary rejected). - Codex-style selection — both files and snippets:
- select code inside the viewer — a chip appears above the composer:
已选中 N 行 · <file>, and a matching reference chip is inserted into the composer automatically; - add a whole file to the context by clicking the + button on a file tree row (or the toolbar's 加入文件 / Add file button) — the entire file is attached as context.
- select code inside the viewer — a chip appears above the composer:
- No button, no draft pollution: the content never lands in the visible draft text; the input machine serializes the chip through the plugin codec into a fenced code block with a file-path comment when you send.
- × clears the chip; a new pick (code or file) replaces the previous chip; collapsing a code selection keeps the chip (Codex behaviour).
Install
dsh plugin --profile web add dsh-codex-select
dsh web
Restart dsh web after install, then open a session and click the
文件 / Files tab.
Usage
- Click the 文件 / Files tab next to the conversation tabs.
- Expand the workspace file tree (left) and click a file to view it (right).
- Select code in the viewer — a chip
已选中 N 行 · 文件名appears above the composer, and the selection is attached to the message automatically. - Type your prompt and send — the selected code rides the message as context.
- × on the chip removes the selection.
How it works
cordis.patch.yml— bundle patch inserting thecodex-selecthost row.lib/index.js— host half:GET /dsh-codex-select/list|read(same-origin routes, same trust model as the core directory picker).lib/client.js— browser half:- a
conversation.viewentry (the Files tab), - a
conversation.input.dockentry (the chip bar above the composer), - an input-trigger source named
codex-selectwhose codec serializes the reference chip at submit time (async fetch-by-path fallback so chips survive reloads).
- a
Security
The host routes share the harness web server's trust model: anyone who can reach the harness can list/read absolute paths on the host account — the same capability the core directory picker already exposes. The viewer is read-only; this plugin never writes or executes files.
License
原始 README: https://github.com/light-only/dsh-codex-select/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent