dsh-project-agent-instructions
Agent 与会话 活跃维护

dsh-project-agent-instructions

ShihaoShenCreator/dsh-project-agent-instructions

自动读取 .dsh/AGENTS.md 及自定义路径,将项目级指令注入系统提示词,并提供独立设置页面,让加载内容和路径配置一目了然。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
1
Open Issues
JavaScript
主要语言
MIT
开源协议
9 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ShihaoShenCreator/dsh-project-agent-instructions
git clone https://github.com/ShihaoShenCreator/dsh-project-agent-instructions.git
git clone git@github.com:ShihaoShenCreator/dsh-project-agent-instructions.git
README.md main

@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

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