dshbase

插件目录 / Developer / agent-instructions-plus

agent-instructions-plus

未验证 sidleo

✓ 持续维护 基于 9 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

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

功能简介

Developer 类别的 DeepSeek Harness 插件。

我们的评价
未验证 — 尚未实测

Developer 类别的 DeepSeek Harness 插件。 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

@sidleo3/agent-instructions-plus

按 preset 选择性接管 DSH 的 AGENTS.md 指令注入。以可配置的四层扫描(cwd / 项目 / 上级遍历 / 全局)替代内置 dsh-agent-instructions 的固定发现逻辑 —— 但只在用户显式勾选的 preset 中生效

核心设计

  • 安装零改动:插件安装后不做任何事,不复制、不修改任何 preset,内置 agent-instructions 照常工作
  • 用户决定生效范围:在 Web GUI(Settings → Plugins → AGENTS注入)里勾选要接管的 preset(多选)
  • 完全替代:勾选某个 preset 后,该 preset 被复制为 agent-instructions-plus-<id>,副本中内置 agent-instructions 行被 disabled,由本插件的注入管线接管
  • 取消即恢复:取消勾选删除副本,内置预设原样不动,agent-instructions 恢复工作
  • 不生效的 preset 不受影响:未勾选的 preset 完全保持内置行为

Features

  • Four scanning layers: cwd (highest) → project/parents (mutually exclusive) → global (lowest)
  • scanParents mode: Walk every ancestor from cwd upward to filesystem root — no depth limit
  • Custom candidates: Add/remove base instruction file names and local overlay names
  • Custom project-root markers: Configure which files/dirs identify a project root
  • Web GUI card: Settings → Plugins → AGENTS注入 — preset 多选 + 四层扫描配置
  • Provider interface: Exposes the discovery provider on context for consumers

Installation

# From npm
dsh plugin --profile web add @sidleo3/agent-instructions-plus

# From local checkout
dsh plugin --profile web add link:/path/to/agent-instructions-plus

安装后重启 DSH。无需任何额外操作——插件不会改动任何 preset,内置 agent-instructions 继续工作。

使用:在 GUI 中按 preset 启用

  1. 打开 Settings → Plugins → AGENTS注入
  2. 在「生效的预设」列表里勾选要接管的 preset(多选,仅列出含 agent-instructions 行的预设)
  3. 勾选后立即生效:该 preset 被复制为 agent-instructions-plus-<id>(位于 ~/.dsh/.agent-presets/),副本内 agent-instructions 行被禁用,注入管线接管
  4. 新会话选择该 preset 时,使用本插件的四层扫描注入 AGENTS.md
  5. 取消勾选 = 删除副本,恢复内置 agent-instructions(新建会话生效)

已运行中的会话不受勾选/取消影响(preset 组合在会话创建时固定);改动对之后新建的会话生效。

Configuration

interface InstructionScanConfig {
  scanCwd: boolean          // default: true
  scanProject: boolean      // default: true (mutually exclusive with scanParents)
  scanParents: boolean      // default: false (mutually exclusive with scanProject)
  scanGlobal: boolean       // default: true
  instructionFileCandidates: string[]       // default: ['AGENTS.md', 'CLAUDE.md']
  localInstructionFileCandidates: string[]  // default: ['AGENTS.local.md', 'CLAUDE.local.md']
  projectRootMarkers: string[]              // default: ['.git']
  dshHome: string           // default: '~/.dsh'
}

How it works

  1. Install = no-op:host 入口只注册 provider 与 GUI RPC,不碰任何 preset
  2. User picks presets:GUI 调 /api/agent-instructions-plus/presets/apply,host 用 ctx.agentPresets.copy() 复制内置预设 → 副本禁用 agent-instructions 行 → 插入 /preset 注入管线行
  3. Injection:副本 preset 中 /preset 行的注入管线按四层扫描发现并注入 AGENTS.md,完全替代内置发现
  4. Removal:GUI 调 /api/agent-instructions-plus/presets/remove 删除副本目录,内置预设原样恢复

Development

pnpm build        # tsdown → lib/index.js + lib/preset.js + lib/client.js
pnpm typecheck    # tsc --noEmit

Notes

  • provider 字面值保持 instruction-scan,兼容旧 bundle 已持久化的消息;插件标识/路由/包名已全部改为 agent-instructions-plus
  • 升级 DSH 后,若内置 preset 被覆盖为原版,已生成的副本仍在但可能基于旧内容;在 GUI 里取消再勾选即可基于新版重建

安装

🧩 让 Agent 自动装(推荐)

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

dsh plugin add dshbase-catalog

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

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

Web profile:

dsh plugin --profile web add github:sidleo/agent-instructions-plus

Headless(CLI)profile:

dsh plugin --profile headless add github:sidleo/agent-instructions-plus

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: install-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →