跪拜 Guibai
← Back to the summary

DeepSeek Super-agent Turns Enterprise Knowledge Bases Into 24/7 Scheduling Systems

Long Read! DeepSeek Super-agent × Enterprise Knowledge Base: An In-Depth Architecture Analysis and Implementation Guide

Author: 徐小夕

Over the past few years we have focused on building AI products and have shared many high-value open-source AI projects in this account.

We have watched large-model applications evolve from "simple Q&A" to "Agent execution," and enterprise knowledge bases from "pure RAG retrieval" to structured knowledge accumulation. But when these two lines meet in real business, a new dilemma quickly emerges: most Agents are still "conversational temporary workers"—every time you start one you have to re-explain the background, re-retrieve knowledge, and run tasks single-threaded; meanwhile, the knowledge base remains a "passive library"—it only outputs answers when someone asks, and never actively pushes knowledge into the business flow.

Teams on the front line feel this most strongly:

We systematically studied the Super-agent architecture design and prototype implementation that the DeepSeek Harness team open-sourced at the end of October, and combined it with our own enterprise knowledge-base implementation experience. We found it hits the industry's core pain point precisely: it takes "session management, task scheduling, and knowledge reuse"—work that should belong to the system—off the user, and hands it to a resident intelligent scheduling layer.

It is not a new model, nor an out-of-the-box product. It is an architectural methodology for the next generation of enterprise agents.

This article breaks it down from six dimensions—design philosophy, core architecture, working loop, knowledge-base integration, cost estimation, and implementation—and also clarifies which enterprises are worth adopting it and which scenarios should wait.

1. Why Agents "Can't Remember and Can't Manage"

Many enterprises have already completed the first step: set up a RAG knowledge base, launched a conversational Agent, and let employees query policies, manuals, and tickets. The initial experience is impressive, but after three months of operation, the common problems are almost identical.

First, session isolation and context fragmentation. Each Agent session is independent. A plan discussed in a Feishu group has to be repeated when asked in the ticket system. A parameter confirmed last week gets a mix of old and new answers when queried through another entry point this week. Knowledge and context are scattered across session windows and never form a global accumulation.

Second, single-threaded execution, with humans doing the scheduling. A traditional Agent can only do one thing at a time. Once a time-consuming fault investigation task starts, new inquiries have to queue. Employees open multiple sessions in parallel and act as their own project managers. Industry-wide, one person can effectively manage no more than 3–5 active Agent sessions at once.

Third, repeated knowledge retrieval wastes compute. When the same high-frequency question is asked ten times by different people, the system runs the full "document chunking → vector retrieval → context assembly → answer generation" pipeline all ten times. Knowledge is never settled into reusable structured units; every query starts from zero, token costs stay high, and answer consistency is not guaranteed.

Fourth, always reactive, never proactive. Today's knowledge bases and Agents are all "trigger-based"—they work only when someone asks, and idle otherwise. New fault feedback piles up in the ticket system, similar questions recur in group chats, old and new parameter conflicts appear in docs—the system never proactively discovers, follows up, or settles any of it.

Looking back at the whole architecture, this is not a problem with any specific product but the underlying inertia of mainstream Agent design: a single-session-centric interpretive execution model. Sessions are temporary, execution is synchronous, knowledge is fetched on demand, and when the task ends everything resets to zero. Just as traditional RAG "cooks the dish from raw ingredients every time," traditional Agent "sets up a new makeshift workshop every time work starts."

For enterprise agents to truly enter production systems, the core contradiction has shifted from "can it call tools?" to "can it continuously accumulate, schedule in parallel, and actively deliver?" Continuing to tweak prompts and add tools within the single-session framework will not solve the root problem.

2. Paradigm Shift: From "Session Execution" to "Resident Scheduling"

DeepSeek Super-agent's essence is to bring classic system design ideas into the Agent domain. Its core design philosophy can be summarized in four characters: resident scheduling.

A simple analogy: a traditional single-session Agent is like a part-time temp worker who shows up when called. Every time you have to re-explain the background and re-state the requirements, and he leaves after the job. Super-agent, by contrast, is like a full-time department supervisor in the company—always on duty, remembering all historical context, receiving a request, then splitting tasks himself, dispatching them to the appropriate specialist workers, tracking the whole process, and finally delivering the result to you in one place. You only need to deal with him.

