@sidleo3/agent-instructions-plus
agent-instructions-plus: preset 选择性接管 AGENTS.md 注入,安装零改动,取消即恢复内置 agent-instructions。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sidleo/instruction-scan说明文档
阅读完整 README ↗使用:在 GUI 中按 preset 启用
- 打开 Settings → Plugins → AGENTS注入
- 在「生效的预设」列表里勾选要接管的 preset(多选,仅列出含
agent-instructions行的预设) - 勾选后立即生效:该 preset 被复制为
agent-instructions-plus-(位于~/.dsh/.agent-presets/),副本内agent-instructions行被禁用,注入管线接管 - 新会话选择该 preset 时,使用本插件的四层扫描注入 AGENTS.md
- 取消勾选 = 删除副本,恢复内置
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'
}