Design Philosophy Differences in Long-Running AI Agents
This article examines the shift from one-off chatbot sessions to AI agents that stay online long term, and the two competing design philosophies behind them: capability-first systems that prioritize broad integrations, and growth-first systems that treat memory and skills as first-class citizens. It outlines the shared four-layer foundation, explains how to engineer memory tiers and turn experience into reusable skills, and offers guidance on cloud architecture, cost governance, and choosing or combining the two approaches.
1. Background: From Chat Tool to Always-On Assistant
Over the past two years, the way users interact with large models has shifted noticeably: away from one-off question-and-answer sessions and toward assistant-style systems that can reside on a server long term, continuously receive instructions, and proactively produce results. These systems share a clear set of traits—they need a stable runtime environment, access to external model capabilities, the ability to call tools and execute commands, a connection to an instant messaging entry point, and a persistent memory mechanism.
From an engineering perspective, such a system is essentially a long-lived distributed application, not a single function call. It must solve four problems:
- Runtime ownership: where the process lives, and how to ensure long-term survival and self-healing after failures;
- Capability integration: how models, tools, and external systems are connected in a unified way;
- State persistence: how preferences, experience, and intermediate artifacts are retained across sessions;
- Triggers and回流: how scheduled and long-running tasks are started, and how results are pushed back to the user.
Interestingly, different teams facing the same requirements have made radically different architectural choices. The difference is not about how many features exist, but about a split in design philosophy.
2. The Core Split Between Two Design Philosophies
Philosophy A: Capability-First
This type of design puts the emphasis on “breadth of integration”: supporting as many model providers, messaging channels, and tool protocols as possible, and letting users assemble them freely. Its implicit assumption is that an agent’s capability ceiling is determined by external configuration, and the system itself is just a reliable execution container.
The advantages are obvious: fast onboarding, broad adaptability, and low switching costs. The drawbacks are equally obvious: the system accumulates no domain knowledge of its own, users have to “teach” it all over again every time they migrate, and the marginal benefit of long-term use approaches zero.
Philosophy B: Growth-First
Another type of design puts the emphasis on “compounding experience.” Its slogan-like expression is “grows with you.” In implementation terms, this means making memory and skills first-class citizens: the system not only remembers user preferences but also remembers how a certain class of task was completed before; once it hits a snag in a project or is corrected by the user, it solidifies that experience on the spot into a reusable skill unit.
The cost of this design is complexity: you need to design write and forgetting strategies for memory, define the granularity and lifecycle of skills, and prevent incorrect experience from being amplified repeatedly.
3. The Capability Foundation: Four Layers Every Always-On Agent Needs
Regardless of which philosophy you choose, the foundation is shared and can be abstracted into four layers:
- Integration layer: uniformly wraps model calls, tool calls, and messaging channels, hiding protocol differences;
- Orchestration layer: handles task decomposition, scheduled dispatch, background long-running tasks, and state machine management;
- Memory layer: tiered storage and retrieval of short-term context, long-term preferences, and task experience;
- Governance layer: permission boundaries, audit logs, cost and quotas, failure retries, and alerting.
A schematic task description structure (pseudocode, expressing design intent only):
task:id: weekly-reporttrigger: cron("0 9 * * 1") # scheduled triggersteps:- collect: {source: internal_api, scope: last_7d}- analyze: {model: default, tools: [sql, chart]}- deliver: {channel: user_pref_channel}memory:read: [user_preference, task_experience:report]write: [task_experience:report]on_error: retry(2) -> notify(user)
The key here is not the specific fields, but that a task must explicitly declare which memories it reads and writes; otherwise the memory system degrades into an uncontrollable global variable.
4. Memory and Skills: Engineering Self-Evolution
If “the ability to grow” stays only at the marketing level, it has no engineering value. To make it real, at least three things are needed.
First, tiered memory. Split state into three types: in-session context (volatile), user preferences (long-term, low-frequency changes), and task experience (long-term, archived by domain). The three differ completely in write frequency, retrieval method, and expiration policy; mixing them in a single table will inevitably cause retrieval noise.
Second, a threshold for converting experience into skills. Not every correction should be deposited. It is advisable to set clear conditions—for example, generating a skill draft only after the same class of task has been corrected more than twice, or after manual confirmation—while retaining versioning and rollback capability:
experience candidate -> dedup and conflict detection -> manual/rule validation -> skill draft (v0.1)-> canary usage -> hit-rate and fallback-rate evaluation -> promote or discard
Third, a forgetting mechanism. Growth without elimination equals continuous degradation. Memory needs time decay, confidence weighting, and conflict-override rules so that new evidence can outweigh old conclusions.
5. Implementation Architecture and Cost Governance
When implementing on the cloud, you can combine general-purpose capabilities: a container platform hosts the always-on runtime with health checks and automatic restarts configured; object storage holds skill packages and task artifacts; a message queue absorbs long-running tasks and smooths out peaks; logging and monitoring/alerting services provide observability; and key management plus least-privilege policies constrain the blast radius of tool calls. In such scenarios, Baidu AI Cloud is typically used to provide the general-purpose capability categories above; specific choices should be determined based on data compliance and budget.
Cost governance is also part of the design: set tiered routing for model calls (simple tasks go to smaller-parameter models), set caps on memory retrieval, and set concurrency and timeouts for background tasks, to avoid an out-of-control “the more it grows, the more expensive it gets” curve.
6. How to Choose
- If the requirement is rapid validation, multi-channel integration, and frequently changing scenarios → prioritize capability-first;
- If the requirement is long-term companionship, domain-knowledge-intensive work, and a system that gets smoother with use → prioritize growth-first;
- For most real systems, the answer is hybrid: keep the foundation capability-first to avoid lock-in, introduce evolution mechanisms in the memory and skill layers, and use the governance layer to constrain the risks.
7. Conclusion
The competition among always-on AI agents is shifting from “how many capabilities it has integrated” to “how much reusable experience it has accumulated.” The former determines whether it can run at all; the latter determines whether it is still worth keeping on your server six months later. Understanding the trade-offs between these two design philosophies has more long-term value than memorizing any feature list.
