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.
Install
dsh plugin --profile web add dsh-context-importsCopied 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
- Repo: ciskonc/dsh-context-imports
- Category: Agent Capabilities
- Stars: 6
- Version: GitHub repo ciskonc/dsh-context-imports (6★); npm package dsh-context-imports at 0.2.3 (registry check 2026-10-12; registry repository field resolves back to this repo).
Alternatives
030611/dsh-telemetry-redactor · 173787247/dsh-wsl-env · acnlabs/dsh-plugin-acn