Open-Source Agent Frameworks: Everything Is a Plugin in a Microkernel Design
This article explains the design philosophy of a microkernel-plus-plugins architecture for open-source AI agent runtime frameworks. It covers plugin contracts and lifecycle, restricted context, event-driven policy interception, task scheduling with sub-agents, error handling and cancellation, observability, and security. It also offers practical guidance on building a minimal kernel and governing a plugin ecosystem.
A developer preview of an agent runtime framework has recently appeared as open source. The framework is a runtime, SDK, and application framework for building, running, and extending agents. It is not a new model, and it is not a conventional chat client. Its core claim can be summed up in one sentence: the kernel keeps only a minimal contract, and all other capabilities attach as plugins. This article does not walk through the feature list of any one product. Instead, it examines the design philosophy, key mechanisms, and engineering practices of this “microkernel plus plugins” architecture from a general technical perspective.
1. Clarifying the Concept: A Runtime Framework, Not a Model Wrapper
Many developers who first encounter such systems see them as “an API client for a model” or “a chat interface with tool calling.” Both views are inaccurate.
Models handle inference and generation. A runtime framework connects model capabilities to working machinery: the file system, the command line, browsers, code editors, task queues, sub-agents, monitoring and audit systems, and more. The problem it solves is not “how to send one request.” The problem is “how to let an agent complete real tasks over long, multi-step, cancellable, and auditable runs.”
The harness metaphor fits well. A harness is neither the horse nor the cart. It is the constraint device that connects power to working machinery. A runtime framework works the same way. It amplifies model capabilities, records what the model does, limits what the model can do, and decides whether to retry or cancel when something fails. Compared with a one-off API client, a runtime framework must manage session state, tool call chains, concurrent tasks, subtask assignment, permission boundaries, and execution traces. Compared with a chat client, it focuses more on task completion rate, failure recovery, and auditable processes than on the experience of a single conversation turn.
Therefore, evaluating this kind of framework should not focus only on which models it supports. Four aspects matter: whether the kernel contract is stable, whether plugin boundaries are clear, whether task scheduling is reliable, and whether security and observability are in place.
2. Why Everything Should Be a Plugin
Agent systems are capability-dense by nature. They may need file reading and writing, command execution, web access, code search, task decomposition, sub-agent scheduling, model adaptation, interaction entry points, protocol gateways, logging, metrics, and many other capabilities. If all of these are built into one monolithic framework, development is fast at first but quickly becomes hard to control:
- Capabilities are tightly coupled. Adding one tool may affect scheduling, permissions, and the UI.
- Teams working in parallel block one another.
- Permissions, testing, and version upgrades
