AI Agent Architecture: From Configuration-Driven to Experience-Driven Autonomy
This article examines the debate between configuration-driven and experience-driven AI Agent architectures. It explains the core differences between the two paradigms, why experience-driven agents are becoming practical now, and how to build an agent that improves over time. You will find implementation guidance on decoupling the execution core, structuring memory, enforcing safety boundaries, and running evaluations, along with a selection framework based on your actual constraints.
Introduction: A Misread Debate Over Technical Direction
The AI Agent space has recently split into two camps. One side favors highly open systems with rich plugin ecosystems and flexible channel integrations—the “geek” approach. The other favors out-of-the-box solutions that can self-repair and accumulate experience—the “growth” approach. Community discussions about which one is better have become intense, sometimes turning into emotional complaints that a given solution has “gotten dumber.”
But comparing feature lists misses the point. The real divide is not the number of tools or integrations. It is a clash of two technical philosophies: configuration-driven and experience-driven. The former assumes the user knows the correct workflow and the Agent only executes it. The latter assumes the correct workflow must be discovered, validated, and retained by the Agent itself.
This article does not enumerate every parameter. Instead, it abstracts the debate into a reusable architecture problem and offers practical engineering recommendations.
1. The Fundamental Difference Between the Two Paradigms
Configuration-Driven: Pushing Complexity to the User
Configuration-driven systems assemble capabilities externally. The system provides a stable execution core and open interfaces; everything else—tools, channels, skills, permissions—is put together by the user.
The advantages are clear:
- High controllability: Every step is observable, replaceable, and rollback-able.
- High ecosystem ceiling: Open interfaces let the community extend capabilities without limits.
- Suited to deterministic workflows: In fixed business processes, you configure once and reuse long-term.
The cost is equally clear: complexity shifts to the user. After installation, you still configure plugins, channels, dependencies, and versions. When something breaks, you must manually determine whether the root cause is a configuration error, a version conflict, or a missing dependency. As the number of assembled components grows, maintenance cost rises non-linearly.
Experience-Driven: Pulling Complexity Into the System
Experience-driven systems start from a different assumption: users often do not know the optimal workflow and may initially describe only a vague goal. The system must complete a loop of “attempt—fail—correct—remember” on its own.
The key is not a vague claim of being “smarter,” but three concrete mechanisms:
- Attributable failures: After a failure, the system can locate the specific step rather than throwing an unstructured error.
- Persistent experience: Corrections are written to a searchable experience store and reused directly in similar situations.
- Evolving strategies: Skills are not a static list; they adjust dynamically based on usage frequency and success rate.
A rough illustration of the logic (pseudocode, expressing the idea only):
def run(goal, context):plan = retrieve_similar_experience(goal) or synthesize_plan(goal)result = execute(plan, context)if not result.success:diagnosis = attribute_failure(result.trace)plan = repair(plan, diagnosis)result = execute(plan, context)store_experience(goal, plan, diagnosis, result)return result
This is fundamentally different from adding a few more if-else branches: the experience store is persistent across sessions, and repair actions change the initial plan for the next run rather than merely retrying once.
2. Why the Growth Approach Is Feasible Now
This paradigm shift is not an aesthetic preference. It results from three preconditions maturing at the same time.
First, tool use has been standardized. In the past, each platform defined its own function signatures, making migration costly. Today, structured tool descriptions and unified calling protocols are becoming common ground, allowing Agents to integrate new capabilities without changing the core.
Second, long context and retrieval give experience a medium. Experience is essentially searchable historical traces. When the combination of context windows and vector retrieval is reliable enough, “remembering how it was fixed last time” turns from a slogan into an engineering fact.
Third, the cost of switching models has dropped significantly. Early solutions were often deeply tied to a single model, forcing a full replacement when results were poor. Now, unified gateway routing across multiple model services allows task-based distribution: reasoning-heavy tasks go to strong reasoning models, high-frequency simple tasks go to low-cost models, and local small models handle privacy-sensitive steps. This makes strategy evolution cost-feasible.
3. Engineering Implementation: Building an Agent That Grows
If you want to build one yourself, advance layer by layer rather than piling on tools from the start.
Decouple the Execution Core From the Capability Layer
The core handles only three things: planning, scheduling, and state management. Tools register with a unified description and are discovered dynamically at runtime.
{"name": "query_metric","description": "Query service metrics by time range","input_schema": {"type": "object","properties": {"service": {"type": "string"},"range": {"type": "string"}},"required": ["service", "range"]}}
The value of a unified description is that adding capabilities requires no core changes, leaving room for later skill evolution.
Three-Layer Memory Structure
- Session memory: Intermediate state of the current task; short-term and volatile.
- Experience memory: Structured “situation—action—result” triples; long-term, persistent, and searchable.
- Semantic memory: Domain knowledge and preference constraints; relatively stable.
Experience memory is the core of growth. When writing to it, always include failure diagnoses; otherwise, the experience store degrades into a pile of logs.
Observability and Safety Boundaries
Autonomous execution requires constraints; otherwise, “self-repair” becomes “self-destruction”:
- High-risk actions (deletion, transfers, external publishing) require mandatory human confirmation.
- Full-chain tracing ensures any automatic correction is traceable and rollback-able.
- Run in containers or sandboxes, granting file system and network egress under least privilege.
- Connect key metrics to logging services and monitoring alerts, setting thresholds for success rate, average repair rounds, and cost per task.
Evaluation First
The biggest risk for a growth system is “seeming to improve.” You must maintain a fixed evaluation set and run a regression on every strategy adjustment, watching whether the success rate and cost curves improve in the same direction.
4. Selection Guidance: Ask About Constraints, Not Which Is Stronger
| Constraint | More Suitable Approach |
|---|---|
| Deterministic workflow with strict compliance auditing | Configuration-driven |
| Vague goals requiring repeated trial and error | Experience-driven |
| Team with strong operations capability | Configuration-driven |
| Want low barrier and quick results | Experience-driven |
| Data cannot leave the internal network | Either, both require local models and private deployment |
In practice, a hybrid architecture is more common: the core adopts a growth design while retaining open interfaces to integrate existing ecosystems; deterministic sub-processes are fixed by configuration, and exploratory tasks are handed to experience evolution.
5. Common Pitfalls
- Treating skill count as capability. More tools mean a larger choice space and a higher probability of wrong calls. Skills should converge dynamically based on success rate.
- Retrying without attribution. Retrying without diagnosis only consumes budget and brings no growth.
- Ignoring the cost curve. Autonomous exploration is inherently more expensive; you must set limits on rounds and budget.
- Underestimating evaluation cost. Without a regression baseline, you cannot distinguish “genuinely stronger” from “random fluctuation.”
Conclusion
Moving from “you tell it how to do it” to “it learns how to do it itself” is not a feature upgrade but a shift in the architectural focus of Agent systems: from interface assembly to memory, attribution, and evaluation. Star growth is only an external signal; what truly determines long-term value is whether this loop holds. For developers, the most worthwhile investment now is not installing another plugin, but solidifying the two foundations of experience retention and observability—a deployment prerequisite repeatedly emphasized in Baidu AI Cloud’s practice with intelligent agents.
