DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-agents-inits

O

dsh-agents-inits

Manifest valid

Run the AGENTS.md authoring workflow inside a subagent, so no instruction body enters the main conversation.

hasBundlePatch

dsh-agents-init

把「写 AGENTS.md」这件事整个放进子代理里跑。主对话只发出命令、只收到结果,指令正文一次都不进入主窗口。

English | 中文

它是怎么做到零上下文的

通常的技能(skill)必须先加载进模型上下文,模型才能照着做——这本身就是开销。这个插件绕开了这一步:

用户输入 /agentinit
      ↓
命令处理器直接调用 ctx.subagents.startActivation()
      ↓
子代理在自己的上下文里读 references/methodology.md,干活
      ↓
子代理结束,报告作为 subagent-settled 通知回传并唤醒主代理

关键在于命令处理器是宿主代码,不是模型。它直接派生出一个子代理,方法文档由子代理自己读取。主窗口全程没有见过任何一条指令。

传统技能本插件
激活时进入主窗口全部指令(数千 tokens)0
方法文档的读者主模型子代理
主窗口最终付出指令 + 工具轨迹 + 报告命令回执 + 报告

这不是「把技能写短一点」,而是根本不让它进入上下文。

用法

/agentinit                          # 直接开始
/agentinit audit this repo          # 带上你的要求,原样转给子代理

命令会立即返回一行回执,例如:

Started an AGENTS.md subagent (child-0123456). Its report will arrive when it finishes; this conversation stays out of the work until then.

子代理完成后,报告自动回传。期间主对话可以继续做别的事——它没有被阻塞。

安装

plugin_manager  action=install_bundle  target=<本目录的绝对路径>

本组合包插入一行宿主条目(skill-agents-init)。index.js 只导入 Node 内置模块,因此能在任何 profile 中激活,不依赖对 @deepseek-ai/* 包的 peer 解析。

配置

全部可选。未知字段和类型错误会让激活直接失败,而不是静默忽略。

字段默认值含义
providerspawn子代理后端名。spawn 是 dsh-base 挂载的进程内实现。
agentPreset""给子代理指定一个 agent preset;留空则继承父级。
allowMethodEdittrue是否允许子代理修正方法文档(当某次运行证明某条规则是错的)。
activationNote""追加到每次运行的额外指引。
- id: skill-agents-init
  name: dsh-agents-init
  config:
    provider: spawn

如果配置了不存在的 provider,命令会立刻报错并列出当前可用的后端名,不会静默失败。

文件

文件作用
index.js宿主插件:/agentinit 命令 + 直接派生子代理。
references/methodology.md方法。只被子代理读取,从不进入主窗口。
cordis.patch.yml插入宿主条目的组合包补丁。
scripts/agents_md.py只读检查器,核验命令与路径(sections、check、stats)。
locale/en.json、locale/zh.json插件管理页的展示元数据。
test/smoke.mjs离线契约检查,使用假的 context。
test/runtime.mjs挂载到真实 Cordis 运行时,驱动真实的 commands 服务。

测试用纯 Node 运行,无任何依赖:

node test/smoke.mjs
node test/runtime.mjs

test/runtime.mjs 需要一份 DSH 安装。它会自动搜索常见位置,也接受 DSH_INSTALL_ROOT;找不到时打印 SKIPPED 并以 0 退出。

为什么没有 SKILL.md

早期版本把它做成了技能 + /agentinit 命令。技能路径的问题是:SKILL.md 必须注入主窗口才能生效,那 686 tokens 是每次运行都要付的。

现在插件不再注册技能提供方,SKILL.md 已删除。方法只有一个副本(references/methodology.md),且只有一个读者(子代理)。代价是:模型不能主动「发现」这个能力,只能由你输入 /agentinit 触发——这正是你要的取舍。

已知边界

隔离的是生产过程,不是产物。 AGENTS.md 一旦写入仓库,就会被 dsh-agent-instructions 自动注入——它把 AGENTS.md / CLAUDE.md 作为候选,从项目根到会话工作目录全链路加载。子代理能让你不为一整个仓库的阅读付上下文,但产出的那份文件本身仍要按设计进入每次请求。这正是 AGENTS.md 的取舍:一份小文件,换取每次请求的正确性。

修改本插件后需要重启宿主。 Node 的 ESM 没有模块缓存失效机制,插件重新启用时会复用进程内已加载的模块。改动 index.js 后请重启 DSH,而不是只切换插件的启用状态。references/methodology.md 不受影响——它每次运行都重新读取。

Comments

Loading…

Similar plugins

dsh-rich-context

by svgop

Agent instruction manager for DSH — edit and template the AGENTS.md files the harness actually reads (global + per-workspace)

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 5, 2026

dsh plugin --profile web add dsh-rich-context

by icrefin

Edit the AGENTS.md instruction files DeepSeek Harness actually loads - user-global and per-workspace - from a left-sidebar panel in the GUI.

Manifest valid

★ 0

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add dsh-agent-prompt

by Ytibu

在 DeepSeek Harness 设置面板里编辑与生成 AGENTS.md:改全局规则、改项目规则、按「合并全局规则」或「直接覆盖」生成项目级规则。仅适用于 DSH 0.2.0-rc.2。

Development & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add dsh-agents-md

by Bay-Zeddie

在 dsh Web 设置页里编辑原生 AGENTS.md 的面板:链上每层可点选编辑,三种生效范围,并可视化官方指令预算。

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 2

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add dsh-agent-instructions

by alpacachen

Runs one-time and RFC 5545 recurring Agent tasks in fresh DSH sessions, with visual schedule editing and session-linked history.

Workflow & AutomationDevelopment & InfrastructureManifest valid

★ 4

↓ 305/wk

MIT

TypeScript

Oct 8, 2026

dsh plugin --profile web add @alpacachen/dsh-automation

by fan56

dsh plugin: register ~/.dsh/agents/*.md as dsh-callable subagents

Workflow & AutomationTools & CapabilitiesManifest valid

★ 7

↓ 888/wk

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add @aiwayds/dsh-subagent-registry