DeepSeek Super Agent on GitHub: dsh-superagent Install and Deploy
The dsh-superagent repository explained: what DeepSeek actually published, the pinned install commands, the GitHub account it needs, and the exit codes that tell you what broke.
The DeepSeek super agent on GitHub is deepseek-ai/dsh-superagent-prototype, an MIT-licensed research prototype published on 31 October 2026 — not an official DeepSeek product. It is a proactive coding agent for a single GitHub repository, packaged as a bundle for DeepSeek Harness (DSH): it watches for requests, turns allowed ones into work items, executes each in its own agent session and directory, and answers back in the original conversation, usually with a pull request.
What DeepSeek actually published
The repository description is "Towards a More Autonomous Agent System", matching an article of that name. The README is blunt about status: the code grew out of the team's day-to-day work, much of the engineering was done by coding agents, it "may still contain bugs", and it is research code rather than production software. It also states the published version is not identical to the internal one or to the implementation described in the article, and that some designs in the article are future directions that the prototype does not implement. (README)
The loop it implements is narrow on purpose:
- Sources. It listens to GitHub notifications, and optionally to Feishu chats through a bot.
- Policy. A list of accounts is allowed to ask it for work. Until that list has someone on it, no request can become a Ticket.
- Tickets. An allowed request opens a work item with its own agent session and its own working directory.
- Answering. The result goes back into the conversation it came from, typically as a pull request, and a local web panel shows what needs a human.
At the time of writing the repository had about 21,300 stars, 2,500 forks, no GitHub releases, and a package.json version of 0.1.0. No releases means you pin a commit, not a tag. (repository API, checked 9 November 2026)
Prerequisites before you clone anything
From the deployment guide, all of these are required, not optional:
- Node.js 22.19+ or 24+, pnpm, git 2.32+, Python 3.8+ and tmux
- GitHub CLI 2.48+ — the host depends on its subcommands and output formats
- A model provider configured in DSH — the agent uses the profile's default model unless a setting names another
- A repository on github.com; GitHub Enterprise Server is not supported
- A dedicated GitHub user account for the agent — a GitHub App cannot be the agent, because the application reads that account's notifications
Install: the pinned block
The deployment guide gives one install block, to be run once on a machine that has no superagent profile yet:
npm install -g @deepseek-ai/dsh@0.2.1-rc.3
git clone https://github.com/deepseek-ai/dsh-superagent-prototype dsh-superagent
cd dsh-superagent
pnpm install && pnpm build
dsh superagent --from-default-profile web --dump-config > /dev/null
dsh plugin --profile superagent add "link:$PWD"
The DSH version is pinned because other versions must satisfy the engines.dsh range in package.json. The fourth command creates ~/.dsh/profiles/superagent from the Web profile template; the fifth installs the bundle into it. Set DSH_HOME if ~/.dsh is not where you want it.
The one line you must not repeat: dsh superagent --from-default-profile ... replaces an existing profile and deletes its cordis.patch.yml, including machine configuration. For upgrades, edit that file instead. The guide says this twice, which is a fair signal that people have lost their settings to it.
The other documented path is to let an agent do the setup. The README's own instruction is to ask your coding agent:
Read SETUP.md in this repository and set up dsh-superagent with me.
SETUP.md is written for that: probe the machine once, ask one question per message (sources, repository, agent account, who may ask, checkout directory, commit identity, auto-merge), show one plan, then execute — and never ask for a secret in chat. (SETUP.md)
Machine configuration and the agent account
Configuration is a single YAML file: copy examples/profile.cordis.patch.yml to ~/.dsh/profiles/superagent/cordis.patch.yml and replace every placeholder. The keys that matter:
| Key | Required | What it does |
| ------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| stateDir | yes | Absolute path for the database, lock, worker command shims, the agent's git config and Ticket directories. Back it up before upgrades |
| webserver | no | Port for the local panel |
| promptMaxChars, admissionContextMaxPages, admissionContextTimeoutMs | no | Size limits for saved prompts and how much of a thread an assessment reads |
Invalid values or unknown keys stop startup, and the log names the key. After the first start, limits are editable in Settings → Deployment; stateDir is not.
The agent's identity is a GitHub CLI wrapper, not a token pasted into config:
mkdir -p ~/.local/bin
cat > ~/.local/bin/gh-agent <<'EOF'
#!/bin/sh
GH_CONFIG_DIR="$HOME/.config/gh-agent" exec gh "$@"
EOF
chmod +x ~/.local/bin/gh-agent
gh-agent auth login
gh-agent api user --jq .login
Sign in as the agent account; the last command prints the login the application reads. Keep your personal gh login out of that config directory, and list personal CLIs as blocked commands in the Execution settings.
Run it, then read the exit code
scripts/dsh-superagent start
scripts/dsh-superagent status
scripts/dsh-superagent stop
start runs dsh --profile superagent inside a tmux session named dsh-superagent and waits up to a minute for the runtime to become ready. stop and restart request a graceful shutdown and wait up to five minutes for executors; they do not force-kill. status prints process ids, health and setup problems, and its exit code is the useful part:
| Code | Meaning | What fixes it |
| ---- | -------------------------------------------------------------------------- | ---------------------------------------- |
| 0 | Running normally | — |
| 1 | Not running, running twice, not answering, or the runtime reports an error | A restart may fix it |
| 2 | Running, but a Source or Policy sync reports an error | A restart will not fix it; read errors |
| 3 | Running and waiting for setup | A restart will not fix it; read setup |
Because the panel is where Sources, Policy and Execution are configured, the realistic first-run sequence is: start, get exit 3, open the panel URL from the log, click Superagent in the sidebar, fix what setup names, then run status again.
Your first request
From an account on the allowed list, comment on an issue in the configured repository:
@<agent-login> summarise this issue and open a draft pull request
A Ticket should appear on the overview within about a minute. One trap is documented: adding a mention by editing an existing issue body does not trigger anything — post a new comment instead.
The defaults are deliberately quiet: accept mode observe, which records proactive work without doing it; branch prefix agent/; auto-merge off; the panel bound to 127.0.0.1. The guide also recommends an hourly status check from a different profile, so a dead service gets restarted without the agent's own profile being involved.
The security caveat you should read twice
The bundle's two presets, dsh-superagent-worker and dsh-superagent-router, run with danger-full-access as the operator's OS user. The deployment guide says plainly that a worker can execute programs by path and read the operator's home directory, and that account wrappers choose credentials but do not isolate the process. For real isolation it recommends a dedicated OS account holding only the agent's credentials.
That is not a footnote for a tool that comments on your repository and pushes branches. Treat the policy allow-list, the blocked-command list and a separate OS user as the boundary — not as hardening you will add later.
FAQ
Is dsh-superagent an official DeepSeek product? No. The README calls it a research prototype for reference only and says it may contain bugs; the published code is not identical to DeepSeek's internal version. (README)
Do I need a GitHub App for the agent? No — you need a GitHub user account with write access. The guide rules out a GitHub App because the application reads that account's notifications.
Can I install it from npm or a release tarball? Not as of 9 November 2026: the repository has no releases, so the documented path is cloning the repository, building with pnpm, and linking the bundle into a DSH profile. Pin a commit for reproducibility.
Which DSH version do I need? The guide pins @deepseek-ai/dsh@0.2.1-rc.3 and notes other versions must satisfy engines.dsh in package.json. Check dsh --version before reporting a startup failure.
What happens if a Ticket goes wrong? The panel exposes retry and stop per Ticket, and POST executor/pause pauses all processing. Delivery and execution health are reported per responsibility, so a stuck Source shows up as its own failing part rather than as a silent stall. (docs/006-deployment.md)
Sources and scope
- deepseek-ai/dsh-superagent-prototype — repository identity, MIT license, prototype disclaimer, the agent loop. Checked 9 November 2026.
- README.md — what the agent does, the agent-assisted setup instruction,
pnpm check. Checked 9 November 2026. - SETUP.md — probe, question flow, prerequisites, default profile and port. Checked 9 November 2026.
- docs/006-deployment.md — install block, pinned DSH version, machine configuration, agent account wrapper, start/stop/status exit codes, isolation warning. Checked 9 November 2026.
- package.json — package version 0.1.0 and the
dshbundle entry. Checked 9 November 2026.
This is a research prototype under active change: the repository had no releases and a last push on 3 November 2026 when we checked. Commands and file paths above come from the project's own documentation on that date. We have not run the agent against a repository, so we make no claim about its reliability or about the article's benchmark-free design claims. For the model side of self-hosting, see our Qwen 3.8 27B guide; for another coding-agent install walkthrough, this one on the Claude Code side, see the Taste Skill guide.