Preface¶
When building agents or long-term projects in DeepSeek Harness (DSH), two common approaches exist: either extract facts from conversations into “memory” entries for resident injection, or write facts into documents and keep only indexes in the injection layer. The memory route alleviates “forgetting,” but entries only accumulate, consuming injection budget and easily causing dual-source drift with documents. The documentation route uses git as the governance layer, keeping the injection layer constant and small, at the cost of requiring the model to read files when needed.
The documentation route also suffers from silent failures: files pointed to by indexes are renamed or deleted, facts or decision histories are stuffed into the injection layer, or governance files are not committed to git—these errors don’t crash, they just slowly rot. The community plugin dsh-doc-kit (maintainer: rezon-aki, category: admin-security) targets “whether the documentation system has rotted”: it provides a read-only tool doc_lint for health checks and distributes the doc-governance skill, offering an executable set of rules for layered writing and check rhythms. The check provides facts; the skill provides rules.
What is this¶
dsh-doc-kit manages no data: no storage, no injection, no timers, no LLM calls. It does only two things—registers doc_lint to perform four read-only checks on the current workspace, and accompanies a documentation governance skill. The philosophy is: the single source of truth for facts lies in documents such as docs/, CONTEXT.md, and project handoffs; global or workspace AGENTS.md should only contain “what is where and when to read it,” not the facts themselves.
| Comparison Item | Memory Plugin Route | Documentation Route + dsh-doc-kit |
|---|---|---|
| Fact Storage | Resident injection entries | Documents themselves, read/grep on demand |
| Resident Cost | Grows with memory accumulation | Index only, stable size |
| Source of Truth | Documents and entries drift easily | Singular (Documents) |
| Versioning & Audit | Often requires self-built backups & logs | Native to git |
| Tool Form | Storage, injection, loops, UI, etc. | Read-only, zero-dependency, no UI |
The current plugin version is 0.1.0 (MIT), requiring Node.js >=20 and DSH >=0.1.5-rc.1. Community directory page: skillhub.cn/plugins/rezon-aki/dsh-doc-kit; Source code: github.com/rezon-aki/dsh-doc-kit. The DSH ecosystem is “everything is a plugin”; SkillHub is an independent community site with no official affiliation with DeepSeek / High-Flyer.
Core Functionality: doc_lint Four Checks¶
Call doc_lint once to turn common drifts in the documentation system into a readable report (fully read-only, modifying no files):
- quota (FAIL): L0 / L1 injection layer exceeds self-imposed quota (default 2 KB / 4 KB)—indicating someone has written facts into the injection layer.
- banned (FAIL): Phrases like “formerly used / deprecated / overturned / do not try again” appear in the injection layer—process credentials mixing into resident context.
- index (WARN): Document paths named in the index do not exist—the index has drifted.
- git (WARN): Governance-related files are untracked—without history, drift is hard to detect.
Rule implementations are in the repository’s lib/lint.js, and tool parameters in lib/index.js; the README focuses on design motivation, while details are governed by the code and the doc-governance skill.
The bundled doc-governance skill explains: which layer to write into, what to check before writing, how often to run health checks, and what to review before external release. Uninstalling the plugin does not automatically delete the doc-governance files from the skill library; they must be managed manually.
Installation and Activation¶
Choose one:
- DSH sidebar Plugins → Add plugin, fill in
github:rezon-aki/dsh-doc-kit. - Command line (consistent with README):
dsh plugin --profile web add github:rezon-aki/dsh-doc-kit
Restart dsh web after installation to take effect.
Uninstall:
dsh plugin --profile web remove dsh-doc-kit
Typical Usage¶
Once installed, instruct the model to execute the tool name (when no parameters are provided, it defaults to checking the current session workspace):
doc_lint
When passing local tests, the output format resembles:
doc_lint: Passed
[PASS] quota: L0 599 B / quota 2048; L1 652 B / quota 4096
[PASS] banned: No decision history phrasing
[PASS] index: All 6 paths exist
[PASS] git: Tracked (3)
To perform a health check in another directory, pass the parameter workspaceRoot pointing to the target root path.
Use Cases and Boundaries¶
Who is it for: Teams that have adopted or plan to adopt “documents as the source of truth, injection layer for index only”; DSH users who want to periodically verify quotas, phrasing, indexes, and git tracking without maintaining another set of memory libraries and approval UIs.
What the plugin explicitly does not do (README original text):
- Does not inject any prompts (
AGENTS.mdlayering / priority / budget are handled by native platform mechanisms). - Does not automatically rewrite files; adding content to the injection layer still requires your confirmation.
- Does not make business judgments for you: WARN items only prompt; whether to address them is decided by you.
Security and Permissions: The plugin runs with the permissions of the current dsh process and reads injection layers and document paths within the workspace. Before installation, please review the GitHub repository source code and MIT license yourself to ensure it meets your security policy. The community directory classifies it as admin-security, reflecting governance and injection layer hygiene, rather than replacing platform-level security products.
Conclusion¶
dsh-doc-kit turns the failure modes of the documentation route from “invisible” into a single doc_lint report, then uses doc-governance to constrain daily writing practices—lightweight, read-only, avoiding growing into a data system that requires maintenance. To learn more, open the SkillHub Directory Page and the GitHub README.