@shihaoshen/dsh-project-agent-instructions
A DeepSeek Harness (DSH) Cordis plugin that loads project-level agent instruction files and injects them into every agent's system prompt.
By default it reads .dsh/AGENTS.md from the session working directory, walking up through ancestor directories until a match is found. Additional relative paths can be configured on the plugin's settings page.
Features
- Injects the nearest
.dsh/AGENTS.md(project root and ancestors supported) into the system prompt as a dedicated section. - Custom additional read paths, relative to the project root.
.dsh/AGENTS.mdis always included and cannot be removed from the read list.- Configurable size limit with UTF-8-safe truncation (default 32768 bytes).
- File watching: edits to the instruction file are picked up automatically without restarting.
- Settings page in the DSH Web UI (Plugins → this plugin), changes apply live.
Install
In the DSH Web UI, open Plugins → Add plugin and install:
@shihaoshen/dsh-project-agent-instructions
Or with the CLI plugin manager against your profile.
Restart DSH after installation so the client module loads.
Usage
Create .dsh/AGENTS.md in your project root:
my-project/
└── .dsh/
└── AGENTS.md
Its content is automatically added to the system prompt of every agent started with that project as its working directory (or any subdirectory).
Settings
| Field | Description | Default |
|---|---|---|
| Additional read paths | Comma-separated paths relative to the project root; checked after .dsh/AGENTS.md |
— |
| Maximum bytes | Files longer than this are truncated when injected | 32768 |
License
MIT
No comments yet. Be the first to write one.