dsh-instruction-files
Agent 与会话 活跃维护

dsh-instruction-files

Kerberos255/dsh-instruction-files

用 Markdown 文件定义智能体身份与人格,支持热重载配置,新会话自动套用默认设定,工作区指令随改随生效。

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

Instruction Files & Agent Profiles for DeepSeek Harness

简体中文 · DeepSeek Harness · Security

Manage workspace instructions, agent identities, and per-profile defaults in DSH without replacing the host's native agent, permissions, or session history.

Features

  • Opt-in Markdown prompt sections: IDENTITY.md, SOUL.md, AGENTS.md, TOOLS.md, USER.md, and MEMORY.md.
  • Optional replacement of the native identity section with IDENTITY.md; other named prompt sections are plugin-defined, not native DSH section names.
  • Reloads changed workspace instructions on the next model step while avoiding duplicate injection.
  • Manages custom agent profiles with workspace, model and permission defaults for new sessions.
  • Cooperates with Dream & Memory and Channel Core to avoid untrusted private memory injection.

Install

Requires a compatible DSH host; check package.json for runtime and peer dependencies.

dsh plugin --profile desktop add github:Kerberos255/dsh-instruction-files

Replace the example profile with yours; restart after installation or code updates.

Quick start

  1. Open Settings → Plugins → Instruction Files & Profiles.
  2. Select the workspace and enable the master workspace-prompt option (off by default).
  3. Add only the Markdown files you intend to use, then enable each corresponding section.
  4. Optionally create a custom agent profile with its own new-session model/permission defaults.

Example workspace root:

workspace/
  IDENTITY.md
  SOUL.md
  AGENTS.md
  TOOLS.md
  USER.md
  MEMORY.md

IDENTITY.md controls identity; SOUL.md holds behavior/style preferences. MEMORY.md is sensitive: in private channels, access must pass owner verification and the plugin's memory boundary. Changing files does not retroactively rewrite a running model request.

Notes and tests

Changing a default affects new sessions, not existing conversations. Disabled sections fall back to native DSH behavior. The plugin does not create user instruction files or evaluate template expressions.

Run npm test for standalone prompt/memory-filter checks. Config template: config.example.json.

MIT licensed. See LICENSE.

Optional plugin diagnostics

The plugin optionally emits privacy-restricted operation and failure metadata to dsh-plugin-diagnostics. Diagnostics contain event type, status, fixed error code and elapsed time; conversation content and credentials are not logged. The diagnostics plugin is optional and does not change the host requirements.