Skip to content
dsh.fish
Bundle

@shihaoshen/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.

Source
ShihaoShenCreator
License
MIT
Updated
Updated 7 days ago

Readme

# @shihaoshen/dsh-project-agent-instructions

A [DeepSeek Harness (DSH)](https://www.npmjs.com/package/@deepseek-ai/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

| 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

Install

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

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source