Skip to main content
S

dsh-project-agent-instructions

shihaoshencreator/dsh-project-agent-instructions

Project-level AGENTS.md loader for DeepSeek Harness: injects .dsh/AGENTS.md (and custom paths) into the agent system prompt, with a settings page.

Install

dsh plugin --profile web add github:shihaoshencreator/dsh-project-agent-instructions

README

@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.md is 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

FieldDescriptionDefault
Additional read pathsComma-separated paths relative to the project root; checked after .dsh/AGENTS.md—
Maximum bytesFiles longer than this are truncated when injected32768

License

MIT

Related plugins