ciskonc/dsh-context-imports

dsh-context-imports expands the @path references inside AGENTS.md the way Claude Code does: DeepSeek Harness injects AGENTS.md itself but leaves those references as plain text the model never sees, so this plugin reads each referenced file and adds its content to the session context - recursively for nested imports, skipping fenced code blocks, collapsing duplicates by resolved path, and re-injecting after compaction.

dsh-context-imports injects the files referenced from AGENTS.md into model context at session start. DeepSeek Harness injects AGENTS.md itself, but the @path references inside it stay as plain text the model never sees; this plugin expands them the way Claude Code does, reading each referenced file and adding its content to the session context. It expands nested imports recursively with a depth limit, skips fenced code blocks and requires a file extension, resolves relative paths against the importing file's directory, collapses duplicates by resolved path so import cycles are harmless, re-injects referenced files after compaction, and skips a second copy on resumed sessions when one is already present.

Agent Capabilities ★ 6
View on GitHub ↗

Install

dsh plugin --profile web add dsh-context-imports

Copied verbatim from the README's install block.

Compatibility

Expands @path imports in the instruction files (default AGENTS.md and CLAUDE.md), hooking agent/session-start and agent/pre-step. English README with a 中文 translation.

Details

Alternatives

030611/dsh-telemetry-redactor · 173787247/dsh-wsl-env · acnlabs/dsh-plugin-acn

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins