sidleo/instruction-scan0

@sidleo3/agent-instructions-plus

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

AI 分析

核心用途是通过四层扫描注入 AGENTS.md 来接管预设的指令注入。适合需要自定义和精细控制 Agent 提示词注入流程的 DSH 用户。

パッケージ
@sidleo3/agent-instructions-plus
バージョン
0.2.2
最終更新
2026/08/22

インストール

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

ドキュメント

README 全文を読む ↗

使用:在 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'
}