dsh-instruction-files: Manage DSH instructions and Agent configurations with workspace Markdown

Preface

When running agents in DeepSeek Harness (DSH), identity, tone, tool descriptions, and user preferences are often scattered across various locations. Modifying one requires a restart or manual synchronization. Furthermore, the host’s native Agent and permission systems cannot be arbitrarily replaced. If you wish to codify “how this workspace should behave” into version-controlled Markdown that takes effect automatically during the next model step, while also setting separate model and permission defaults for new sessions, you need opt-in instruction injection and Profile management at the plugin level. The following introduces the community plugin Instruction Files & Agent Profiles (repository Kerberos255/dsh-instruction-files, maintained by Kerberos255), which manages the above content by workspace without replacing the host’s native Agent, permissions, or session history.

What is this

This plugin is aimed at DSH desktop/Web client users: place optional Markdown section files in the workspace root directory and enable them section-by-section in the settings. You can also create custom Agent Profiles that apply default workspaces, models, and permissions only to new sessions. In the SkillHub directory classification, it falls under “Model Inference” capabilities. Currently, it has 0 stars on GitHub and is licensed under MIT (see the repository README).

Core Features

Workspace Markdown Sections (opt-in)

The plugin supports the following named files. Each section can be toggled individually in the settings; disabled sections revert to native DSH behavior:

  • IDENTITY.md: Identity; optionally replaces the host’s native identity section (the remaining named sections are plugin-defined, not native DSH section names).
  • SOUL.md: Behavioral and stylistic preferences.
  • AGENTS.md, TOOLS.md, USER.md: Agent, tool, and user-side instructions.
  • MEMORY.md: Memory-related content; marked as a sensitive section in the README. In private channels, owner verification and plugin memory boundaries must be passed. It collaborates with Dream & Memory and Channel Core to prevent untrusted private memories from being injected.

After modifying files, changes are reloaded and injected during the next model step to avoid duplicate injection; they will not retroactively rewrite the currently executing model request. The plugin does not automatically create the above files, nor does it evaluate template expressions.

Custom Agent Profiles

You can create custom Agent Profiles in Settings → Plugins → Instruction Files & Profiles to specify defaults such as workspace, model, and permissions for new sessions. Existing conversations are not affected by changes to default items.

Other Notes

  • Optionally reports privacy-restricted operation and failure metadata (event type, status, fixed error codes, duration; excluding conversation content and credentials) to dsh-plugin-diagnostics; the diagnostics plugin is an optional dependency.
  • Independent verification can be run via npm test within the repository (prompt / memory-filter); see config.example.json for configuration templates. The current version in package.json is 0.2.19; please confirm DSH host and peer dependency version compatibility before installing.

Installation and Activation

Installation requires using the command consistent with the README (replace desktop with the profile you actually use). DSH must be restarted after installation or code updates:

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

See the repository package.json for dependencies and runtime requirements.

Activation steps (from Quick start):

  1. Open Settings → Plugins → Instruction Files & Profiles.
  2. Select the workspace and turn on the master switch “workspace-prompt” (disabled by default).
  3. Only add the Markdown files you intend to use and enable the corresponding sections individually.
  4. Optional: Create a custom Agent Profile to configure defaults like model/permissions for new sessions.

Typical Usage

Place files in the workspace root directory as needed, for example:

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

IDENTITY.md manages identity, while SOUL.md manages tone and behavior; whether to enable MEMORY.md should be judged in conjunction with channel trust and the aforementioned memory plugin strategies. After modifying files, wait for the next model step to see the injection updates; do not expect currently ongoing requests to be rewritten immediately.

Use Cases and Cautions

Suitable for: Multi-workspace environments where instructions and Profiles need to be Git-manageable; needing to toggle prompt sections by file granularity; presetting models/permissions for new sessions without altering historical sessions.

Cautions:

  • The plugin runs under the current DSH process permissions. Before installation, you should read the source code and MIT license, and check SECURITY.md.
  • Disabling a section reverts to native DSH; default items only affect new sessions.
  • The SkillHub directory (https://www.skillhub.cn/plugins/Kerberos255/dsh-instruction-files) is a community index and has no official affiliation with DeepSeek / High-Flyer; DSH itself follows an “everything is a plugin” extension approach.

Links

  • Directory Page: https://www.skillhub.cn/plugins/Kerberos255/dsh-instruction-files
  • Source Code & README: https://github.com/Kerberos255/dsh-instruction-files
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye