跪拜 Guibai
← All articles
Artificial Intelligence · Open Source · News

DeepSeek's dsh-superagent: A Research Prototype That Turns 'Take Less Attention' Into Executable Rules

By 冬奇Lab ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

This prototype provides a working reference for how to constrain proactive AI agents in shared team repos, not just another coding agent with extra permissions. For engineers who have seen agents spam PRs and comments, the document set shows a concrete alternative: admit by whitelist, keep current work interruptible by humans, and let rules in prompts gate every proactive action.

Summary

dsh-superagent is a research prototype from DeepSeek's GitHub org, packaged as a plugin bundle for DeepSeek Harness (DSH). The agent watches a single GitHub repository and optionally Feishu, opens a Ticket when a permitted person @mentions it, works in an isolated Executor Session and directory, and replies in the original conversation, typically with a Pull Request. The code is immature, with a single commit and a README warning of bugs, but the value sits in nine numbered design documents that specify how a proactive agent should be restrained.

The core philosophy is "take as little human attention as possible, and give as much value as possible." It drives concrete mechanisms: a whitelist plus an admission table enforced by the host, an immutable Mandate per Ticket, observation-only proactive work by default, structured questions instead of free-text reports, a web panel that lists only items needing a human, and a stop based on impact rather than effort. External messages, comments, and documents are treated as data that never changes rules or authorization, which is also the defense against prompt injection.

The domain model runs Trigger to Eval to Ticket with explicit concepts for ownership of follow-up messages, hand-back, subscriptions, and context-only reads. Execution details cover concurrency with a reserved slot for human messages, background task limits, persistence-before-action for failure recovery, and merge decisions left to prompts rather than host logic. Auto-merge is off by default; teams must write delivery requirements before the agent merges anything.

Takeaways
— dsh-superagent is a research prototype, not an official DeepSeek product; it is a bundle for DeepSeek Harness, created 2026-10-31 with one commit and ~15,500 GitHub Stars by 2026-11-03.
— The philosophy is 'take as little human attention as possible, and give as much value as possible'; every message, setting, and panel element must justify its cost or be removed.
— The agent only acts when a permitted person explicitly mentions it or when team-written rules allow; proactive intake defaults to `observe` mode, which records decisions without executing.
— Authorization follows a two-layer model: the host enforces whitelists and Mandates; messages and comments are inputs that cannot change permissions.
— Mandates are immutable; widening scope requires a new Ticket, and only a human stop or policy re-validation failure can revoke them.
— Each follow-up message in a Ticket's Thread belongs to that Ticket's Executor, or is explicitly handed back; only unowned messages go to a new Eval.
— The Executor Session runs commands under the operator's OS user without approval; wrapper scripts and directories are defaults, not security boundaries.
— Auto-merge is off by default; the host has no merge logic, and the delivery requirements prompt must specify a different account's CLI for merging.
— External text (messages, comments, docs) is treated as data and never changes rules or authorization; this is the defense against prompt injection.
— The setup guide is written for an AI agent, instructing it to ask one question per message under 300 characters and never ask for secrets in chat.
Conclusions

The prototype's most reusable artifact is the documentation itself: a tightly ordered set that records rejected designs and their reasons, which many production projects skip.

Treating 'person' as a Source-specific identity rather than a cross-Source mapping keeps the domain model smaller and avoids a centralized identity store, at the cost of the agent needing prompt text to map accounts.

Putting the Policy block last in the system prompt is a practical cache-friendly trick, but it also means teams can change behavior without retraining or rewriting earlier prompt text.

The explicit line that external text is data, not authority, is a design stance against prompt injection that many agent frameworks should adopt.

Running the Executor under the operator's OS user with no approval makes the prototype unsuitable for production without significant hardening, despite the careful attention economics.

Concepts & terms
Mandate
In dsh-superagent, a Mandate is the immutable authorization granted when Eval accepts a work request. It records policy version, scope, intensity, match rules, and sender identity. Widening scope requires a new Ticket; only a human stop or re-validation failure can revoke it.
Intake mode (observe/auto/off)
A Policy setting controlling proactive behavior. `off` block all inferred candidates; `observe` (default) evaluates inferred candidates and records what it would have accepted without executing; `auto` accepts them and starts work. Explicit requests always work regardless of mode.
Hand back
When a Ticket's Executor receives a follow-up message that is out of scope or belongs to another Ticket, it returns the message to the routing layer. Only messages no Ticket owns go into a new Eval, preventing duplicate handling or abandonment.
DeepSeek Harness (DSH)
DeepSeek's open-source agent harness built on the Cordis plugin architecture. It runs as a desktop app or launches a web UI from code, and is in global public preview. dsh-superagent is a plugin bundle inside DSH.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