Open-Source Execution-型 AI Agents: Architecture and Enterprise Adoption
This article breaks down why execution-oriented AI agents are becoming a focus in the open-source community, and how their technical paradigm has shifted from text generation to closed-loop task execution. It explains a common four-layer architecture—gateway, agent, skill, and memory—along with key design points such as separating planning from execution, declarative skill descriptions, and the distinction between context and knowledge. It also provides a governance checklist and a phased adoption roadmap for enterprises, covering least privilege, auditability, sandboxing, and observability. Readers will gain a practical understanding of how to evaluate and build reliable agent systems around task completion, rollback, and auditability.
1. From “Talking” to “Delivering”: Why Execution-Oriented Agents Are in Focus
Recently, a category of open-source projects in the execution-oriented AI agent space has drawn strong attention from the developer community: in-person technical meetups are drawing long queues, star counts on code hosting platforms are climbing rapidly in a short period, and the industry has begun openly discussing the idea of “AI that can actually get work done.” Behind the buzz, the question worth studying is not the traffic itself, but whether the technical paradigm has genuinely changed.
Looking back at the evolution of the past decade, it can be roughly divided into three stages:
- Stage 1: Generative conversation matures. Large-scale pre-trained models gave machines fluent natural language understanding and generation. However, output stopped at text and could not directly change the state of external systems.
- Stage 2: Application forms explode, but toolchains are fragmented. Applications such as intelligent coding tools, knowledge Q&A, and document processing appeared in large numbers. Yet each scenario required separate API integration, separate authentication adaptation, and separate data structure handling, so integration costs grew linearly with the number of scenarios.
- Stage 3: The execution loop becomes the new paradigm. Agents chain together “understand intent → plan steps → invoke capabilities → verify results” into a closed loop, turning AI from a content producer into a process executor.
The technical implication of this leap is clear: the standard for evaluating an agent system has shifted from “how human-like the answer sounds” to “task completion rate, rollback capability, and auditability.” For this reason, the importance of architecture design has been amplified once again.
2. Four-Layer Architecture: A General Design Skeleton for Execution-Oriented Agents
A mainstream industry practice is to split the system into four layers, with each layer solving a clear class of bottleneck.
| Architecture Layer | Core Responsibility | Key Design Points | Pain Point Addressed |
|---|---|---|---|
| Gateway Layer | Unified entry, routing, authentication | Multi-protocol adaptation, rate limiting and circuit breaking | Each application integrates separately, leading to high integration costs |
| Agent Layer | Intent understanding, task orchestration, decision-making | Separation of planner and executor | Can only generate text, cannot operate systems |
| Skill Layer | Atomic capability encapsulation | Standardized descriptions, hot-pluggable | Functionality coupled with implementation, poor reuse |
| Memory Layer | Context and state persistence | Short-term context + long-term knowledge | No continuity across sessions, repeated exploration |
2.1 Gateway Layer: Turning “N×M” Integration into “N+M”
The value of a gateway lies in decoupling. Without a unified entry point, with N models on one side and M business systems on the other, the adaptation workload is multiplicative. After introducing a gateway, each side only needs to integrate once. In engineering practice, three aspects usually matter: protocol adaptation (synchronous calls, long-lived connection push, and streaming responses coexisting), permission models (role- and attribute-based access control), and traffic governance (quotas, circuit breaking, and degradation).
A sample policy configuration can be written as follows. The focus is on expressing the binding relationship among “capability—permission—quota”:
gateway:routes:- name: doc-retrievalprotocol: [http, stream]auth: { mode: rbac+abac, roles: [analyst, ops] }quota: { qps: 50, burst: 100 }fallback: cached_result
2.2 Agent Layer: Planning and Execution Must Be Separated
Putting “thinking” and “doing” in the same prompt is the root cause of instability in most prototype systems. A more reliable structure is a three-part inner loop: the planner outputs structured steps (a directed acyclic graph or a state machine), the executor invokes skills step by step, and the verifier makes assertions about the results. When any step fails, you only need to retry or reroute from that node, rather than rerunning the entire flow.
{"plan": [{"id": "s1", "skill": "search_docs", "args": {"q": "SLA terms"}},{"id": "s2", "skill": "summarize", "args": {"src": "$s1"}},{"id": "s3", "skill": "write_report", "args": {"text": "$s2"}}],"on_error": "retry_then_branch"}
2.3 Skill Layer: Trading Declarative Descriptions for Composability
Skills should be treated as independently deployed atomic capabilities, described through unified metadata covering input/output schemas, side-effect levels, and timeout budgets. The side-effect level is especially critical: read-only skills can be retried automatically, while skills with write or delete capabilities must go through manual confirmation or dual review. Once skills are decoupled from their implementation, the same orchestration logic can swap out the underlying implementation without changing the flow.
2.4 Memory Layer: Distinguishing “Context” from “Knowledge”
Short-term memory carries the working set of the current task, while long-term memory carries reusable conclusions and preferences. In practice, it is recommended to write long-term memory to external storage with source and timestamp attached, and to perform reranking and conflict resolution during retrieval to avoid stale information polluting decisions. Memory writes should be explicit and deletable to meet compliance requirements.
3. Enterprise Adoption: Risk Checklist and Phased Roadmap
The biggest change brought by execution-oriented agents is the introduction of real side effects, so governance must be built in step with functionality:
- Least privilege. Grant skills permissions on demand, deny by default; route high-risk operations through an approval flow.
- Full-chain auditability. Record the plan, inputs, returns, and operator; centralize logs into a unified logging service and set retention periods.
- Sandboxing and isolation. Run code execution and file processing in isolated environments on a container platform, and restrict outbound network access.
- Observability and cost control. Use monitoring and alerting to cover success rate, latency, and call volume, and set budget thresholds.
For deployment pace, a four-step approach is recommended: first validate task completion rate in read-only scenarios; then introduce low-risk writes while keeping manual confirmation; then connect memory and multi-skill orchestration; finally expand to reuse across multiple teams, building an internal skill marketplace and standards. At the infrastructure level, object storage can hold artifacts, message queues can provide asynchronous decoupling, and container platforms can offer elasticity and isolation—all common optional components.
4. Conclusion
The significance of open-source execution-oriented agents lies not in the popularity of any particular project, but in the fact that they shift the focus of AI engineering from model capability to system capability: standardized interfaces, orchestrable processes, reusable capabilities, continuous state, and auditable behavior. For enterprises, the real moat is the high-quality skills and governance standards accumulated around their own business, rather than chasing any specific project. Baidu AI Cloud’s capabilities in general infrastructure areas such as container platforms, logging services, and monitoring and alerting can serve as one of the underlying options for hosting this kind of architecture, but technology selection should still be based on scenario validation results.
