🧭 What DSH is 5:57
| Fact | Value (GitHub API, 8 Nov 2026) |
|---|---|
| Repository | deepseek-ai/deepseek-harness — "Everything is a Plugin" |
| Stars / forks | 277,264 ★ / 33,980 forks |
| Created | 13 August 2026 — under three months old |
| Licence / language | MIT, TypeScript |
| Run it | npx @deepseek-ai/dsh web → http://127.0.0.1:3080 |
| Latest release | dsh-v0.2.2-rc.1 (4 Nov 2026) — every published release is a prerelease |
| Status | Developer preview, with an explicit breaking-change warning |
Alejandro's framing is accurate: DSH is a general agent harness — loop, tools, system prompt, session log, UI — that happens to target coding first, and the interface you meet is a web app (or the Electron wrapper around it) rather than a terminal.
🖥 The app and the modes 1:01
| Mode | What it changes |
|---|---|
| Standard | The ordinary coding agent composition |
| PTC | Tools are called from inside a generated script, so several can run in one call — the model writes programmatic tool calls instead of one procedural call at a time |
| Minimal | As little context as possible |
| Creator | Adds skills and context about DSH's own plugin architecture, so the agent can extend itself |
The presets shipped in the repository confirm the mode list: standard, minimal, ptc, plus coding and reviewing.
He also shows model providers: add a third-party provider or a custom OpenAI-compatible base URL, and he runs the whole demo on GLM 5.3 Flash through Hugging Face rather than a DeepSeek model. That is itself an argument — the harness does not require the vendor's own model, because the model adapter is a plugin.
🪄 The self-modifying demo 3:26
In creator mode he asks the agent to write a plugin that registers a "greet" tool, then opens a fresh session and uses it. The agent produces a directory with a package.json and an index.js, registers the tool, and the tool is callable.
| What this demonstrates | Why it is unusual |
|---|---|
| An agent adding a capability to itself, at runtime | Not an extension API bolted on — the same plugin surface that everything else uses |
| Creator mode is just a preset with documentation attached | The "magic" is context: skills describing the plugin architecture and how to register things |
| Nothing requires a fork or a patch of the core | There is no privileged core to patch, which is the architectural claim being tested |
🧬 Cordis, and who owns it 8:22
He is careful here, and correctly so: Cordis is its own project, tightly linked to DeepSeek but not DeepSeek's.
| Claim | Check |
|---|---|
| Cordis is not DeepSeek's own project | Correct — it lives at cordiverse/cordis, MIT, 9,789 ★ |
| It links the DSH site as its project page | Correct — the repository's homepage is the DSH Cordis primer |
| Cordis's first commit predates DeepSeek as a company, by about a year | Correct — initial commit 17 May 2022; DeepSeek was founded in 2023 |
| The paper is published by DeepSeek | Half right — arXiv 2608.25512, "A Programming Paradigm for Spatiotemporal Composability", is co-authored by Yifan Shi (Peking University and DeepSeek-AI), Wei Zhang (PKU) and Tianyi Cui (DeepSeek-AI), submitted 26 August 2026. It is a paradigm paper that describes Cordis, not a Cordis manual |
🧱 Everything is a plugin 10:59
The architecture document is blunt about it: "Every part of the product is a plugin, including the model adapter, the tool registry, the session log, and the agent loop itself, so each is replaceable from configuration. There is no privileged core to patch."
| Subsystem | As a plugin, this means |
|---|---|
| Agent loop | You can replace the thinking entirely — his closing demo is a loop that never calls a model |
| Tool registry | A plugin, and each individual tool is another plugin |
| System prompt | A plugin, not a constant |
| Execution layer | Swap bash/PTY/file-system execution for a remote or sandboxed backend without forking anything |
| Model adapters | DeepSeek, and everyone else's, on equal footing |
| Session log and storage | Replaceable persistence backends |
| UI | A plugin too — there is a headless profile that renders nothing |
Profiles ship as templates: web, headless, sdk, sdk-minimal and acp. The SDK and ACP surfaces the video mentions are not separate products — they are the same core with a different application plugin mounted on top.
🔌 The context and dependency injection 15:04
Everything hangs off one shared context object. A plugin does three things: it claims a name, it declares the services it needs, and it registers into services or listens to events.
| Mechanism | What it buys |
|---|---|
name | Other plugins know where to find your services |
inject | Ordering guarantee: the dependency is mounted before you, so ctx.tools exists when your tool registers |
| Registration | Your contribution becomes a reversible effect, not a global mutation |
| Events | React to what other plugins do without importing them |
📡 Five ways to emit 20:02
The video says there are four dispatch modes. The Cordis primer lists five:
| Mode | Awaits listeners? | Listener behaviour | Can transform? |
|---|---|---|---|
emit | No | Observe in registration order | No |
waterfall | No | Around-middleware: each listener gets (...args, next) | Yes — return through next() or short-circuit by not calling it |
parallel | Yes | All listeners at once | No |
serial | Yes | In order, each awaited | Yes |
bail | No — stops early | Until one listener bails | Yes, terminal |
bail is the omission that matters, because it is the cheapest way to veto something. A waterfall listener has to thread a decision through next(); a bail listener stops the chain with a value. When you are writing an approval gate — the exact thing demonstrated later — the choice between these two decides how much wiring you need.
His point about scoping is correct and easy to miss: events belong to the context they are emitted into, and plugins nest, so a nested agent's events do not leak upward. The advice that follows is sound — do not nest everything, plug into the same context and resolve dependencies by injection.
🧩 Seams 12:30
The architecture document names the pattern that the video circles around: a seam is a swappable capability with three roles — a service definition declaring the interface, a provider implementing it, and a consumer using it.
| If you want to… | The documented seam |
|---|---|
| Add a model provider | Register its adapter on ctx.llm |
| Add a model-facing capability | Register on ctx.tools; its schema joins prompt assembly |
| Add shell execution | Register a ctx.shell backend |
| Confine spawned processes | A ctx.sandbox backend; consumers wrap argv before spawning |
| Add a human command (no model turn) | Register on ctx.commands |
| Intercept a request, tool or turn | Its agent/* or tools/* event |
| Add model-facing context | agent.inject(), landing in the next admitted request |
⌨️ Writing a plugin 24:01
Three examples, increasing in complexity — and the minimum is smaller than most people expect: a module exporting apply(ctx) and doing anything at all.
| Plugin | Shape |
|---|---|
| hello | An exported apply(ctx) that logs. No injection, no registration |
| greet tool | Declares name and inject: ['tools'], then registers a tool with defineTool on the tools service |
| bash guard | Same injection, but listens: logs tool/result, and intercepts tools/pre-execute as a waterfall |
The waterfall detail he flags is the one people get wrong: in a waterfall you must return next to continue the normal flow, and return a deny object to stop it.
🛑 The rm -rf guard 27:35
The demo he runs with his three plugins loaded — dsh web --patch ./cordis.patch.yml — asks the agent to greet Ada and then run a destructive shell command. The greet tool fires, and the guard blocks the deletion, telling the model to ask the user to run it themselves.
| What it shows | What it does not show |
|---|---|
| Policy can be added as a plugin, without touching the loop | A string match on a command is not a security boundary |
| A veto is expressible as an event listener | Obfuscated, quoted or scripted equivalents walk straight past a substring check |
| The refusal is explained back to the model, so it adapts | Nothing here is enforced against a plugin that simply does not use the bash tool |
📚 Layers and patches 28:54
This is the part I would keep from the video above all else: the running application is a plugin tree assembled at boot from ordered layers.
| Layer | Role |
|---|---|
| Profile's bundles | Base composition — model adapters, tools, persistence, sandbox policy, credentials |
Profile's cordis.patch.yml | Adds or replaces rows by id |
| Home patch | Your machine-wide additions |
--patch overlays | Last, highest precedence — the flag he demos |
A patch targets a row by id and replaces its whole config, or inserts new rows. Two commands make the tree legible without reading source: dsh --profile web --dump-config prints what your machine actually boots, and "any row it prints can be replaced by a patch of your own".
.dsh/profiles/<profile>/cordis.patch.yml — and that the desktop reserves its own desktop profile, is right.
🖥 The desktop carrier 32:32
The Electron app is newer than the web UI and is, as he says, a wrapper — but the precise shape is worth having, because it explains why the same plugins work in both places:
| Component | Responsibility |
|---|---|
| Electron shell | Starts a private Desktop Host in Electron's Node mode |
| Desktop Host | Invokes the shared CLI profile runner and the complete web application |
| Window | Loads the packaged web assets and waits for boot injections before activating client plugins in the same document |
| Transport | Web owns RPC and streams; Node IPC carries boot injections, readiness, fatal errors and shutdown |
$DSH_HOME/profiles/desktop) so that packages and lockfiles stay separate from your CLI install.
🚨 The chapter that is missing 25:40
A 35-minute tutorial that ends with "now you know what it is creating and how it is loading it" leaves out the three facts that should change how you deploy it.
| Fact | Source |
|---|---|
| It is experimental developer-preview software, has not undergone a security audit, and must not be treated as secure or production-ready | SAFETY.md |
| It executes model-generated code and commands, loads third-party plugins, and can reach network, processes, credentials and files | SAFETY.md |
| Plugin indexes are third-party content — DSH validates the file format but not the claims, icons, sources or authors | docs/user/guide/plugin-market.md |
| Compatibility-breaking changes are expected, including to the plugin surface | README.md |
http: index — including the install specs it lists. Use https, and only sources you trust.
✅ Claims checked
| Claim | Verdict | Evidence |
|---|---|---|
| DSH is an open-source agent harness by DeepSeek, built on "everything is a plugin" | Correct | Repository description and README; MIT, TypeScript, 277,264 ★ on 8 Nov 2026 |
| An Electron desktop app was released a few days before the video | Consistent | apps/desktop exists and is documented as an Electron carrier of the web app; repository created 13 Aug 2026, releases still prerelease |
| The desktop is a wrapper around the earlier web app | Correct in substance | Docs: the Host invokes the shared CLI profile runner and the complete web app |
| There are two Cordis applications, backend and frontend | Simplified | There are client plugins, but the desktop is a host plus the same web application in one document, not a second independent application |
| PTC mode runs tools inside a generated script | Correct | PTC = programmatic tool calls; renamed from Code Mode in August 2026 |
| Four ways to emit events | Five | emit, waterfall, parallel, serial and bail |
A waterfall listener must return next to continue | Correct | Cordis primer: listeners receive (...args, next); returning without calling it short-circuits |
| Cordis is not DeepSeek's project, and predates the company by about a year | Correct | cordiverse/cordis, MIT, initial commit 17 May 2022; DeepSeek founded 2023 |
| The Cordis paper was published by DeepSeek | Co-authored | arXiv 2608.25512, submitted 26 Aug 2026 — Yifan Shi (PKU + DeepSeek-AI), Wei Zhang (PKU), Tianyi Cui (DeepSeek-AI) |
| The agent loop, tool registry, system prompt and execution layer are all plugins | Correct | Architecture doc: "no privileged core to patch" |
| Cordis tracks registrations and cleans up a disabled plugin safely | Correct | Registrations are effects that unwind on unload, in order, so nothing is pulled out from under a dependent plugin |
| The harness ships as web, desktop, SDKs in TypeScript and Python, and ACP | Correct | Profiles web, headless, sdk, sdk-minimal, acp; Python SDK has its own guide |
| Plugins load as config rows with an id and a name, or a path | Correct | A patch targets a row by id and replaces its config, or inserts rows; --patch overlays are the last layer |
User configuration lives in .dsh/profiles/<profile>/cordis.patch.yml | Correct in shape | Docs call it the Harness home ($DSH_HOME); the desktop reserves a desktop profile |
| A guard plugin blocking a destructive command makes the setup safe | No | A substring match is a tripwire; SAFETY.md states sandboxing and approvals do not guarantee isolation |
| The project is ready to adopt | Not claimed by the project | Developer preview, no security audit, breaking changes expected, all releases prerelease |
Basis note. Built from the full 35:39 recording and checked against the repository's own documentation rather than the narration: README, SAFETY.md, docs/architecture.md, docs/cordis-primer.md, the plugin-index guide and the repository's implementation notes, plus the GitHub API and the arXiv record for the framework paper. Where the video simplifies, the correction is noted separately — the technical content itself is accurate.
🔑 Key takeaways
- "Everything is a plugin" is literal: the agent loop, tool registry, system prompt, execution layer, session log and UI are all replaceable from configuration.
- There is no privileged core to patch. You extend DSH by mounting a plugin beside the others — which is why an agent can extend itself.
- Cordis is older than DeepSeek. A 2022 composability framework whose author later joined the company now powers its harness.
- The axis is time and composition: profiles stack bundles, bundles patch rows, your patch wins,
--patchwins last. dsh --profile web --dump-configis the map. Every row it prints can be replaced.- A plugin is an
apply(ctx)and a name. Addinjectto guarantee ordering; registration becomes reversible automatically. - Registrations are effects that unwind — cleanup ordering is structural, not your bookkeeping.
- Five event modes, not four:
emit,waterfall,parallel,serial,bail.bailis the cheap veto. - Seams are the payoff: swap one execution provider and Bash, PTY and LSP move together.
- PTC means programmatic tool calls — several tools inside one generated script, formerly Code Mode.
- The desktop app is a host carrying the same web application, not a second product; it keeps its own profile and lockfiles.
- A guard plugin is a tripwire, not a jail. Substring checks on shell commands are not a security boundary.
- The project says it is not production-ready. No security audit, breaking changes expected, every release a prerelease.
- Plugin indexes are untrusted input with a friendly install button. Format validation is not vetting; use https and sources you trust.
- Read what the agent wrote before loading it. Creator mode makes authoring trivial, which makes review the actual skill.
🔗 Resources
- The video — Alejandro AO on the Hugging Face channel, 35:39
- deepseek-ai/deepseek-harness — README,
SAFETY.md,docs/architecture.md,docs/cordis-primer.md - cordiverse/cordis — the framework, MIT, independent of DeepSeek
- arXiv 2608.25512 — "A Programming Paradigm for Spatiotemporal Composability"
- DSH site · documentation
SAFETY.md states the ones the video omits. Where I disagreed with the video — the event count, "two Cordis applications", the guard's safety value — the repository text is quoted rather than paraphrased.
⏱ Timestamp index
next--patch