DeepSeek Harness 插件

dsh-codex-select

Codex-style code selection for DeepSeek Harness Web: workspace file tree + file viewer; select code and a chip above the composer shows 'N lines selected', sending the selection as message context(英文原文)

跳到安装方式

来源信息

GitHub 仓库
light-only/dsh-codex-select
最近更新
2026年8月17日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/light-only/dsh-codex-select
插件名:dsh-codex-select
作者:light-only

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-codex-select

![Awesome DSH Plugin](https://awesome-dsh-plugin.com)

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 / .git by 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.

  • 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

1. Click the 文件 / Files tab next to the conversation tabs. 2. Expand the workspace file tree (left) and click a file to view it (right). 3. Select code in the viewer — a chip 已选中 N 行 · 文件名 appears above the composer, and the selection is attached to the message automatically. 4. Type your prompt and send — the selected code rides the message as context. 5. × on the chip removes the selection.

How it works

  • cordis.patch.yml — bundle patch inserting the codex-select host 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.view entry (the Files tab), - a conversation.input.dock entry (the chip bar above the composer), - an input-trigger source named codex-select whose codec serializes the reference chip at submit time (async fetch-by-path fallback so chips survive reloads).

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

[MIT](LICENSE)