The subject of processing changes from "a single session" to "a resident system," and four core characteristics change fundamentally:

In one sentence: the traditional Agent is a tool that "moves when you tell it to"; Super-agent is a resident system that "pushes forward on its own once given goals and rules."

3. Two-Layer Core Architecture: Strict Separation of Scheduling and Execution

Super-agent's skeleton is the classic "Router-Worker two-layer separation architecture," supported by three mechanisms: event-driven, compute-storage separation, and supervision guarantee.

First Layer: Router Scheduling Layer—Only the General Manager, Never Hands-On

The Router is the system's only external interface; all channel messages, events, and requests converge here first. Its core responsibilities are three:

The most important design principle is that the Router does not execute specific tasks and may even omit tools like Bash. Just as a project manager doesn't write code, the Router only makes high-level decisions and coordinates; therefore, a lightweight model can run it, greatly reducing the cost of the core scheduling path. The "lighter" it is, the faster the system responds and the higher its concurrent load capacity.

Second Layer: Worker Execution Layer—Isolated Concurrency, Specialized Tasks

Workers are the real working units. Each Worker has its own independent Agent session, working directory, complete toolchain, and dedicated context. The design follows three rules:

There is an easily overlooked subtle design here: layered optimization of model cost. The expensive, strong model sits only on the Worker layer for the deep reasoning execution steps, while the large amount of routing, filtering, and classification work is done by cheap lightweight models on the Router layer. This parallels the enterprise knowledge-base idea of "moving compute from the query side to the settlement side"—spending compute where it actually creates value.

Three Supporting Mechanisms

1. Event-driven and subscription pass-through

All external messages, notifications, and state changes are treated uniformly as "Triggers." The system uses a two-level filter: the first level is a programmatic rule hard-filter that directly discards obviously irrelevant notifications and duplicate messages, reducing model calls; the second level uses large-model semantic judgment to confirm whether an event needs a response and which task type it belongs to, before sending it to the Router for dispatch.

For tasks already assigned to a Worker, subsequent related events are sent directly to the corresponding Worker through the subscription pass-through mechanism without going through the Router each time. This lightens the Router's load and reduces token consumption on the intermediate path.

2. Compute-storage separation and state persistence

Traditional local Agents tie "compute/inference, session state, and execution environment" to the same device; everything stops when the computer sleeps. Super-agent completely splits the three: the compute layer runs in cloud containers that can scale elastically; the state layer is stored independently in a database, surviving container restarts and device online/offline; the execution environment layer stays on the user's device or enterprise intranet, communicating with the cloud through a lightweight proxy. This yields two core benefits: tasks can progress 24/7; and state is traceable and migratable, so any node failure can recover quickly.

3. Watchdog supervision and self-healing

As an independent supervision module, Watchdog does not participate in business execution. It has only two jobs: failure detection (monitoring process crashes, interface timeouts, network interruptions, and automatically attempting recovery) and task course correction (judging whether a task has fallen into an invalid loop, is repeatedly calling tools, or has deviated from the original goal, and intervening to interrupt when an anomaly is found). It is the safety supervisor of the system and an essential guarantee for persistent operation.

4. Six-Phase Loop: The Full Journey from Trigger to Settlement

Bringing "resident scheduling" down to engineering yields a complete task lifecycle loop with six phases:

① Event Capture: Ingest Multiple channel events are uniformly ingested, tagged with source and timestamp, and first passed through rule-based filtering to strip junk messages, duplicate notifications, and clearly irrelevant events. This step is purely programmatic and consumes no large-model tokens; it is the first cost-control gate.

② Intent Routing: Route After filtering, events go to the Router layer, where a lightweight model does semantic understanding: judging the event's intent, business domain, whether it needs to trigger a task, and which kind of Worker to dispatch to. Once confirmed, the Router creates a dedicated Worker session and injects the initial context, corresponding tool set, and knowledge permissions.

