Architectural Design and Hands-On Evaluation of Plugin-Based Agent Runtime Frameworks
This article explores the architectural evolution of AI agent frameworks from fixed-core designs to fully pluginized runtime bases. It delves into the core principles of fully plugin-based architectures, particularly the concept of reversible plugin unloading for safe dynamic modifications. Through a hands-on evaluation, the article highlights the framework's lightweight nature, execution efficiency, and high extensibility, while also addressing current limitations such as raw UI, stability issues, and high developer barriers. Finally, it provides selection advice, clarifying that these frameworks serve best as a customizable foundation for platform builders rather than an out-of-the-box tool for everyday users.
Plugin-Based Agent Runtime Frameworks: Architectural Leap from “Wrappers” to “Stages”
1. Background: Two Paradigms of Agent Frameworks
Current mainstream agent development solutions fall into two categories. The first is the “fixed core + tool slots” paradigm: the framework internally implements a fixed reasoning loop (agent loop), and developers can only register tools and configure prompts within this loop. This approach is quick to get started with, but once the core capabilities fall short, developers often have to fork the source code for heavy modifications, resulting in extremely high upgrade costs.
The second is the “fully pluginized” paradigm that has emerged in recent years: even the agent loop itself is a replaceable plugin. The model access layer, toolset, sandbox environment, storage backend, and task scheduler all exist as plugins and are assembled on demand at runtime. This design transforms the framework from a “product” into a “runtime base.” This article discusses the practical experience and architectural value of this type of framework.
2. Core Architecture: Everything is a Plugin
2.1 Assembled Runtime
The core idea of a fully pluginized framework is that it is almost an empty shell upon startup, with all capabilities injected via plugins. A minimal startup command might just be a single line:
npx some-agent-runtime serve --mode web
After startup, the framework scans the plugin manifest and assembles the complete runtime based on dependencies. An illustrative plugin declaration structure is as follows:
{"name": "my-code-runner","provides": ["sandbox", "tool:execute"],"requires": ["loop:base"],"reversible": true}
2.2 Why “Reversibility” is a First Principle
The most valuable design point of this type of framework is treating the “reversible unloading” of plugins as a foundational capability rather than an add-on feature:
- Automatic side-effect recycling: When a plugin is unloaded, the tools it registered, the storage it wrote to, the ports it occupied, and the configurations it modified are all automatically cleaned up by the framework.
- Enabling Agent self-expansion: Because plugins can be cleanly unloaded, the Agent can be allowed to dynamically install new tools for itself during a conversation.
- Session-persistent capability memory: Plugins installed by the Agent remain even after the session is reopened, forming a “capability evolution” mechanism—this essentially pushes the “tools as code” concept to runtime dynamics.
From a software engineering perspective, this solves the classic dilemma of dynamic systems: how to safely modify a running system. Reversibility design reduces the risk of “what if it breaks” to nearly zero, which is the prerequisite for allowing Agent self-evolution.
3. Real-World Experience: Surprises and Setbacks
3.1 The Highlights: Lightweight and Fast
Hands-on testing reveals three main takeaways:
- Extremely low startup cost: A single command brings up the web UI without complex initialization processes.
- Solid task execution efficiency: Simple front-end tasks (like building a Snake game) can be completed in seconds; long-running tasks like batch document translation of dozens of pages can be managed within twenty minutes.
- High extensibility freedom: Developers have integrated it with instant messaging channels as an entry point for remotely controlling code Agents, verifying the flexibility of its “runtime base” positioning—the framework does not limit interaction entry points or downstream capabilities.
3.2 The Setbacks: Three Practical Hurdles
- The UI is still raw: Whether it’s the terminal interface or the Web UI, it is at the “usable but not friendly” stage. It is not a one-click finished product for end-users, but rather an invitation for engineers—those willing to tinker will feel comfortable.
- Insufficient preview stability: Official warnings state that interfaces will undergo breaking changes. During complex tasks, occasional error loops and overly long task durations were observed. Deploying directly to a production environment is not realistic at this stage.
- The customization barrier falls on developers: The highlights of the framework are almost entirely concentrated on “customizability.” Developers who do not know how to write plugins or understand its internal module communication mechanisms will see a significantly diminished experience.
4. Selection Advice: It’s a Stage, Not a Performance
Overall, reasonable expectations for this type of fully pluginized Agent framework should be divided into two audiences:
- Users seeking out-of-the-box solutions: Those hoping to install it and immediately start working like a mature coding assistant will likely be disappointed. The current maturity and UI polish cannot compete with commercial products.
- Secondary developers and platform builders: Those hoping for a freely assembleable, deeply customizable Agent runtime base to build their own intelligent agent platforms or automation pipelines will find it exceeds expectations. The architectural elasticity brought by the pluginized architecture is something traditional fixed-core frameworks cannot provide.
To summarize in one sentence: the value of this type of framework lies not in “completing tasks for you,” but in “setting up the stage for you.” If a team has clear Agent platformization needs and possesses plugin development capabilities, it is worth following the preview version now and participating in feedback. If you are just looking for a daily efficiency tool, it is advisable to wait a few iterations until the interfaces are stable and the UI matures before jumping in.
