[KongchangAI]
· 3 min read· 1,963 words

DeepSeek Super Agent Architecture in Practice: Building a Fully Automated AI Workflow from Scratch

DeepSeek Super Agent Architecture in Practice: Building a Fully Automated AI Workflow from Scratch

DeepSeek research shows the multi-Agent bottleneck is human scheduling; the Lead-Worker architecture speeds things up by removing the Lead's execution authority, but review remains the real bottleneck.

The article examines DeepSeek's Super Agent architecture, arguing that the real bottleneck in multi-Agent collaboration has shifted from model inference to human scheduling. Experiments show that under vague prompts the model calls sub-agents zero times across five runs, while explicit instructions raise that to four—but any loophole left in the prompt will still be exploited. The Lead-Worker architecture eliminates self-execution by removing the Lead's bash tool, cutting typical tasks from about 20 minutes to just over 12 and slow tasks from 30 to 16. Message routing filters reduce cache reads from nearly 32 million to about 23 million, at the cost of context fragmentation that requires Chain of Recall to trace level by level. Human approval can't be automated; Worker permission prompts must return to the human session, and watchdog progress detection remains only a proposal. The author stresses that review is the real bottleneck: the Lead claiming a task is complete doesn't mean tests pass.

Are You Still Acting as Your AI's Dispatcher?

You let an Agent run overnight, and in the morning it replies with a single line: "I need confirmation before I can start." This is the reality many developers face when using multi-Agent collaboration. Research from DeepSeekAd reveals a counterintuitive truth: the model isn't the reason things are slow—you are. When developers keep five tabs open in Claude Code and poll them, the real bottleneck has already shifted from model inference to human scheduling.

The Super Agent architecture proposed by DeepSeek centers on one idea: take the "scheduling authority" out of the model's hands and give it to a Lead layer that only dispatches tasks and never executes them. This article combines the original research data with hands-on feedback to break down whether this architecture can be put to work in everyday development.

The Limits of a One-Sentence Prompt: The Zero-Call Experiment

DeepSeek ran a controlled experiment: the model was equipped with a sub-agent tool, mixed with about 20 tasks and 300 chat/CI messages, and run five times in a row. The prompt said "use sub-agents when appropriate"—and across five runs, the sub-agent was called zero times.

The model crammed all the work into the main session and kept getting interrupted by the flood of incoming messages. This shows that vague authorization like "when appropriate" gets conservatively interpreted by the model as "right now is not really appropriate."

Prefer handing each piece of work to a subagent of its own

After swapping in a more explicit instruction, the same test saw the model successfully delegate in four out of five runs. On the fifth, it judged the task "too small" and did it itself—because the prompt left the door open with "small tasks can be done by yourself." Every vague word you write is a door the model can use to bypass delegation.

Sub-agent is a foundational concept in multi-Agent architectures: the main model (or main session) uses a tool call to delegate a subtask to a separate small Agent with its own context window and toolset, and the result is aggregated back into the main session. Its value lies in context isolation—subtask logs, intermediate files, and failed retries don't pollute the main session's conversation history, which retains only the conclusions. But whether and when the model calls a sub-agent depends on the wording of the system prompt, the clarity of the tool description, and the model's judgment of "whether the current task is worth delegating." The zero-call result in DeepSeek's experiment wasn't because the tool was unavailable, but because vague authorization made the model lean conservatively toward "doing it itself"—a pattern common in multi-Agent product design.

The Lead-Worker Architecture: Taking Away the Model's "Hands"

DeepSeek's solution isn't to make the prompt stricter, but to directly remove the Lead's execution capability. The Lead only interacts with humans and dispatches tasks; the article explicitly states it can be equipped with no bash tool at all. Workers, by contrast, have the full toolchain, with one independent Worker per task; CI logs and test output stay on the Worker side and don't pollute the main session.

This is more reliable than merely optimizing prompts: with prompts, the model can still choose to "do it itself," but once the tools are taken away, it has no choice.

There's a noteworthy detail in the prototype code—the article says the Lead can run without bash, but the public prototype still retains the shell tool. When replicating this, it's advisable to configure permissions as described in the article.

Measured Performance: How Much Faster, How Much Cheaper

DeepSeek timed three configurations in the same test:

  • "Use when appropriate" prompt: typical tasks about 20 minutes, slow tasks about 30 minutes
  • Explicit delegation prompt: typical tasks about 14 minutes, slow tasks about 29 minutes
  • Full Lead+Worker architecture: typical tasks just over 12 minutes, slow tasks about 16 minutes

Meanwhile, someone on Twitter says, holy shit, almost twice as fast

A single pasteable prompt captures most of the speedup, and the full architecture adds about another 10% on top. But slow tasks dropping from 30 minutes to 16 minutes is where the Lead-Worker architecture really pulls ahead. The researchers also acknowledge: the tests used dummy timer-style tools, ran each configuration five times, and the conclusions are indicative only.

Interestingly, on the cost side: after enabling message routing filters, cache reads dropped from about 23 million to within about 23 million (the original data shows a drop from nearly 32 million to about 23 million), with task duration essentially unchanged. What's saved is tokens, not time.

Message Routing and Chain of Recall

Having all messages flood to the Lead causes congestion. DeepSeek adds a pure-code filter layer ahead of the model: it checks the message source and permissions, discards bot notifications not on the whitelist, and if a Worker is already subscribed to a PR comment thread, skips the Lead and sends it straight to the Worker.

The cost is context fragmentation—if you ask "what happened on tab 3," the Lead may not have been present. DeepSeek's answer is Chain of Recall: each archived object has a readable ID, and the Lead traces from your message to the thread, from the thread to the Worker, and from the Worker to the report, hopping level by level to retrieve the page it needs. It's not vector search, not learned memory—it's simply following IDs.