③ Parallel Execution: Execute Workers, upon receiving tasks, run asynchronous ReAct loops in independent sessions: think → call tool → observe result → next action. Multiple Workers execute different tasks simultaneously without blocking each other. The key here is the asynchronous ReAct mechanism: while a Worker runs a time-consuming task, the Router can still accept new instructions and dispatch new tasks, so the whole system is never stuck on a single long task.

④ State Synchronization: Sync Workers periodically send execution progress, intermediate results, and problems back to the Router, which updates the global state. Users can query progress on all tasks through the Router at any time, without visiting each Worker individually.

⑤ Conflict Verification: Verify After a task completes, the result is not delivered directly. It goes through verification first: if the answer conflicts with the knowledge base conclusion, the system does not overwrite old knowledge but marks the conflict, cites both sources, and generates a pending review item. Operation-type tasks get compliance checks first. This is the core design principle in enterprise systems: machines discover differences, humans make the final decision.

⑥ Settlement and Iteration: Iterate Task delivery is not the end. The system automatically syncs the task's valid conclusions, solutions, and new knowledge points back to the enterprise knowledge base: high-frequency question answers get updated on the core knowledge page; new fault cases are appended to the corresponding knowledge entry; low-recall, high-repetition problems are flagged as knowledge gaps. This step makes every Agent execution an incremental update to the knowledge base, forming a positive loop of "execute → settle → reuse."

Two key designs are worth detailing:

5. Deep Integration with Knowledge Bases: Giving Super Agent an Enterprise Brain

Super-agent solves "whether it can work and run in parallel," but in enterprise scenarios, what determines the quality of Agent output is still whether it can precisely and compliantly use internal enterprise knowledge. We recommend a "core-edge" layered knowledge architecture that matches Super-agent's two-layer scheduling system:

Core layer: structured standard knowledge (high-frequency, high-value) The most central, most frequent, and most stable enterprise knowledge—core product parameters, standard SOPs, common fault solutions, and institutional norms—is organized in advance into structured, correlated, traceable standard knowledge pages. Each page carries a standard metadata header (source mapping, update timestamp, tags, association list), and pages cross-reference each other bidirectionally. When a Worker starts, it preloads the domain core knowledge by task type and reads it directly during execution without on-the-fly retrieval. Knowledge carries full traceability links, and output answers automatically cite sources, meeting compliance and audit requirements.

Edge layer: RAG vector retrieval (massive low-frequency knowledge) Massive historical tickets, scattered documents, and unstructured records keep the traditional RAG vector index as a fallback retrieval. When the core knowledge layer misses an answer, the system automatically degrades to the vector store for supplementary information.

Scheduling layer: Router unifies knowledge routing The Router layer decides which knowledge category a task should prioritize and whether to start retrieval, shielding the underlying details from Worker.

On this basis, three-way hybrid knowledge recall works: precise standard-knowledge page recall (based on entity and concept matching), knowledge-graph association recall (cross-document reasoning along pre-built association networks), and vector semantic fallback recall (covering long-tail content).

This "core settled knowledge + retrieval fallback for long tail" model, compared to pure RAG retrieval, improves answer accuracy by more than 20% while reducing token consumption by 60%–80%—because the vast majority of high-frequency queries directly reuse pre-settled knowledge. More importantly, it forms a loop: new experience generated by Agent execution automatically writes back to the core knowledge layer, and after review becomes new reusable knowledge.

6. Two Configuration Snippets: What the Implementation Looks Like

The following two snippets are typical Super-agent configurations in an enterprise knowledge-base scenario.

Snippet 1: Router layer rule configuration (simplified AGENTS.md example)

# Super-agent Router operating rules

## Event filtering rules

1. All non-emergency events outside work hours are cached and processed during work hours

2. System messages tagged [automatic notification] [system log] are filtered directly and do not enter model judgment

3. Only @ messages from whitelisted members and specified ticket events can trigger task creation

## Task dispatch rules

1. Knowledge consulting questions → dispatch to FAQ-Worker, pre-load the core knowledge base of the corresponding department

2. Fault-report tickets → dispatch to Ops-Worker, load operations knowledge base + ticket system tools

3. Documentation update requests → dispatch to Doc-Worker, load document knowledge base + version management tools

4. Unclassifiable general questions → first call knowledge base retrieval, then decide whether to create a specialized Worker

## Reply rules

