DeepSeek Harness 插件

deepseek-harness

为 DeepSeek Harness 的 reasoning 与 answer 单元提供可搜索、可恢复的管理视图,支持类型筛选和批量操作,使用 sidecar 保存隐藏状态并保留原始 Session。

跳到安装方式

来源信息

GitHub 仓库
jermaine123123/agent-context-editor
最近更新
2026年8月19日
分类
界面增强
GitHub stars
1

安装

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

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

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/jermaine123123/agent-context-editor~23deepseek-harness
GitHub:https://github.com/jermaine123123/agent-context-editor/tree/main/adapters/deepseek-harness
插件名:agent-context-editor#deepseek-harness
作者:jermaine123123
安装命令:dsh plugin --profile web add "https://github.com/jermaine123123/agent-context-editor/releases/download/v0.1.0-alpha.1/context-editor-deepseek-harness-0.1.1.tgz"

确认前不要执行安装命令。

检查来源文件

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

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

Context Editor for DeepSeek Harness

Agent Context Editor adds a searchable, hideable, and reversible management view for long DeepSeek Harness conversations while preserving the original Session. Long-running Coding Agent sessions accumulate reasoning, older answers, and tool output; this adapter keeps those records available while providing search, type filters, batch selection, hide, restore, and undo in a separate view.

This adapter targets the official DeepSeek Harness Developer Preview commit 47f943859bef60e4160492346772ded9b24f765a0 and installs as one bundle. The package adds a Context Editor tab beside the normal Chat view for the same Session; it never creates a second conversation.

Version 0.1.1 supports independent reasoning and answer units: each can be searched, selected, hidden, restored and persisted separately. The original Harness Session log and model input are not rewritten. View state is kept in the context_editor storage-domain sidecar, and hiding currently does not reduce token usage.

The browser view resolves navigator.languages when it opens: zh-* locales use Chinese labels and all other locales use English. Only editor controls and status messages are translated; Session content remains unchanged.

Install the tarball

From this directory, create the package and install the resulting file into a Harness profile:

node ./scripts/build-core.mjs
node ./scripts/build-client.mjs
npm pack --ignore-scripts
dsh plugin --profile <profile> add ./context-editor-deepseek-harness-0.1.1.tgz

On Windows, dsh may not be on PATH even when Harness is installed. Use the profile's bundled launcher explicitly from PowerShell:

$env:DSH_HOME = '<harness-root>\.dsh'
& '<harness-root>\node_modules\.bin\dsh.cmd' plugin --profile web add '<package-path>\context-editor-deepseek-harness-0.1.1.tgz'

If the launcher reports that pnpm is missing, add the Harness-provided pnpm directory to PATH for that PowerShell process, or install pnpm before running the official dsh plugin command. For a same-version replacement, remove the existing package from the profile before adding the new tarball so pnpm does not retain an old hard-linked copy.

The supported acceptance command is the official dsh plugin --profile <profile> add <package> flow. During local iteration, a profile may instead use the package's cordis.patch.yml through the Harness --patch option.

Host boundary

The Host reads complete persisted Session history and projects:

  • user/messageuser;
  • reasoning and answer blocks from one turn → one ai record with separate

#reasoning and #answer editable units;

  • tool/call + tool/result by callId → one tool record.

Stream chunks, system/request headers, summaries and compaction events do not become editable records in this phase. Reasoning and answer units can be selected and hidden independently; old record-level view events remain compatible. Hide/restore/reset/undo events are stored in the context_editor storage-domain sidecar, fenced by Session createdAt/cwd. Session event logs and model input are never rewritten.

Current scope

Search, literal match counts, navigation, filters, placeholders, selection, Shift-selection, persistence and CAS/revision handling are included. While a Session is running the Host remains readable/searchable, while mutations are rejected until the settled log can be projected again. Context exclusion, Tool Output replacement, summaries, token budgets and request rewriting are deliberately deferred to the next phase.

The generated core-runtime.js is bundled from the canonical Core sources in packages/context-editor-core. Rebuild it after changing Core and run the root verification command before publishing.