ciskonc/dsh-context-imports ↗★ 0

dsh-context-imports

Claude Code-style @path imports for DSH: expands @imports in AGENTS.md/CLAUDE.md and injects the referenced files into model context at session start 适合使用 Claude Code 风格,需在会话启动时自动注入上下文的用户。

Package
dsh-context-imports
Compatibility
Unverified
Harness peer range
>=0.1.5-rc.2 <2
Cordis peer range
^4.0.2
Version
0.1.0
License
MIT
Last updated
Sep 17, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

字段默认说明
files[]额外注入的文件(相对会话工作目录或绝对路径)
scanImportstrue扫描 AGENTS.md 等指令文件中的 @import 并递归展开
instructionFiles["AGENTS.md", "CLAUDE.md"]参与扫描的指令文件候选名(只扫描,不重注本体)
maxDepth3@import 递归深度上限
maxFileBytes65536单文件字节上限(超限截断)
maxTotalBytes131072总字节预算(超限省略)
injectOn全部四项触发注入的会话启动场景(startup / resume / clear / compact)
template""自定义包装模板,{{content}} 标记注入内容位置;留空用语言默认