dsh-ace: Evolvable Markdown Manual for Task Memory in DSH Agents

Introduction

When running agents in DSH, a common problem is: when doing the same type of task a second time, the model may still fall into the same traps; when a session ends, the practices discovered in the previous round are not automatically carried over to the next round. Some people work around this by writing rules into the system prompt, others rely on external notes or vector databases, but these approaches are either hard to maintain or disconnected from the current workspace and task trajectory.

The following introduces the community plugin dsh-ace (maintainer: ADkun, categorized as “Memory”). It brings ACE (Agentic Context Engineering, arXiv 2510.04618) into DSH as a native capability: without training the model or modifying weights, it relies solely on prompts and a Markdown playbook, allowing the agent to consult it before tasks, review after tasks, and write incremental experience back into the playbook. The playbook is stored at .ace/playbook.md in the workspace by default and can be opened and edited directly by humans.

What Is This

dsh-ace is a plugin for DeepSeek Harness, with the current package version 0.3.0 (MIT license). Once installed, it registers three tools and guides the agent in the system prompt to use the playbook in a “Read → Reflect → Merge” cycle:

  1. Read: Before starting a task, use ace_playbook to check whether the playbook contains relevant experience;
  2. Reflect: After completing a task with substantial work, use ace_reflect to review the trajectory and produce structured candidate experiences (conditions / practices / evidence);
  3. Merge: Use ace_curate to merge candidate experiences incrementally into the playbook—supporting addition, modification, and deletion of individual entries, with LLM-based deduplication, avoiding a full rewrite so that details of old experience are not smoothed away.

Core Features

Three Tools

Tool Purpose Modifies Playbook?
ace_playbook Read the playbook (entire / by entry id / filtered by 1–3 short keywords; hits sorted by BM25 relevance; falls back to full read when matched=0) No
ace_reflect Review task trajectory, produce candidate experiences No (only produces candidates)
ace_curate Incrementally merge candidate experiences (add/update/remove + deduplication + capacity guardrails) Yes (incremental only)

Playbook Format

The playbook is pure Markdown. Example entry (human-editable, consistent with the machine serialization format):

### [ace-001] 编辑前先读目标文件
- 条件:要对既有文件做任何修改之前
- 做法:先用 read 完整读一遍,确认结构后再动手
- 依据:盲改导致过两次返工
- 元数据:created=2026-02-07 updated=2026-02-07 helpful=0 harmful=0

The default path is .ace/playbook.md under the workspace; no configuration is needed for first use—the file is automatically created on the first relevant call.

Configuration and Settings Page

All configuration items have default values and can be used with zero configuration. To change the playbook path, toggle automatic reflect reminders, or specify the LLM for reflection, you can:

  1. DSH Web UI: Settings → navigate to “ACE Playbook” (changes are saved immediately and take effect on session restart); reflectProvider / reflectModel are searchable dropdowns—both must be non-empty simultaneously to override the session model, and either can be cleared independently to follow the session model;
  2. Patch layer: Override the dsh-ace config in the profile’s cordis.patch.yml.
Field Type / Default Description
playbookPath string / .ace/playbook.md Playbook path; relative paths are resolved relative to the session working directory
autoReflect boolean / true Whether to remind in the system prompt to review after task completion
reflectProvider string / empty Provider for the reflection and curation LLM; leave empty to follow the session
reflectModel string / empty Model for the reflection and curation LLM; must be non-empty alongside reflectProvider to take effect
maxEntries number / 60 Maximum number of entries; when exceeded, ace_curate rejects the entire batch and prompts to merge first

Values written through the settings page are stored in dsh-ace.json under the current profile directory (one copy per profile). Runtime requirements: Node >=22, DSH >=0.2.1-rc.2 <0.3.0 (see the engines field in the plugin’s package.json).

Installation and Activation

Official instructions: install with a single command—no Python, no build, no third-party npm dependencies. Run in a terminal where DSH is available:

dsh plugin add github:ADkun/dsh-ace

You can also use the full URL:

dsh plugin add https://github.com/ADkun/dsh-ace.git

Restart the session after installation to activate. To uninstall:

dsh plugin remove dsh-ace

Typical Usage

After completing the installation steps above, you can use it as follows.

  1. Normally assign tasks to the agent; after completing a decent task, when autoReflect is true, the agent will be prompted to call ace_reflect, then use ace_curate to write valuable candidates into the playbook.
  2. To manually accumulate experience: directly tell the agent “add this experience to the playbook,” or edit .ace/playbook.md.
  3. For similar tasks in the future: the agent should consult relevant entries via ace_playbook before starting.

Community catalog page and source code:

For more detailed architecture and conventions, see DESIGN.md, TESTING.md, and AGENTS.md in the repository.

Use Cases and Notes

Who it’s for: DSH users who want the agent to gradually form reusable operational habits within the same workspace without maintaining a separate memory service; the playbook is plain-text Markdown, suitable for teams that need to review and correct experience manually.

Permissions and security: The plugin runs with the current DSH process permissions and will read/write the workspace (and dsh-ace.json under the profile). Before installing, review the source code and MIT license on GitHub to confirm compliance with your requirements.

Capacity: maxEntries defaults to 60; when the playbook becomes too large, curation will be rejected—you need to merge or trim old entries before writing new ones.

Ecosystem notes: DSH follows the principle of “everything is a plugin”; community catalogs such as SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-ace fixes the “consult the playbook before tasks, review after tasks, persist experience incrementally” workflow into three tools and one Markdown file, making agent context engineering cumulative and editable without changing the model. If you are maintaining the same repository or the same type of tasks in DSH long-term, you can try it as an evolvable operations manual within your workspace.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye