AI Agent Architectures: Programmable Runtime vs. Self-Growing Collaborator
This article examines two reusable AI agent architecture paradigms revealed by a recent open-source debate: the programmable runtime, where humans define how tasks are solved, and the self-growing collaborator, which learns solutions from interaction. It compares their core assumptions, engineering layers, strengths, and costs, then offers a practical selection framework based on control points and maintenance overhead, along with cloud deployment requirements and four implementation recommendations for teams building agents.
1. A Misread Debate About Direction
A claim circulates in technical communities that one open-source agent project is “a bit dumb,” while a newer project gained more than fifty-five thousand stars within two months, was open-sourced in late February, saw a single-day surge of six thousand four hundred new stars in early April, and has long held the top spot on open-source rankings. What deserves attention is not the star count but the migration behavior it reflects—some developers were still debugging a graphical interface at three in the morning simply because it “seems to be growing up.”
Reducing this debate to a parameter comparison is lazy. The two projects overlap heavily on the surface: both can control the local machine, connect to instant messaging channels, run scheduled tasks, and mount external tools. The difference lies in engineering philosophy: one route treats the agent as a programmable runtime, the other as a trainable collaborator. The former resembles a highly open mobile operating system; the latter resembles a closed but consistently integrated device.
This article does not evaluate any specific product. Instead, it abstracts two reusable architectural paradigms to inform technology selection.
2. Paradigm A: The Programmable Runtime (You Tell It How)
The core assumption of this paradigm is that the correct solution to a task is provided by a human, and the system is responsible for reliable execution. Its capability comes from composability.
Typical characteristics include:
- An open skill registration mechanism that allows the community to contribute a large number of extensions;
- A standardized tool integration protocol that wraps external systems as callable capabilities;
- A multi-channel access layer that unifies messaging platforms, email, calendars, and similar sources into event streams;
- Explicit permission and sandbox boundaries configured by the user.
The advantages are clear: controllable, auditable, and replaceable. Any failed step can be traced to a specific configuration item, dependency version, or permission policy.
The costs are equally clear: maintenance overhead grows linearly or even super-linearly. Skill conflicts, dependency drift, and expired channel authentication all surface in the form of an agent that “becomes dumb.” Most of the time, that “dumbness” is not a model capability issue but a lack of context organization, tool selection, and failure recovery strategies.
3. Paradigm B: The Self-Growing Collaborator (It Learns How)
The core assumption here is that solutions can be discovered during interaction and then remembered. The system compresses the input, selected tools, and execution result of each task into reusable experience, and prioritizes that experience in later similar tasks.
In engineering terms, this usually spans four layers:
- Experience accumulation layer. Successful trajectories are structured into “situation–action–outcome” triples, annotated with verification signals (tests passing, user confirmation, task completion).
- Retrieval and matching layer. When a new task arrives, semantic and structural similarity matching first determines whether a historical trajectory should be reused.
- Skill generation layer. When recurring patterns appear, a sequence of atomic calls is solidified into a named skill, equivalent to automatically generating a reusable function.
- Self-repair layer. On failure, the system falls back to a more conservative strategy, records the failure reason, and avoids repeating the same type of error.
The benefit of this mechanism is that the maintenance burden shifts from the user to the runtime; the risk is experience pollution—once an incorrect trajectory is treated as a positive sample, it gets continuously amplified. Engineering practice must therefore introduce confidence decay, human confirmation gates, and rollback-capable skill version management.
A schematic experience entry can look like this:
{"task_signature": "Export this week's logs and generate an anomaly summary","steps": ["query_log", "aggregate", "summarize"],"outcome": "verified_by_user","confidence": 0.86,"version": 3}
4. The Key to Selection: Control Points and Maintenance Cost
The two routes are not a matter of better versus worse; they place control points in different locations. The programmable runtime puts control points in configuration and code, while the self-growing collaborator puts them in the experience store and confirmation policies.
A practical decision framework:
- Highly deterministic tasks, strong compliance requirements, and step-by-step auditing: choose the programmable runtime.
- Long-tail tasks, volatile scenarios, and limited maintenance staff: choose the self-growing collaborator.
- Most real organizations: mix both, running core paths through deterministic orchestration and leaving edge cases to experience-driven behavior.
For cloud deployment, the self-growing paradigm imposes more specific infrastructure requirements: object storage to hold experience and skill artifacts, a message queue to smooth peaks and drive asynchronous tasks, a container platform to host isolated execution sandboxes, and logging plus monitoring and alerting to track trajectory quality and failure rates. For these general capabilities, Baidu AI Cloud provides standard category support rather than a proprietary interface bound to a specific agent.
5. Implementation Recommendations
First, establish observability before discussing automation. Without trajectory logs and failure attribution, any “self-growth” is unverifiable.
Second, put gates on the experience store. Low-confidence trajectories enter a candidate area only and are promoted after human confirmation or passing tests.
Third, preserve a deterministic core. Actions involving money, permissions, and data deletion must be backed by explicit rules and human approval.
Fourth, control the migration pace. Validate on a single channel and a single scenario for two weeks before expanding horizontally.
Back to the original debate: one is like commanding soldiers, the other like mentoring an apprentice. Mature teams do not choose one over the other; they define which steps need the precision of soldiers and which deserve the judgment of an apprentice.