1. All knowledge-type answers must cite the source knowledge page, clickable for traceability

2. Task progress is synced once daily; anomalies are reported immediately

3. Knowledge conflicts must explicitly cite the sources of different claims and prompt manual review

Plain-language interpretation: This file defines the Router's behavioral boundaries. Its value lies in decoupling business rules from code—when business processes change or knowledge classification changes, you only need to update this configuration. For enterprise implementation, a configurable rule system matters more than feature count.

Snippet 2: Worker knowledge base integration schema (simplified example)

--- worker_type: ops-fault-worker model: deepseek-v4-pro knowledge: core_knowledge: - entities/空压机机组全系列.md - concepts/轴承故障诊断标准.md - entities/二线运维班组.md rag_scope: 运维工单库-2025~2026 recall_strategy: 核心知识优先 → 图谱关联 → 向量兜底 tools: - 工单系统查询 - 设备监控数据读取 - 知识页回写提交 rules: - 故障诊断结论必须引用至少 2 条独立来源 - 新旧参数冲突时,默认展示最新版本,同时标注旧版链接 - 任务完成后,有效解决方案自动提交至知识待审核区 sources: - 设备运维手册V3.2.pdf - 2026年Q3故障工单汇总.xlsx related: - pending/转速参数冲突-20260827.md ---

Plain-language interpretation: This configuration is like giving each Worker a dedicated "reference book + operating rules + work permissions." The Worker starts with the domain core knowledge loaded, no need to retrieve from zero every time; output is clearly constrained by rules; and new conclusions automatically flow back to the knowledge base, completing the settlement.

7. Key Consensus: Not Replacement, but Layered Cooperation

It must be clear: Super-agent is not meant to replace existing Agent products, nor to overturn RAG knowledge bases. It adds a layer of resident scheduling and knowledge operation capability on top of the existing system.

With this hybrid architecture of "core structured knowledge + Super-agent + RAG fallback," enterprises get three benefits at once: lower cost from high-frequency knowledge reuse, higher efficiency from resident scheduling, and long-term asset appreciation from knowledge settlement. Preliminary industry project estimates show that compared to a pure conversational RAG solution, the hybrid architecture can cut overall operational costs by more than 40% and improve task processing efficiency by more than 50%.

8. The Ledger Enterprises Care About Most: Implementation Cost and ROI

Let's break down the cost in two mainstream deployment modes, while clarifying the prerequisites and tunable knobs.

Mode 1: API Calling Mode (first choice for small and medium teams)

All model inference goes through cloud APIs. The enterprise only needs to deploy the scheduling service and knowledge base; no GPU cluster is needed. This has the lowest barrier and lowest trial-and-error cost.

Mode 2: Private Deployment (medium/large enterprises or strict data compliance)

All model inference happens on the enterprise intranet; data never leaves the domain. This suits finance, manufacturing, government, and other industries with high data-security requirements.

Three Tunable Cost Knobs

The core prerequisite: this ledger works only when there is task reuse. When similar tasks are executed repeatedly and similar knowledge is called repeatedly, pre-settled knowledge and resident scheduling amortize the cost. If the business is extremely scattered and every task is one-off, traditional single-session Agent is actually more economical.

9. Which Enterprises Should Implement a Super Agent Knowledge Base

Manufacturing and operations enterprises: operations knowledge bases, equipment manuals, and fault tickets are core assets. Implementation value: automatically monitor the ticket system, new fault tickets auto-match knowledge bases, generate diagnosis plans, and sync to operations staff; after resolution, the solution automatically settles. Equipment repair average turnaround can be shortened by more than 30%.

R&D enterprises: documents, Issues, code, and plans are scattered everywhere. Implementation value: automatically monitor code repositories and R&D group chats; Issues auto-search historical solutions and generate fix suggestions; R&D conclusions auto-sync to the knowledge base. Knowledge settlement efficiency can be improved by over 80%.

Customer service and operations enterprises: large FAQ and ticket systems with high repeat-consultation rates. Implementation value: monitor consulting channels 7×24, auto-reply to high-frequency questions, auto-route complex tickets to follow-up, and improve per-agent handling volume by over 40%.

