Skip to content
Geek AI Lab
Go back

DSec: The Infrastructure Layer Behind Scalable AI Agents

Edit page

DSec: The Infrastructure Layer Behind Scalable AI Agents

For the first stage of the generative AI revolution, the dominant question was:

How capable is the model at generating information?

Large language models demonstrated remarkable abilities in language understanding, reasoning, and generation.

However, as AI systems evolve from assistants into autonomous agents, a more fundamental question emerges:

What happens when a model is allowed to execute actions, interact with environments, and continuously improve through feedback?

This transition is driving the rise of agentic AI.

Modern AI systems are moving beyond single-turn conversations toward systems that can:

At this point, the model itself is no longer the complete system.

The future of AI depends increasingly on the infrastructure surrounding the model.

One of the critical components of this new architecture is sandbox infrastructure.

DeepSeek’s DSec (DeepSeek Elastic Compute) represents an attempt to build this missing execution layer for large-scale AI agents.


1. From Language Models to Action-Oriented Systems

A traditional language model can be approximately described as:

P(xt+1∣x1,x2,...,xt)P(x_{t+1}|x_1,x_2,...,x_t)

The model predicts the next token based on previous context.

This paradigm is powerful, but the model itself does not directly perform actions.

An agentic system introduces an additional loop:

Observe→Reason→Act→Observe→...\text{Observe} \rightarrow \text{Reason} \rightarrow \text{Act} \rightarrow \text{Observe} \rightarrow ...

The model becomes a controller of a computational process.

A simplified architecture:

                 Goal

                  ↓

              Reasoning Model

                  ↓

                 Plan

          ┌───────────────┐
          ↓               ↓

       Tools           Memory

          ↓               ↓

          └───────┬───────┘

                  ↓

             Environment

                  ↓

              Feedback

                  ↓

                Repeat

The environment is no longer external infrastructure.

It becomes part of the intelligence loop.


2. Why Agent Systems Need New Infrastructure

Traditional cloud platforms were designed around long-running applications:

Application

    ↓

Service Runtime

    ↓

Infrastructure

Agent workloads are fundamentally different:

Agent

 ↓

Create Environment

 ↓

Execute Task

 ↓

Collect Result

 ↓

Update State

 ↓

Continue

An AI coding agent may require:

Each task may require a different computational world.

Therefore, the key infrastructure problem becomes:

How can we create millions of isolated, reproducible, and efficient execution environments?

This is the problem DSec attempts to solve.


3. DSec Architecture: A Universal Sandbox Layer

DSec provides a unified interface for creating different levels of execution environments.

Conceptually:

                 Agent Runtime

                      |

                 DSec API

                      |

        --------------------------------

        |              |              |

    Function      Container       microVM

        |

      Full VM

The design principle is:

one interface, multiple isolation levels.

Different workloads can choose different execution models.


4. Multiple Execution Backends

4.1 Function Execution

For lightweight tasks:

A function execution environment minimizes startup overhead.

The workflow:

Request

  ↓

Prepared Runtime Pool

  ↓

Execute Function

The goal is maximum throughput.


4.2 Containers

Containers provide the default environment for many agent tasks.

Typical workloads include:

Containers provide a balance between:

However, large-scale agent workloads introduce another challenge:

environment initialization speed.


4.3 microVMs

When agents execute untrusted code, stronger isolation is required.

microVM architecture:

Host Kernel

      |

 Virtual Machine Monitor

      |

Guest Kernel

      |

Agent Environment

Compared with containers:

ContainermicroVM
KernelSharedIndependent
StartupFastModerate
IsolationProcess levelHardware virtualization boundary

microVMs provide stronger security guarantees for autonomous execution.


4.4 Full Virtual Machines

Some workloads require complete operating systems.

Examples:

Full VMs provide maximum compatibility at higher resource cost.


5. The Hidden Challenge: Creating Environments at Scale

The biggest challenge in large-scale agent execution is not only compute.

It is environment creation.

A traditional workflow:

Download Image

      ↓

Extract Files

      ↓

Initialize Runtime

      ↓

Start Application

At massive scale, this becomes expensive.

A better approach is:

Base Environment

       +

Task Specific Layer

       +

Runtime Dependencies

       ↓

On-Demand Loading

By using layered images and optimized storage systems, environments can become available without copying the entire filesystem.

This is essential when thousands or millions of agent tasks run simultaneously.


6. Sandbox Infrastructure for Reinforcement Learning

Agent training increasingly relies on reinforcement learning.

The training loop becomes:

Policy Model

      ↓

Generate Action

      ↓

Execute Environment

      ↓

Receive Reward

      ↓

Update Model

The environment is no longer only a testing tool.

It becomes part of the training system.

Therefore, infrastructure must support:

DSec is designed around this requirement.


7. The Scheduling Problem of Agent Workloads

Agent workloads have unique resource patterns.

A typical cycle:

Reasoning

 ↓

Tool Execution

 ↓

Waiting

 ↓

Observation

 ↓

Reasoning

The CPU may be idle during reasoning or waiting periods.

However:

Future AI infrastructure therefore requires workload-aware scheduling rather than traditional application orchestration.


8. DSec and the Future of Cloud Computing

The evolution of computing infrastructure may look like:

Cloud Computing Era

Applications

      ↓

Cloud Services

      ↓

Hardware

Agent Computing Era

AI Agents

      ↓

Agent Runtime

      ↓

Sandbox Infrastructure

      ↓

Compute + Storage

The fundamental unit of computation is changing.

Previously:

Input→Model→OutputInput \rightarrow Model \rightarrow Output

Increasingly:

Goal→Agent→Reason→Act→Observe→LearnGoal \rightarrow Agent \rightarrow Reason \rightarrow Act \rightarrow Observe \rightarrow Learn

9. Reliability Becomes the Core Challenge

Once AI systems can execute actions, reliability becomes more important than simple generation quality.

A wrong answer is inconvenient.

A wrong action can:

Future agent systems require:

Reliability=f(Reasoning,Verification,Permissions,Monitoring,Recovery)Reliability = f( Reasoning, Verification, Permissions, Monitoring, Recovery )

The goal is not only smarter agents.

The goal is:

bounded, observable, reversible, and trustworthy agents.


10. The Next Computing Paradigm

The trajectory of AI development increasingly becomes:

Large Language Models

        ↓

Reasoning Models

        ↓

Tool-Using Models

        ↓

AI Agents

        ↓

Persistent Agents

        ↓

Multi-Agent Systems

        ↓

AI + Science + Robotics

The next generation of AI will not be defined only by larger models.

It will depend on whether AI systems can:

The frontier is moving from:

models that answer questions

toward:

systems that accomplish objectives.


Conclusion

DeepSeek’s DSec highlights an important transition in AI infrastructure.

As models become agents, computation is no longer limited to neural network inference.

AI systems need a world in which they can safely operate.

That world requires:

The future of AI may therefore depend not only on better models, but also on better environments.

DSec represents an early step toward a new infrastructure layer:

the operating environment for autonomous intelligence.


Edit page
Share this post:

Previous Post
Dream-RSI: Recursive Self-Improvement through Evolving Worlds