Introduction¶
When using agents to maintain a code repository over the long term in DeepSeek Harness (DSH), common issues include: agents forgetting conventions after context compaction, documentation falling out of sync with repository state, parallel sessions writing to the same file, and credentials being accidentally committed to Git. Community plugins extend DSH behavior based on the “everything is a plugin” philosophy. The directory site skillhub.cn is an independent ecosystem entry point and has no official affiliation with DeepSeek or Heyke.
The following is an introduction to Project Forge—a workflow preset released by maintainer sopreigj. It constrains the Agent to act as the project’s “steward,” enforcing local Git, four contract documents, layout and naming discipline, post-compaction recovery, and five types of write guards.
What is this¶
dsh-project-forge is a DSH agent preset (bundle plugin). In one sentence: under the constraints of local-only Git, four state contracts + append-only records, layout and naming discipline, compaction recovery, and write guards, it ensures the project is recoverable, trackable, and can continue even after context loss.
Repository: https://github.com/sopreigj/dsh-project-forge
Directory Page: https://www.skillhub.cn/plugins/sopreigj/dsh-project-forge
Current bundle version (package.json): 3.7.0, License MIT. GitHub stars: 0 (based on the directory/repo page).
The plugin includes two presets:
| Preset ID | Purpose |
|---|---|
project-forge |
Full steward: protocols, real-time doc digest, compaction recovery, write guards |
project-forge-review (located in review/) |
Read-biased review: code review, simple tasks, clean review sub-agent |
Core Features¶
The following capabilities are derived from the official README and repository documentation.
State Boundary and Three State Types¶
Project self-information is concentrated in private/ by default (boundaries can be changed via config, or revert to the root layout if boundaries haven’t appeared yet). Outside the boundary is the public surface: written as if the “project is open source”—portable, no private facts written outside the boundary (except config file examples), no references to paths inside the boundary; upon release, the boundary can be mechanically removed, the tree copied, and git init run.
State inside the boundary is divided into three types:
-
Contracts — Fully inlined into the prompt every turn, with a soft budget (exceeding the budget triggers a warning but does not truncate):
private/steward.md: Repository’s own rulesplan.md: Strategydone.md: Current statustodo.md: Queue
If documents are still in the project root, the plugin reads them according to the old layout (rules in.agents/steward.md) to avoid failing to take over historical projects.
-
Records — Append-only JSONL, not fully inlined; digests and recovery messages only carry “one index per line” and the last few entries of the journal:
private/journal.jsonl: Work logprivate/tortuous.jsonl: Negative knowledge (failure paths and recorded deviations)
-
On-demand Materials —
private/rationale/.
Local Git and Checkpoint Protocol¶
- Local-only git: Do not push, add remotes, or rewrite history before explicit user request.
- Checkpoint protocol: Finish a logical unit → run checks → update docs → one commit; “one commit per command” is prohibited.
- No secrets in git: Refuse to commit credentials files outside the boundary (storing credentials in a local-only repo inside the boundary is covered by mode rules).
Layout, Naming, and Parallel Sessions¶
- Layout & naming: Directories/files/identifiers follow “one word, one meaning”; verified at every checkpoint; layout guard rejects unacknowledged mixed-artifact roots.
- Parallel sessions: Single document owner; claims declared per file under
private/.forge-claims/, released at commit; expire after 10 minutes of inactivity.
Compaction and Write Guards¶
- Compaction recovery: Real
compaction/endevents fold a recovery message (protocol restatement + fresh digest) into the next step. - The mode emphasizes five write guards (write guards should remain effective even if the model is uncooperative); specific slice implementations are in the
plugin/guard modules. Full configuration is indocs/configuration.md(33 fields, all enabled by default;release/check-consistency.mjsensures docs match the schema).
Bundled Skills¶
The repository contains the skills/project-forge-grilling/ discussion skill; the review bundle contains a copy of the skill within review/.
Installation and Activation¶
Requires DeepSeek Harness >= 0.2.1-rc. Digests preserve {{...}} as-is and leave interpolation to systemPrompt.context with interpolate: false; older hosts may error on documents with quoted braces during prompt assembly (README points to CHANGELOG 3.4.0 and V11 in negative knowledge records).
After installing the bundle, you must restart dsh web, then select Project Forge or Project Forge · Clean Review in the mode selector.
Official installation commands:
# Local dev checkout
dsh plugin --profile web add link:/path/to/dsh-project-forge
dsh plugin --profile web add link:/path/to/dsh-project-forge/review
# Or install directly from git
dsh plugin --profile web add github:sopreigj/dsh-project-forge#main
Typical Usage and Documentation Entry Points¶
Repository documentation is organized by Diátaxis; read based on reader intent:
- docs/getting-started.md: Tutorial—Installation, confirming active copy, first project takeover.
- docs/init-a-project.md: How to bring an existing project into this mode.
- docs/how-to-change-the-mode.md: Modifying protocol text, guards, or config fields.
- docs/configuration.md: Reference for 33 configuration items.
- docs/state-boundary.md: Boundary design, export process, guard coverage.
Examples of the two most frequently changed config items (from README):
- id: project-forge
name: 'dsh-project-forge'
config:
sizeLimitMode: ratchet # Reject commit if an already-over-limit doc grows further
stateDir: '.' # Fallback to root directory document layout from before boundaries appeared
For version changes and upgrade notes, see CHANGELOG.md in the repository root (reverse chronological order; package.json versions must have a corresponding entry).
Self-test examples for the development repository:
node test/run.mjs plugin/index.js # Config, digest, guards, patch↔schema drift
node release/check-consistency.mjs
The plugin depends only on built-in Node modules; profile-installed bundles do not resolve third-party npm packages.
Use Cases and Notes¶
Who it’s for: Teams or individuals who need an Agent to long-term steward a single repository, emphasize recoverable Git history, align strategy and status via the four contracts (plan/done/todo/steward), and want automatic “protocol pull-back” after context compaction. The review sub-bundle is suitable for read-heavy review tasks with minimal state document modification.
Important Notes:
- The plugin runs with the current DSH process permissions; please review the GitHub source code and the MIT license yourself before installing. Do not trust remote bundles without inspection.
- The mode defaults to no push; if you rely on remote collaboration, you must change the Git remote strategy after explicit user request.
- Bound to host version: versions lower than 0.2.1-rc may not safely assemble document digests containing
{{variable}}.
Conclusion¶
dsh-project-forge packages “Local Git + Four Contracts + Append-only Records + Checkpoint Commits + Compaction Recovery + Write Guards” into a DSH workflow preset, suitable for transforming an Agent from a single-conversation tool into a resumable project steward. To learn more, visit the directory page skillhub.cn/plugins/sopreigj/dsh-project-forge and the repository github.com/sopreigj/dsh-project-forge.