Agent preset for DeepSeek Harness: the standard tool stack plus four working rules written into the persona prompt — a project keeps at most four documents (intro, decisions, change log, current state and next steps), those documents describe only the current state with no AI edit history or superseded decisions, no git commit or push or pull request until the user explicitly asks, and a careful-coding workflow (restate the goal and done-criteria first, surgical diffs, evidence before claiming success) with plain-language reports.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-complex-project-preset
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:sueqet/dsh-complex-project-preset
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
An agent preset for DeepSeek Harness (DSH): the full standard tool stack, plus the discipline to think before it types.
中文版: README.zh.md
The whole preset lives in cordis.patch.yml: it inserts one @deepseek-ai/dsh-agent-preset row into the profile and registers a preset with the id complex-project. The package ships configuration only — no host code, no browser UI — so there is very little that an upgrade can break.
Why
The standard preset gets work done, but it will not hold a line on its own: diffs creep, project docs turn into changelogs, and code goes up before you said so.
This preset writes four rules into the persona prompt, so every session starts with them already in force:
| Rule | In one line |
|---|---|
| Four documents | A project keeps at most four docs: intro, decisions, change log, current state & next steps |
| Current state only | No AI edit history, no superseded decisions, no leftover "stage 1–5" wording |
| Commit/push red line | No git commit, git push, or PR until you explicitly say so |
| Careful coding + plain language | Restate the goal and the done-criteria first, make surgical diffs, lead reports with the conclusion |
What's inside
The tool stack matches the standard preset — bash/pwsh chosen per platform, file read/write and search, tasks and background jobs, skills, plan mode, compaction, subagents and workflows, web fetch, the TODO tool, present. What differs is the persona prompt and the documentation rules:
persona— the four-document policy, current-state-only docs, the commit/push red line, the careful-coding rules, and plain-language reporting;agent-instructions— still loads your globalAGENTS.md(64 KB cap);planning/compaction/delegation— same groups and isolation settings as standard;tool-plugin-manager— disabled, so the agent cannot rewrite its own plugin tree.
⚠️ The persona block deliberately sets no
suffix. DSH registers onlyproviderandmodelas prompt variables; any other{{name}}throws during prompt assembly and the whole turn fails before a single request is sent. The working directory is injected by the runtime context already, so declaring it here is redundant as well as fatal.
Install
# from npm (recommended — prebuilt install, no build approval)
dsh plugin --profile web add dsh-complex-project-preset
# or from the repository / a local directory
dsh plugin --profile web add https://github.com/sueqet/dsh-complex-project-preset
dsh plugin --profile web add link:<local-dir>
Restart the profile (run dsh web again, or restart the desktop app) — a preset is a row in the profile composition, not a runtime hot-load.
Uninstall: dsh plugin --profile web remove dsh-complex-project-preset
Conflicts with a hand-rolled copy
If your profile's cordis.patch.yml already declares - id: preset-complex-project by hand, installing this package registers the same preset twice and DSH reports Duplicate agent preset: complex-project. To switch over:
- delete that
- id: preset-complex-project ...block from yourcordis.patch.yml; dsh plugin --profile <name> add dsh-complex-project-preset;- restart the profile.
Only one package should provide complex-project at a time.
Version requirement
Requires DSH ≥ 0.1.7-rc.2 (the preset registry @deepseek-ai/dsh-agent-preset-registry joins the base composition there) and Node.js ≥ 22.19.0. Verified on DSH 0.1.7-rc.2 and on the desktop build 0.2.1-rc.2.
The Node floor is the harness's own rather than this package's: DSH compositions call process.getBuiltinModule, which Node ships from 22.3 onwards. This package is a manifest plus one YAML patch — no host code, no browser code, no install-time scripts — so it never loads JavaScript of its own, and the floor only mirrors where DSH can run at all.
Verify
After a restart, open the mode picker for a new session: 复杂项目模式 (order 2, right after the standard preset) should be listed. Start a session with it and ask about the project's current state — the answer should talk in terms of the four documents rather than freeform.
From the CLI you can also inspect the composed tree:
dsh --profile web --dump-config | grep -A3 preset-complex-project
Develop
npm test # checks manifest + cordis.patch.yml consistency, including !!js parsing
npm pack --dry-run
tools/smoke.mjs verifies that dsh.bundle.patch points at a file that exists, that repository points back at this repo, that every required preset field is present, that child row ids are unique, and that the persona prompt is neither truncated nor carrying a stray suffix. It parses the patch with the harness's own loadOverlayPatches when available, so !!js expressions behave exactly as they do at boot.
License
MIT © 2026 sueqet
Links
More in this category
loopx-project/loopx#dsh-loopx-plugin★ 6797
LoopX, a provider-neutral, local-first state kernel and control plane for long-horizon agents: keeps Goal, Todo, gate, evidence, quota, recovery, and handoff state above DeepSeek Harness, while the plugin bootstraps the CLI and skills, admits bounded same-session continuation, and adds a loopback GoalBar for the exact bound loop. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Q00/ouroboros#integrations/dsh-plugin★ 6408
Config-only bundle that mounts Ouroboros through the DSH MCP client, exposing 36 interview, Seed, execution, evaluation, and evolution workflow tools in DSH.
chuspeeism/dashi-taskboard#deepseek-harness★ 3576
Embeds the active installed Codex Taskboard runtime in the DeepSeek Harness sidebar, using its launcher runtime descriptor instead of a fixed port.
NanmiCoder/dsh-agent-teams★ 3196
AgentTeams multi-agent teams.
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 3052
Installs a dedicated AI novel-writing preset and workbench: revisioned local project assets, a compact side drawer, and native approval-gated single-file changes.
shanliuling/dsh-image-gen★ 1974
Native conversational image generation for DeepSeek Harness: ask the agent to create an image, and it handles generation and keeps the result directly in the conversation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.