Functional and administrative enterprises: lots of policies, employees repeatedly ask the same kinds of questions. Implementation value: serve as a unified intelligent entry point for policy consultation and process handling; policy updates auto-sync to the knowledge base. Low implementation threshold and quick results.

Conversely, if the business has the following characteristics, it is not advisable to board this train hastily: knowledge updates extremely fast and produces large amounts of new content daily; tasks are highly individualized with almost no repetition; and the team lacks technical operations capability and has no manpower for continuous knowledge base operations. Technology selection is never about choosing "the most advanced," but "the best fit."

10. Implementation Practice: Comparison of Four Open-Source Solutions

Option 1: Use the official prototype directly — dsh-superagent-prototype DeepSeek also open-sourced its research prototype, built on DeepSeek Harness, under the MIT license. Advantages: the architecture follows the official design thinking most closely—Router-Worker two-layer structure, event subscription, Watchdog and other core mechanisms are implemented; code is lightweight and easy to learn. Limitations: explicitly marked as a research prototype, not production-grade; supports only GitHub + Feishu as event sources; lacks enterprise-grade permissions, auditing, and multi-tenancy; sandbox security is incomplete. Suitable for: technical pre-research and small-scale pilot validation, not recommended for direct core production use.

Option 2: Secondary development on DeepSeek Harness DeepSeek Harness is an official plugin-based Agent framework where every capability is a plugin. Advantages: highly flexible plugin architecture, can extend to enterprise WeChat, DingTalk, ticket systems and other internal event sources; model-agnostic, switchable to DeepSeek, Qwen, etc.; customizable knowledge base integration logic. Limitations: the framework is still in rapid iteration, some interfaces may change; enterprise features must be built by your own team. Suitable for: medium enterprises with an in-house technical team and high customization needs—currently the most cost-effective implementation path.

Option 3: Build a two-layer architecture on general Agent frameworks Use mature frameworks such as LangGraph or Dify to build the Router + Worker two-layer architecture yourself. Advantages: mature ecosystems, comprehensive docs, rich surrounding tools; Dify has a built-in visual UI and RAG capability; LangGraph has solid state persistence and checkpoint mechanisms. Limitations: you must implement Router routing, event subscription pass-through, Watchdog and other core mechanisms yourself; architectural fit is lower than the native approach. Suitable for: enterprises already using these frameworks and looking to upgrade gradually.

Option 4: Integrated knowledge-base product + Agent platform Choose an enterprise knowledge-base product with built-in Agent capability and configure resident scheduling tasks inside the product, out of the box. Advantages: mature knowledge-base capability, visual configuration, low technical threshold, and built-in permissions, auditing, multi-tenancy and other enterprise features. Limitations: architecture is tightly bound to the product; customization space is limited. Suitable for: small and medium teams without abundant technical development resources who need to validate business value quickly.

Implementation advice: small teams start with Option 4 to validate business value; teams with technical ability use Option 2 for deep customization; enterprises that already have an Agent system use Option 3 to upgrade gradually; Option 1 is better suited for technical research and prototype validation, not direct production.

Final Review

Back to the core question at the start: "Why can't Agents remember and manage too much?"

Super-agent's answer: let the system learn to be resident—move session management from the user side to the system side, move knowledge processing from query time to settlement time, change task execution from single-threaded to parallel scheduling, and turn passive response into proactive advancement.

It is not a silver bullet. It cannot solve every problem, nor does it replace high-quality knowledge content and continuous operational investment. But it represents a clear trend: enterprise agents are moving from "conversation-centric" to "task-centric," and enterprise knowledge bases are moving from "retrieval-centric" to "knowledge settlement and application-centric."

The future enterprise knowledge system will not be a static warehouse waiting for people to ask. It will be a 7×24 running, proactively problem-finding, automatically scheduling and executing, continuously asset-settling intelligent collaboration system. The knowledge base is its brain, Super-agent is its nervous system. Only when the two combine can knowledge truly become productivity.

If you too are exploring the implementation path for next-generation enterprise knowledge bases and agents, why not start with a small scenario or a single department pilot? The earlier you start this path, the more obvious the compound interest effect of knowledge assets becomes. If you want to discuss implementation details of this "resident scheduling + core-edge knowledge architecture," we welcome further exchange.