Workers reply to the chat window with only about 100 words of conclusions, leaving details on the PR. Because if the Lead can't read files, it can't verify what the Worker claims—the evidence must be written into the report itself.

Chain of Recall is a retrieval mechanism based on explicit identifiers, contrasted with vector retrieval or learned memory. Each archived object (message, thread, Worker, report) carries a human-readable ID; after the Lead receives a human question, it follows the reference chain of "message → thread → Worker → report" level by level to locate the specific page of content. Its advantages are high determinism, auditability, no embedding model required, and no risk of semantically similar but factually wrong recall; its drawback is its dependence on complete maintenance of the reference relationships between objects—once the chain breaks (e.g., a message isn't linked to a thread), the Lead can't trace back. For Agent systems that emphasize evidence chains and reproducibility, this "follow the IDs" approach fits audit requirements better than fuzzy semantic search.

Human Approval: The Gate You Can't Bypass

No matter how automated the architecture, the Worker's permission confirmation prompts still come back to the main session. In hands-on testing, when a Worker initiates a bash command, the main session pops up "continue?" and you have to manually press 1. The documentation explicitly states that no Agent's message counts as human approval.

The worker keeps going and that's your job now

You can choose "yes and don't ask again," but that's a real trade-off: you lose visibility into that thread's subsequent operations. The DeepSeek prototype runs Workers with full permissions so no prompts appear, but that means trading safety for smoothness. The more dangerous case is an Agent spinning in place while never asking questions—it looks like it's working. DeepSeek proposes using an independent watchdog session to detect real progress, but that remains a proposal only and isn't implemented in the prototype.

Yes, almost four times the cache reads

Human-in-the-loop in Agent systems means high-risk operations (such as executing shell commands, writing to production, or consuming credentials) must be explicitly confirmed by a human before proceeding. Its safety premise is that "humans are the only trusted source of approval"—no Agent message, including a Lead's paraphrase, can be treated as authorization. This constraint creates friction in automated pipelines: Worker permission prompts flow back to the main session, and a human must confirm manually or the process stalls. Choosing "don't ask again" improves smoothness but means subsequent operations on that thread leave human view—a trade-off of observability for throughput. Therefore, the granularity of approvals, the scope of the whitelist, and which thread the prompts belong to directly determine whether the architecture can be deployed in production.

Cross-Platform Comparison: Cursor and Claude Code

DeepSeek isn't alone on this path. Cursor's project coordinator likewise declares it doesn't write code itself, and the blog claims it can delegate to thousands of sub-Agents; Claude Code's project mode uses a long-running session as the coordinator. Both are in beta, run in the cloud by default, and can execute tasks locally when necessary.

Claude Code's coordinator can also answer small questions on the spot, and approval prompts stay in the corresponding thread and wait—tab 3 just queues up somewhere else. The cost is cache reads roughly four times those of the "when appropriate" approach.

Minimum Viable Path

The author's Monday action plan: create two files—the Lead keeps only the sub-agent and messaging tools, while the Worker gets the real tools; add one line of instruction telling the Lead to send tasks to the background without waiting for results; add one setting on the Worker side; start with one command. Also set up a quiet trigger to watch for CI failures, notifying only when there's a new failure with evidence. Condense Worker reports to conclusions plus blockers, with details going to the PR.

What Automation Can't Solve

DeepSeek ran an end-to-end test with a real SymPy bug: five bugs fixed by maintainers were mixed in with 15 ordinary messages and run for 20 minutes. Native Claude Code dispatched zero times in five runs, the explicit prompt four times, and the hands-off architecture dispatched all five times. But when the Lead claimed "all five are fixed," not a single one of the five test groups fully passed—the Lead saying done doesn't mean done.

The author also points out the fundamental limitation: review is the real bottleneck, and this architecture doesn't solve review. The discipline of landing one change at a time and developing features serially to avoid conflicts are things the Lead can't do for you. What you save is time chasing the Agent; what you get in return is time looking at artifacts and evidence—the object of judgment shifts from line-by-line code to the proof produced by the PR.

The original author, Yu Jiaqiao, specifically reminds readers not to rely solely on AI summaries: the equations in the paper don't hold under the simplified narrative of a single session and single Agent, and the Lead is actually a routable, splittable layer. Section 8 also lists unresolved issues, including prompt injection and credential leakage risks.

One-line Summary

DeepSeek research reveals that the multi-Agent bottleneck is human scheduling; the Lead-Worker architecture improves speed by removing the Lead's execution authority, but review remains the real bottleneck.

Paragraph Summary

The article examines DeepSeek's Super Agent architecture, pointing out that the real bottleneck in multi-Agent collaboration has shifted from model inference to human scheduling. Experiments show that under vague prompts the model calls sub-agents zero times across five runs, while explicit instructions raise that to four—but any loophole left in the prompt will still be exploited. The Lead-Worker architecture eliminates self-execution entirely by removing the Lead's bash tool, cutting typical tasks from about 20 minutes to just over 12 and slow tasks from 30 to 16. Message routing filters reduce cache reads from nearly 32 million to about 23 million, at the cost of context fragmentation that requires Chain of Recall to trace level by level. Human approval can't be automated—Worker permission prompts must return to the human session; watchdog progress detection remains only a proposal. The author stresses that review is the real bottleneck: the Lead claiming a task is complete doesn't mean tests pass, and automation only shifts human attention rather than eliminating judgment.

#DeepSeek#Super Agent#Lead-Worker architecture#multi-Agent collaboration#sub-agent#Chain of Recall#human-in-the-loop#Claude Code#Cursor#AI workflow automation
Share:

Related articles