Introduction¶
In DeepSeek Harness (DSH), a common path for getting an agent to modify a particular feature is: grep the repository, open multiple files in sequence, then determine which fragments are relevant to the current issue. When documentation is scattered across READMEs, Wikis, or verbal conventions, the agent will often still treat “searching code” as the default entry point, resulting in heavy contextual noise and an easy tendency to overlook tests and edge cases.
dsh-feature-map turns “a one-page document organized by feature” into a fixed prerequisite step within the agent session: each feature corresponds to a page under docs/features/, clearly specifying the relevant files, types, tests, and pitfalls; the plugin writes the reading order into the prompt and provides tools to read the map at various granularities; when the project already has a map, it also refuses the first direct source-code query within the current session and provides the reason and remediation (read the map first). The following sections describe the plugin’s positioning, capabilities, and typical adoption steps.
What Is This¶
dsh-feature-map is a DSH plugin published by maintainer megablue, categorized as Memory on the Plugin Hub. The one-line positioning from the project introduction is: Docs before code: one page per feature so your agent stops grepping and starts knowing—using a “one page per feature” map to replace repeated greps, so the agent first knows which part to read, then opens the source code as needed.
The plugin is installed as a DSH bundle, with no npm runtime dependencies; it targets DSH 0.2.0-rc.2 and local workspaces, reading docs/features/ from the host filesystem, writing through the harness filesystem seam, and is subject to the sandbox policy of the current profile.
Core Features¶
Five Tools¶
| Tool | Purpose |
|---|---|
feature_map |
Reads the map: index, sections on a topic, structure of a single page, a specific section, a specific ###, or an entire page. |
feature_map_check |
Reports drift (pages not pointed to by index lines, lines with broken links, etc.), as well as oversized sections that should not be read all at once. |
feature_map_init |
Scaffolds a new project: AGENTS.md, HANDOFF.md, docs/SPEC.md, and the map index. |
feature_map_adopt |
Analyzes what an existing project lacks, only writes files that do not yet exist; default is read-only, requires apply: true to write to disk. |
feature_map_regen |
Rewrites existing maps: adds headings and Status: lines, splits oversized sections into ### subsections, and aligns the index. |
Prompt and Guardrails¶
In addition to tools, the plugin also injects a prompt section describing the reading order and uses a guardrail to enforce it once within the current session (see What you will notice in the README for details): in projects that already have a feature map, if the agent tries to perform a first source-code search without going through the map, the attempt will be refused with a prompt to read the map first.
Division of Labor Among Scaffold Files¶
The four documents involved in feature_map_init each have their own role:
| File | Purpose |
|---|---|
AGENTS.md |
Process and hard rules: commands, workflows, constraints applicable to every change. |
docs/features/README.md |
Map index and page template—the entry point the agent should read first. |
docs/SPEC.md |
User-visible behavior; understand the product without needing to read code. |
HANDOFF.md |
Volatile session state: ongoing matters and next steps. |
Installation and Activation¶
The installation command verified in the README, on the desktop profile, is:
dsh plugin --profile desktop add github:megablue/dsh-feature-map
It can also be activated as a bundle from source: in the app’s plugin settings, add this repository directory as a bundle; or in an agent session, use the plugin manager to point to the absolute path of that directory—it will link the package, add a feature-map line to the profile, and take effect immediately. Note: modifying the plugin’s own code requires restarting the app (the profile does not watch module files); only modifying project-internal documentation requires no restart.
Compatibility summary: targets DSH 0.2.0-rc.2; CI uses Node 22.x; package.json version is 0.2.0, license MIT; the plugin makes no network calls.
Typical Usage¶
New Project: Scaffold First, Then Fill in Content¶
-
Generate scaffold (without writing to disk)
Tell the agent “scaffold the documentation workflow here”, or callfeature_map_init. It will first return the rendered results of the four documents, without writing files. -
Write files
Usefeature_map_initwithwrite: true(written via the harness filesystem seam), or paste the returned content yourself. Existing files will not be overwritten; passforceif you truly need to overwrite. -
Fill in placeholders
Placeholders marked in the templates (such as layout, commands, and hard rules inAGENTS.md, as well as the first line of the index) need to be completed manually or by the team; an unfilled scaffold, if treated as authoritative documentation, will “look complete but contain empty information”—the placeholders are intentionally visible. -
Write the first feature page
Copy the page template fromdocs/features/README.md, clearly writing what the feature does, the names involved, how it works, configuration, tests, and associations. Then callfeature_map_adopt: index lines can be automatically generated from page titles andRead when:lines, no need to maintain the table manually. -
Self-check
feature_map_checkshould report that the map is internally consistent. Afterwards, follow the workflow in the documentation in a loop: update the corresponding feature page in the same commit that changes the code; in the session, read the map before reading the source code.
Existing Project: Adopt First, Then Apply as Needed¶
The default call to feature_map_adopt (no arguments) is a read-only report, containing sections such as Index, Pages, Sections, missing blocks in AGENTS.md, and Markdown files under docs/ outside the map, along with a plan tagged with deterministic / judgment. When apply: true is used, it only creates files that do not exist and never modifies the content of existing files.
If the map structure is already outdated, you can use feature_map_regen to organize sections and the index (the README has further explanations in the “Bringing an existing project” section; the truncated part still points to the same workflow).
Use Cases and Caveats¶
Who it’s for: teams that want DSH agents to stably “docs before code” in local repositories; repositories with clear feature boundaries that are willing to maintain a one-page-per-feature docs/features/; or projects that already have partial documentation and want to use feature_map_adopt to align the index and templates.
Ecosystem context: DSH adopts an “everything is a plugin” extension approach; community directories (such as the plugin pages on SkillHub) are independent sites, with no official affiliation to DeepSeek / High-Flyer; this article does not describe them as an official app store.
Security and permissions: the plugin runs with the current DSH process and profile sandbox, able to read docs/features/ in the project and write under the allowed policy. Before installing, it is recommended to review the source code and the MIT License on GitHub to confirm compliance with team requirements. The README does not provide fabricated cases or user data, and this article also does not supplement unverified data.
Conclusion¶
dsh-feature-map turns the “feature map” from optional documentation into part of the agent workflow: the tools handle reading the map, checking for drift, scaffolding, and regeneration; the guardrails and prompt replace the first source-code read with a map-first read. Maintainer: megablue; current GitHub star count: 0 (as shown on the directory page).
- Plugin directory page: https://www.skillhub.cn/plugins/megablue/dsh-feature-map
- Source code and full documentation: https://github.com/megablue/dsh-feature-map