dshbase

插件目录 / Developer / dsh-codex-select

dsh-codex-select

已验证 · 实测可装 light-only

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-codex-select

Awesome DSH Plugin

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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-codex-select」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:light-only/dsh-codex-select

Headless(CLI)profile:

dsh plugin --profile headless add github:light-only/dsh-codex-select

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →