sidleo/agent-instructions-plus ↗★ 0
@sidleo3/agent-instructions-plus
agent-instructions-plus:支持按预设(preset)选择性接管 AGENTS.md 注入的插件。
AI 分析
核心用途是提供更灵活的 Agent 指令注入机制。适合需要针对不同预设定制 AGENTS.md 扫描和注入规则的 DSH 高级用户。可在 GUI 设置中直接勾选启用。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sidleo/agent-instructions-plus说明文档
阅读完整 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'
}