/
Scheduling Determinism Token Economics and the Security Model of the MIT Licensed Prototype
DeepSeek Harness team open sourced dsh superagent v0.1.0 an MIT licensed Router Worker coding agent for GitHub. In synthetic tests p95 task completion dropped from 29.5 to 15.7 minutes 47 percent reduction by structurally forcing parallel dispatch instead of relying on model judgment. The cost 3.8x cache read tokens. Security model trusts the operators machine not the prompt.
DeepSeek Harness team published dsh superagent on October 31 2026 as an MIT licensed TypeScript bundle for DeepSeek Harness It is a research prototype not a product The README leads with this warning The design essay Exploring Super-agent Design Towards a More Autonomous Agent System is Chinese only the English summaries are AI generated
The architecture splits a coding agent into two layers a long running Router that handles all human interaction and dispatch and isolated Worker sessions that execute tasks in parallel Each Worker gets its own session directory and tool set The Router never executes work It cannot even run a shell command That structural constraint is the entire point
In DeepSeeks synthetic scheduling experiment the Super agent completed work requests at p95 15.7 minutes versus 29.5 minutes for a single session agent with a subagent tool The baseline never delegated once in five runs under a neutral prompt The speedup is not model capability it is architecture forcing parallel dispatch regardless of what any single model session decides to do
The bill for that determinism shows up in tokens Super agent reads 23.2 million cached tokens per run versus 6.1 million for the neutral single session baseline Nearly 4x the cache reads Removing the subscription pass through mechanism raises Router decisions 30 percent and cache reads 37 percent to 31.8 million without changing completion time
Source DeepSeek Harness team design essay section 7.1 Five runs per configuration Synthetic coding work simulated with a time consuming tool Measures scheduling and coordination not code quality
| Metric | Super agent | Super agent no pass through | Single session neutral | Single session delegate first |
|---|---|---|---|---|
| p50 completion | 12.4 min | 12.6 min | 20.4 min | 13.8 min |
| p95 completion | 15.7 min | 15.5 min | 29.5 min | 29.0 min |
| Cache read tokens | 23.2 M | 31.8 M | 6.1 M | 10.8 M |
| Router decisions | baseline | plus 30 percent | not applicable | not applicable |
| Subagent calls in 5 runs | not applicable | not applicable | 0 | 4 |
A TypeScript bundle v0.1.0 MIT license one commit on October 31 2026 Repository deepseek ai dsh superagent prototype Runs as a dedicated DeepSeek Harness profile called superagent Listens to GitHub notifications for one repository Optional Feishu or Lark bot for chat requests Returns results to the original conversation usually as a pull request Local web panel shows only items needing human attention
Not a standalone agent Not a model Not a cloud service Not production ready The deployment guide is explicit both presets run with danger full access as the operators OS user A worker can execute programs by absolute path and read the operators home directory The safety model is a dedicated Unix account not the prompt and not the shims
| Requirement | Version |
|---|---|
| Node.js | 22.19+ or 24+ |
| pnpm | latest |
| git | 2.32+ |
| Python | 3.8+ |
| tmux | any |
| GitHub CLI | 2.48+ |
| DeepSeek Harness | deepseek ai dsh at 0.2.1 rc.3 pinned |
| Repository | github.com only GitHub Enterprise Server unsupported |
| Model provider | configured in DeepSeek Harness |
The Router runs the dsh superagent router preset Deliberately small tool set No shell No job wait caps at a few seconds It polls GitHub evaluates new triggers answers follow ups while workers are busy
Workers run the dsh superagent worker preset Full tool set One session one directory per Ticket Foreground shell commands background after five seconds so a human can still interrupt State lives in a single SQLite database under a stateDir you choose An Outbox routes replies back through the original channel
Six steps all recorded in the store
A ticket is done when none of its pull requests remain open A pull request belongs to a ticket when the last path segment of its branch matches the tickets short name The recommended prepare command names branches agent DSH SUPERAGENT NAME
After a ticket starts later messages on the same thread are delivered directly to the subscribed worker The Router is not re reading every pull request comment Removing pass through changed completion time barely at all but cost roughly 30 percent more Router decisions and about 37 percent more cache read tokens 23.23 million to 31.77 million per experiment
This is the only mechanism in the prototype that reduces token cost The Router alone stress test found pushing trigger arrivals from about 1 per minute to 40 per minute only moved per request latency from 2.5 to 3.9 seconds because queued triggers batch into one call
Three accept modes per source per sender per message combination
Policy tables mark every combination as explicit inferred or ignore plus an accept mode Only allowed people can start work explicitly Everything else is at most a candidate By default candidates are only observed Work nobody asked for starts in observe mode that only records what the agent would have accepted
| Accept Mode | Inferred Candidates | Explicit Requests From Allowed People |
|---|---|---|
| off | Never become candidates | Accepted |
| observe default | Assessed positive result recorded as would accept and ignored | Accepted |
| auto | Positive assessment accepts work if at least one enabled rule matches | Accepted |
Synthetic stream of about 300 group chat and CI messages per run Roughly 20 real work requests Five runs per configuration Coding replaced by a tool that only consumes time Measures scheduling and coordination not code quality Message intervals and work durations scaled to one quarter Model call times not scaled Reported minutes should not be treated as production estimates
With a neutral prompt use a subagent for a piece of work when appropriate the model never delegated once in five runs It executed everything in the main session absorbed interruptions from new messages the whole time and posted that 29.5 minute p95
With a prompt rewritten to push delegation hard it delegated in four of five runs and got faster but judged the work too small to delegate in the fifth and produced the long tail 29.0 minute p95
Whether a multi agent setup works at all depended on prompt wording and in the moment model judgment The dual layer removes that coin flip structurally The Router does not execute Each Worker only sees the thread it subscribed to
Keeping many isolated sessions alive reads more cached context than one session The ablation row quantifies what the pass through mechanism buys Removing it changed completion time barely at all but cost roughly 30 percent more Router decisions and about 37 percent more cache read tokens
No independent reproduction of the experiment has been reported Three independent summaries offloop CellCog aibase report the same figures All vendor reported
Separate stress test of the Router alone trigger arrivals from about 1 per minute to 40 per minute Average batch size grew from 1.0 to 2.8 Amortised inference time per decision fell from 6.4 to 1.6 seconds Processing several events together made better use of model calls
dsh superagent runs on DeepSeek Harness which runs on Cordis Cordis is a plugin framework developed since 2022 as the kernel of Koishi a cross platform chatbot framework Its author Shigma Yifan Shi co wrote A Programming Paradigm for Spatiotemporal Composability with DeepSeek researchers posted to arXiv August 26 2026
Temporal composability revertible effects Everything a plugin does on load registers a command hooks an event opens a connection is an effect on the shared context Every effect carries its own inverse which the runtime tracks When the plugin unloads the system runs those inverses and reverts its effects No orphan listener no open connection no ghost command left behind
Spatial composability reactive coeffects A coeffect is what your plugin needs from the system a database a model a service In Cordis those needs are declared The runtime uses the declaration to manage lifecycle It does not activate the plugin until what was declared is served It reacts when dependencies change deactivating or reconfiguring the component when appropriate
In a traditional agent framework if an agent writes a new tool during a long running task it cannot mount that tool without restarting its process Restarting wipes ephemeral memory drops open network sessions resets execution state
Under Cordis the agent writes a new TypeScript tool plugin The harness loads the plugin into the live context at runtime Cordis checks the plugins coeffects mounts the tool and automatically updates the system prompt assembly for the next step If the tool fails or finishes its purpose the agent unloads the plugin Cordis unwinds the effect tree with zero leftover memory or socket leaks The agent modifies its own runtime in flight while preserving active session history
emit fire and forget waterfall short circuit on first truthy parallel all at once serial one after another bail short circuit on first non null Event names are registered through declaration merging This is how Router Worker communication works without tight coupling
Both presets run with danger full access as the operators OS user Commands run without approval The deployment guide says outright the wrappers establish defaults not a security boundary A worker can run a program by absolute path and read the operators home directory
Authenticates with a documented static header x orchestrator request 1 plus a localhost check Any local process that knows the header value gets panel permissions The essay concedes that if the cloud loop is compromised every machine connected to it is at risk
Dedicated Unix account containing only the agents credentials Separate machine or container Blocked commands configuration Pin the Harness version record the prototype commit test upgrades on a disposable environment keep a recovery path for unfinished Tickets A database migrated by a newer version cannot be opened by an older one Rollback requires the pre upgrade backup
Key technical specifications and benchmarks below.
| Limitation | Impact | Workaround |
|---|---|---|
| Research prototype only | Bugs inconsistent style not production ready | Use as design reference build your own on Cordis |
| Single repository scope | Cannot coordinate across repos | Run multiple super agent instances with shared state directory |
| GitHub.com only | GitHub Enterprise Server unsupported | Use local inbox source for on prem |
| Feishu only chat source | No Slack Discord Teams Matrix | Build custom Source plugin using cookbook |
| No built in sandbox | Workers run as operator OS user | Dedicated Unix account container gVisor firecracker |
| Static management API header | Any local process with header gets access | Network isolate the panel port SSH tunnel only |
| Chinese only design essay | English summaries AI generated | Read code and docs directly they are English |
| Synthetic benchmarks only | No real code quality data | Run your own evals on your repos before trusting |
| Observe mode default | Proactive work disabled by design | Write explicit rules for auto mode after observation period |
| Cache read token cost | 3.8x baseline for scheduling determinism | Router on light model Workers on strong model |
| No horizontal Router scaling | Single Router session bottleneck | Not implemented in prototype design essay discusses future work |
We engineer custom ai engineering and production AI architectures tailored to your existing tech stack.
No The README calls it a research prototype for reference only not an official DeepSeek product It may contain bugs engineering practices may be inconsistent Review and adapt before using in your own environment The security model alone requires a dedicated machine or container
DeepSeek Harness dsh is the open source agent runtime built on Cordis dsh superagent is a plugin bundle for one Harness profile that implements the Router Worker architecture Harness is the engine super agent is one vehicle built on it
The prototype is MIT licensed free to use DeepSeek Harness is also open source The cost comes from the model API you connect to The multi session architecture consumes more cache read tokens than a single session so budget accordingly
Yes DeepSeek Harness supports local model providers Configure the model in the Harness profile The prototype uses the profiles default model unless overridden in Eval or Execution settings The design essay suggests Router on a light model Workers on the strongest available model
Two stage filtering deterministic rules first then model judgement only for what survives Policy tables mark every sender message combination as explicit inferred or ignore plus an accept mode Only allowed people can start work explicitly Everything else is at most a candidate By default candidates are only observed
The Ticket remains in the store The Router can retry or a person can intervene The deployment guide documents troubleshooting for common failure modes Panel shows failed tickets The hourly health check runs in your normal Harness profile not in super agent It must keep running when the agent service is down
Yes the cookbook docs 008 cookbook md documents adding a Source A community extension dsh superagent inbox adds a local file inbox source so you can drive the agent without GitHub or Feishu The Source interface is pluggable
Claude Code and Codex CLI are single session interactive agents You the human coordinate multiple sessions by hand dsh superagent automates that coordination The Router is always on listens to GitHub and chat dispatches work to isolated Workers and speaks only when a person must act or can use a result The philosophy document says it acts only when asked or when a written rule allows it and speaks only when someone must act or can use a result Article prepared by Astra Principal AI Systems Engineer Slacode Engineering Journal Data sourced from DeepSeek Harness team design essay October 31 2026 dsh superagent prototype repository MIT license GitHub release and independent technical summaries by Helmcode Richland Technology CellCog AI Code With Kingy AI All figures vendor reported five runs per configuration synthetic workload not independently reproduced
Astra is a content writer at Slacode, creating clear, informative, and engaging content on technology, software development, digital solutions, and business growth. With a focus on accuracy, readability, and practical insights.