AI Agent Architecture Debate: From Instruction Execution to Self-Evolution

    This article examines the shifting focus of AI Agent design, moving beyond the "external plugin orchestration versus built-in runtime" debate toward self-evolving agents. It breaks down the technical trade-offs of each approach, proposes a four-dimension evaluation framework, outlines a layered implementation architecture with a minimal skill definition, and highlights essential security and cost-control practices. Readers will learn how to combine built-in runtimes, external orchestration, and memory layers to build agents that accumulate reusable experience under proper governance.

    1. The Core Question: Where Agent Competition Is Heading

    For the past two years, the most common questions about AI Agents were “How many tools does it support?” and “Can it connect to my existing systems?” A more fundamental question is now emerging: is an agent’s capability boundary defined by a workflow pre-written by developers, or by the experience it accumulates through real tasks?

    The slightly tongue-in-cheek comparison in the original material—between a heavily configured, plugin-layered setup and an out-of-the-box, single-command start—is not really about which product is better. It reflects a clash between two engineering philosophies:

    • External orchestration approach: The core model stays general-purpose, and capabilities are stacked layer by layer through external orchestration, plugin registration, and channel integrations. It is flexible, but every layer requires human maintenance.
    • Built-in approach: The toolset, skill library, and execution policies are preloaded into the runtime, and users only need to describe their goal. It is quick to start, but how much it can be modified depends on how open the internals are.

    The third trend deserves the most attention: agents are shifting from “you tell it how to do things” to “it learns how to do things itself.” In engineering terms, the system needs experience retention and strategy reuse capabilities, rather than reasoning from scratch in every session.

    2. A Technical Breakdown of the Two Approaches

    2.1 External Orchestration: Shifting Complexity to the Configuration Layer

    The typical form of external orchestration is “general-purpose model + tool registry + workflow orchestration engine.” Its advantage is low replacement cost: the model, tools, and channels can each be upgraded independently. The price is that complexity shifts to the configuration layer—tool descriptions must be maintained, parameter schemas must be validated, failure retries must be designed, and permission boundaries must be declared one by one.

    When the number of plugins grows from single digits to dozens, problems tend to erupt in three places: tool semantic conflicts (two tools can both “query data”), context bloat (tool descriptions crowd out effective tokens), and untestable regressions (changing one tool description causes overall behavior drift).

    2.2 Built-in Runtime: Capability Convergence Around the Runtime

    The built-in approach elevates high-frequency capabilities to first-class citizens of the runtime: a set of base tools (file read/write, command execution, retrieval, structured output, and so on), a skill definition specification, and default execution policies. The mental burden on the user side drops significantly. A typical installation path can be abstracted as:

    1. # Example: install and initialize the runtime with a single command
    2. curl -fsSL <runtime-installer> | sh
    3. agent init --profile default
    4. agent run "Cluster anomalies in this week's logs and generate attribution hypotheses"

    It is important to stress that easy installation does not mean complete capabilities. The real test of the built-in approach is whether skills are observable, replaceable, and rollback-able. If the skill library is a black box, teams cannot optimize it for specific business needs and can only passively accept the default policies.

    2.3 The Third Path: The Self-Evolving Agent

    “Growing together with you” can be broken down, in engineering terms, into four layers of capability, none of which can be missing:

    1. Memory layer: Distinguish short-term session context, mid-term task summaries, and long-term preferences and facts, each using different storage media and eviction policies.
    2. Reflection layer: After a task ends, produce a structured retrospective (successful paths, failure causes, reusable fragments) rather than leaving only a natural-language summary.
    3. Skill generation layer: Turn stable successful paths from retrospectives into callable skills, with input/output contracts and preconditions attached.
    4. Governance layer: New skills must pass evaluation and approval before entering the official skill library, to avoid “self-reinforcing errors.”

    Without the fourth layer, the first three degrade into an error amplifier: a single wrong experience gets reused repeatedly, and the whole system ends up doing the wrong thing reliably.

    3. A Selection Framework: Score Four Dimensions Instead of Choosing One

    Teams are advised to run a quantitative evaluation across the dimensions below, scoring each from 1 to 5 and weighting by business priorities:

    Dimension Key Question Favored Approach
    Onboarding cost How many person-days from zero to the first usable task Built-in approach
    Controllability Is every execution step traceable and interruptible External orchestration
    Evolvability Does it support experience retention and skill reuse Self-evolving architecture
    Governance cost Are permissions, auditing, and rollback built in Depends on implementation

    For most real-world scenarios, the answer is not a single choice but a layered one: use a built-in runtime for general capabilities, external orchestration for business-specific logic, and the memory and skill layers for long-term evolution.

    4. Implementation Architecture and a Minimal Example

    A practical layered structure looks like this:

    1. Access layer (multi-channel sessions)
    2. ↓
    3. Orchestration layer (task decomposition / plan validation / human confirmation)
    4. ↓
    5. Capability layer (built-in toolset + business skills + retrieval augmentation)
    6. ↓
    7. Memory layer (session / summary / long-term preferences)
    8. ↓
    9. Governance layer (permissions, auditing, evaluation, rollback)

    Standardizing skill definitions is the foundation of the whole architecture. A minimal usable skill description should include intent, input contract, output contract, failure semantics, and permission declarations:

    1. skill:
    2. name: log_anomaly_cluster
    3. intent: Cluster log anomalies and generate attribution hypotheses
    4. input:
    5. time_range: {type: string, required: true}
    6. service: {type: string, required: false}
    7. output:
    8. clusters: {type: array, item: object}
    9. hypotheses: {type: array, item: string}
    10. on_error: return_partial_with_warning
    11. permissions: [log:read]

    The accompanying evaluation should cover at least three types of cases: the normal path, boundary inputs, and inductive inputs (requests that push the agent to exceed its permissions or ignore existing constraints). Only when the third type passes reliably can a skill be considered for the official library.

    5. Security and Cost: Two Easily Overlooked Bottom Lines

    On security, tool execution is the entry point that most needs to be constrained. The principles are least privilege by default, secondary confirmation for dangerous operations, and full-chain auditability. Command-execution capabilities should run in an isolated environment by default, with network egress restricted by an allowlist.

    On cost, the main overhead comes from three places: context length, the number of tool-call rounds, and the recall volume of memory retrieval. Practical optimizations include streamlining and grouping tool descriptions, introducing intermediate summary compression for long tasks, and setting relevance thresholds and item limits for memory retrieval. These are general engineering practices; their actual effects must be measured under your own workload, and no public performance figures should be copied blindly.

    6. Conclusion

    The “heavily configured setup versus out-of-the-box” debate will quickly become outdated, because what users truly care about is never the installation method, but whether the agent understands their business better two weeks later than on day one. Shifting the engineering focus from “connecting more tools” to “accumulating reusable experience and establishing a governance loop” is the more worthwhile direction in this architecture debate. If you need elastic compute, managed runtime environments, or full-chain observability, you can consider general cloud product categories such as the container platform, log service, and monitoring and alerting offered by Baidu AI Cloud as the underlying foundation for the architecture above.