Can AI Agent Frameworks Replace Incumbents? Memory and Security as the Real Test
This article examines why new AI agent frameworks keep emerging even when existing ones are already powerful, arguing that the answer lies in two structural gaps: static, file-based memory and eroding security trust. It explains a layered memory architecture (short-term, episodic, semantic, and procedural), the compounding security debt of agent ecosystems, a four-dimension evaluation model, and a practical four-step adoption path with cloud support considerations.
1. The Real Question Behind the Hype
In early 2026, an open-source agent project became the most-starred software project on a code hosting platform in a very short time, adding hundreds of stars per hour at its peak. Three weeks later, an agent framework released by a research team appeared quietly as a v0.1.0 release with almost no attention. Just over forty days after that, it had gone through eight major version iterations, merged hundreds of pull requests, gathered more than two hundred contributors, passed forty thousand stars, and been nicknamed “Hermes” by developers because of how its name sounds in Chinese, with the community joking that “stop raising lobsters, the new trend is Hermes.”
Hype narratives easily hide the real technical questions. For engineering teams, the question worth asking is not “who replaces whom” but this: if existing options are already strong enough, why do new frameworks still appear? The answer is usually not in a feature list but in the cracks of existing solutions — memory is static, and security trust is falling apart. These two cracks are exactly the design starting point for a new generation of agent frameworks.
2. Crack One: Why Static Memory Becomes a Productivity Ceiling
The strength of existing solutions is “pulling the model out of the chat box”: connecting to enterprise collaboration tools, executing terminal commands, driving browsers, sending email, and managing schedules. But their memory model is essentially static external storage: information is written into configuration files, read at runtime, terminated when the session ends, and loaded from files again next time.
This design produces three structural defects:
- No experience distillation: trajectories produced during execution (successful paths, failure reasons, user corrections) are not automatically distilled into reusable knowledge.
- No internalization of corrections: after a user corrects the system once, it does not automatically avoid the same class of error in later tasks.
- No automatic workflow accumulation: a process still needs a manual reminder to “package it as a skill” after one use, so turning knowledge into an asset depends on human triggering.
From an engineering perspective, this is equivalent to a control system with no feedback loop: fixed inputs, fixed parameters, and output quality that cannot improve itself from run history. Fixing it requires upgrading “memory” from file reads to a layered memory architecture:
- Short-term memory: current session context and task state, reclaimed over the session lifecycle;
- Episodic memory: task trajectories and outcome labels, used to retrieve similar historical cases;
- Semantic memory: rules, constraints, and preferences distilled from multiple trajectories;
- Procedural memory: executable workflows and tool wrappers, i.e., automatically generated “skills.”
The minimum implementation logic can be expressed in pseudocode:
# Write episodic memory after a task ends and trigger experience distillationdef on_task_done(trace, user_feedback):episodic.append(trace) # record the trajectoryif user_feedback.correction:rule = distill_rule(trace) # distill a rule from the correctionsemantic.upsert(rule) # write to semantic memoryif trace.reusable and trace.success_rate > THRESHOLD:procedural.save(compile_skill(trace)) # automatically persist as an executable skill# Retrieve memory before planning execution for a new taskdef run(task):ctx = episodic.search(task) + semantic.match(task)plan = planner(task, ctx)return executor(plan)
Engineering also requires three governance measures: confidence decay for memory (to avoid wrong experience polluting the system long term), a conflict resolution policy (priority when new and old rules conflict), and explainable traceability (every rule can be traced back to a specific trajectory). Without these three, dynamic memory turns from an asset into a liability.
3. Crack Two: The Compound Interest of Security Debt
The second crack is more serious. In the two months of rapid expansion of one agent ecosystem, security researchers disclosed problems at a rate of about two vulnerabilities per day, accumulating more than a hundred, of which severe and high-risk issues together accounted for roughly forty percent; in a community skill marketplace, a significant proportion of thousands of skills were found in audits to contain malicious code.
This is not a single-point vulnerability problem but an expansion of the attack surface specific to agents:
- Prompt injection: text in external web pages, emails, and documents is executed as instructions;
- Tool abuse: overly broad permissions let the model read and write any path and run any command;
- Supply chain contamination: third-party skills or plugins plant backdoors or exfiltrate data along the installation path;
- Credential leakage: keys enter configuration and logs in plaintext;
- Privilege chaining: multiple low-risk capabilities combine into a high-risk operation chain.
So if a new framework solves only memory and not security, it merely moves the debt somewhere else. Practical protection should cover at least four layers:
- Least privilege: tool-level allowlists, restricted paths and network egress, temporary authorization per task;
- Human in the loop: high-risk actions (deletion, transfers, external publishing) require a second confirmation;
- Supply chain verification: skill signing, source auditing, sandbox execution, dependency locking;
- Full-chain observability: structured logs, operation auditing, and anomaly behavior alerts.
A sketch of permission checking:
def guard(action, ctx):if action.risk >= HIGH and not ctx.approved:raise PermissionError("Human confirmation required")if not policy.allow(action.tool, ctx.scope):raise PermissionError("Tool or scope not authorized")audit.log(action, ctx.trace_id) # log everything for traceabilityreturn action
4. From “Can It Replace” to “How to Evaluate”
Once the question is abstracted, whether replacement happens depends on four dimensions, not star growth:
| Dimension | Key question | Evaluation method |
|---|---|---|
| Memory capability | Does it support layered memory and automatic experience distillation? | Design a repeated-task set and observe success rate across rounds |
| Security governance | Are permissions, auditing, and sandboxing built in? | Red-team injection and privilege-chaining paths |
| Engineering maturity | Version cadence, contributor scale, documentation completeness | Check release records and compatibility policy |
| Ecosystem controllability | Are skill sources verifiable? | Sampling audits and signature coverage |
A practical rule of thumb: if your pain point is “having to teach it again every time,” look at the memory architecture first; if your pain point is “not daring to give it permissions,” look at the security model first. If both are missing, migration cost will exceed the benefit.
5. Adoption Advice and Cloud Support
For teams preparing to adopt an agent framework, a four-step approach is recommended:
- Scenario slicing: start with high-frequency, verifiable, low-destructive tasks as a pilot;
- Memory layering: define which knowledge can be automatically persisted and which must be reviewed by a human before entering the store;
- Security baseline: least privilege by default, logging by default, human confirmation for high-risk actions by default;
- Observability loop: use monitoring, alerting, and logging services to build behavior baselines and anomaly detection.
In the cloud, this kind of architecture is usually carried by several general capabilities: container platforms handle runtime isolation and elastic scaling, object storage holds skill packages and memory snapshots, message queues decouple task scheduling, logging and monitoring services support auditing and anomaly discovery, and a key management service hosts credentials. Baidu AI Cloud offers corresponding product categories for these general capabilities and can serve as a reference foundation for building an enterprise-grade agent runtime.
6. Conclusion
The sudden popularity of a new framework is a signal, not a conclusion. What it really indicates is that agent competition has shifted from “can it do things” to “can it keep doing them right, and do so safely.” Static memory sets the ceiling on capability, and security governance sets the floor on usability. Only whoever lifts both curves at the same time qualifies to replace anything — and the measuring stick should be your own task success rate and risk exposure, not any leaderboard.
