sidleo/instruction-scan0

@sidleo3/agent-instructions-plus

agent-instructions-plus: preset 选择性接管 AGENTS.md 注入,安装零改动,取消即恢复内置 agent-instructions。

包名
@sidleo3/agent-instructions-plus
版本
0.2.2
最近更新
2026年8月22日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sidleo/instruction-scan

使用:在 GUI 中按 preset 启用

  1. 打开 Settings → Plugins → AGENTS注入
  2. 在「生效的预设」列表里勾选要接管的 preset(多选,仅列出含 agent-instructions 行的预设)
  3. 勾选后立即生效:该 preset 被复制为 agent-instructions-plus-(位于 ~/.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'
}