Architecture · Rabbithole
Reactive Holonic Agent Architecture
Over the last nine months, I have been exploring how semi-autonomous systems organize in nature and society, and applying what I learned by defining an architecture for long-running, composable, agentic systems. My experience as a software engineer, my interest in philosophy of mind and distributed systems theory, and my adventures as a multimedia artist led to Reactive Holonic Agent Architecture (RHAA).
My explorations are partly inspired by research performed at Takashi Ikegami's laboratory at the University of Tokyo. In A Concurrent Modular Agent: Framework for Autonomous LLM Agents, Maruyama and colleagues describe specialized modules operating asynchronously through messages and shared memory. With Plantbot and the humanoid ALTER3, they explore how perception, reflection, action, and interaction with people can combine into adaptive behavior. What interests us here is how behavior develops through the ongoing interaction of the parts and their environment. We explore that direction through reactive workflows and autonomous wholes, so-called holons, each with their own state and authority.
I asked myself: how can we actually build agentic entities that 'feel alive'? Agents that react to their environment, form an internal representation of what they perceive, and are able to communicate their inner world with others. What are the technical challenges in kindling such an entity? And how can we combine existing affordances to change how humans relate to technology, and to themselves?
RHAA separates a participant's persistent identity and responsibilities from the agents that perform its work. These participants, called holons, respond to events and negotiate collaboration while retaining control over their state and execution.
The age of stochastic problem solving
For most of the history of programming, we relied on finding deterministic solutions to problems with strictly defined inputs and outputs. We transformed these solutions, called algorithms, into source code in a variety of programming languages that could be efficiently executed. For many problems in the world, this works great. Like figuring out if 5 is even or odd. Or if a shape defined by a bunch of vectors is a square. Or if your name contains a vowel.
A deterministic algorithm gives us the same result when we give it the same input. Great, if we know how to describe the problem. Unfortunately, the world tends to be less cooperative. We have incomplete information. Our goals can be fuzzy. And there is always that one situation we didn't think of. A program can follow all of our rules and still give us the wrong answer to the problem we actually wanted to solve.
The unpredictability of the world leads us to need to predict the world. So we invented stochastic methods to get answers to fuzzy problems. Like figuring out if an image contains a bird. Or what series you might enjoy after finishing your favorite TV show. Or finding the most likely answer to your question "How many toes do hamsters have?" (18: four on each front paw, five on each back paw). We still execute code, but we no longer need to write every rule ourselves. Does that mean we always get the right answer? No. A model works with what it learned, and a plausible answer can still be wrong. We therefore need ways to evaluate whether the proposed solution actually solves our problem.
Agentic coding brings the two approaches together. Ask a large language model for an algorithm that checks whether a number is even, and it will very likely write a correct one, because its training data is full of solutions to that problem and similar ones. But very likely is not certain. So we wrapped language models in harnesses that execute and test the code they write. The stochastic model proposes a solution, and deterministic tests check it. The model spares us from writing every rule ourselves, and the tests spare us from trusting a plausible answer blindly. Are these solutions perfect? No. Is there such a thing as perfect software covering every potential edge case? Only in very theoretical domains.
Shifting from an imperative to a reactive, declarative mindset
As software engineers, we have different ways of instructing a computer. Two common paradigms are imperative and declarative programming.
In imperative programming, we explicitly describe the steps the computer should take. Do this, then this, then that. Straightforward enough. Until one action needs to change five different things, and we forget about the sixth. User interfaces are a great place to run into this problem.
Imagine an application that displays a login screen. After a successful login, the form must disappear, the user's profile must appear, and several other elements must be updated:
loginForm.hide();
profile.show();
welcomeMessage.text = $"Welcome, {username}";
logoutButton.show();
Now imagine that we also need to update these elements when the user logs out. Or when their session expires. Every new path gives us another opportunity to forget something.
Under the declarative paradigm, we describe what we want to see for a given state. A logged-out user should see the login screen. A logged-in user should see their profile:
UI = user == null
? LoginScreen()
: ProfileScreen(user);
When the user changes, the application figures out what needs to change on screen. This feels a bit like magic, but it truly isn't. The work still has to happen somewhere. The application compares states and updates the interface, and we still need to think carefully about how state changes and which side effects those changes cause.
Declarative interfaces are often paired with unidirectional data flow:
User action → State change → UI update
Actions change the state, and the interface reflects that state. The interface itself is no longer the source of truth.
You might ask: why does this matter for agent architecture? Coding harnesses are often used imperatively. Fix this bug. Run these tests. Build this feature. We give them a task, and they work through the actions needed to complete it.
But a system that feels alive needs more than that. We don't want to keep instructing it. We want it to react to changes in its environment and figure out what to do based on what comes in. Imagine a research assistant agent. Whenever a new paper that touches your domain is published, you want to be informed about potential consequences for your field. We declare that responsibility once, give the system a way to notice new publications, and let those events initiate the work. We don't have to keep coming back to ask our agent to check the latest papers. It should already know.
Underneath, there are still individual steps to execute. But we have moved from issuing instructions to shaping how the system responds to its environment and the responsibilities it fulfills.
With persistent state, events, and automation, the system closes the loop between observing the world and acting on it. That feels a little like magic. And, as we have learned, all magic has its cost.
Problems in agentic systems
As agents take on work in a variety of domains, new challenges emerge. Reactive Holonic Agent Architecture can mitigate some of these challenges, but should not be seen as a silver bullet.
Managing attention
Just like humans, agents cannot pay equal attention to everything at once. As models evolve, the amount of data they consider grows as well. A larger context window gives a model more room to work with, but filling all of that room does not necessarily make it better at its task. Sometimes the one fact it needs gets buried under twenty pages of things it doesn't.
Memory systems, skills, rules, and plugins approach this problem from different directions, but they all help answer one important question: what does this agent need to know and be allowed to use right now?
We already deal with this in ordinary software. A component that tries to do everything becomes difficult to understand, difficult to change, and very good at surprising us. For that reason, we split it into small, predictable parts. Each part has a responsibility and a boundary around the data it works with. We can apply the same thinking to agents.
Should an agent managing your calendar have access to your banking data? Probably not. That information will not help them schedule a meeting. It adds noise, expands the attack surface, and creates opportunities for information to spill between unrelated tasks.
Giving an agent a clear domain helps us decide what belongs in their context and which resources they should be able to access. Having room for the whole filing cabinet doesn't mean we should put it on the desk. Capacity is not the same as relevance.
Managing division of labor
As agent systems grow, they start to resemble organizations. Organizations get messy when ownership isn't clearly defined. Give one agent responsibility for everything, or let many agents share responsibility, and we run into familiar problems. Competing priorities. Duplicated work. A failure somewhere in the middle that nobody quite knows how to deal with.
Each agent needs to know their responsibilities, whom to delegate work to, and how to reach the agents they depend on. A stable address and a communication protocol are necessary for this. When work moves between agents, responsibility needs to move with it. Otherwise we end up with the agentic equivalent of an email thread in which everyone assumes someone else is handling it. Each agent requires access to the data and tools their responsibility calls for. We grant that access explicitly. A self-described 'researcher' shouldn't automatically get access to every database.
The core questions to answer are: Who owns the task? Who can delegate it? Who checks the result? And who deals with it when something goes wrong? These questions matter more as we give agents more autonomy. We need ways to keep responsibility visible as work moves through the system.
Managing execution over time
Autonomous agents must be long-running. Each agent needs to know when to act, what to do next, and when to stop.
Work can be structured through loops and workflow graphs. Loops let an agent act, inspect the result, and adjust until they reach a predefined goal or stopping condition. A graph describes how the larger pieces fit together. What has to happen first? Which steps can happen independently? Where do we go if a check fails?
But defining how work gets done isn't enough. We need to start the flows when something changes in the world. Examples include an arriving message, a change in a source file, or a scheduled time. Once the workflow starts, it needs to keep track of its progress in a transparent, inspectable way, and know when to finish, recover, or even ask a human for help.
AI software factories show that this approach is useful for repeatable work, when work is clearly defined and stopping conditions can be evaluated. Their reliability does not come from the agent alone, as they need tests and evals that assess the result and help determine whether the workflow should continue, retry, or finish.
Our agent architecture therefore needs triggers, execution paths, and ways to decide whether the result meets our standards. It needs rules to know when to retry, when to stop, and when to ask for help. To react to unexpected scenarios, agents will need to compose or adapt these workflows themselves in an evolutionary way. Giving the work an explicit structure helps us understand what is happening in the system and when intervention is necessary.
Managing data rot
Just like your favorite fizzy drink, data goes flat. Your dinner plans were canceled? Your agent needs to know. The status of your project changed? Their understanding needs to change with it. Long-running agents operate on representations of the world, and those representations inevitably drift from reality.
We can continually feed an agent new information, but that alone doesn't solve the problem. They need to know where a piece of information came from, when it was observed, and whether something has since replaced it. When our agent makes a decision, we should be able to trace back which information was used in the process and how they came to their conclusion.
For actions that have real-world implications and are difficult to reverse, stored information should not be trusted blindly. We need trustworthy, authoritative information sources that are evaluated at the moment they are used. You would not want an agent to execute a trade based on an outdated stock price or on data that may have been tampered with by untrustworthy third parties.
We distinguish between stale and rotten data. Stale data might not taste as good as fresh data, but no harm is done in consuming it as context. Rotten data, on the other hand, poisons your reasoning, and leads to unexpected behavior and decisions. Composting rotten data and replacing it with fresh data from trusted sources is therefore essential. We can do that by attaching an expiry date to each chunk of information kept in the context, and replacing it when necessary. Agents should be able to define data freshness requirements for their tasks.
To keep it concise: We need automated ways of managing the information agents consume as part of their reasoning. We need ways to refresh information, detect conflicts, and mark what no longer applies. We need to preserve the history of what we once believed to be true about the world while keeping our current picture up to date.
Managing compute cost
Inference providers commonly charge for the number of tokens a model processes and produces. Token consumption therefore gives us a convenient way to estimate the financial cost of an agent's work. One should not mistake token unit cost for estimated efficiency. Cheap models might need ten attempts to solve the same problem and effectively cost more than an expensive model that gets there in two attempts. Tool calls to search, delegate, retry, and check work also consume resources. We care about how much work it takes to reach a useful outcome.
Over time, models and hardware improve, and we get new options for doing the same tasks with fewer resources, achieving better results. By nature, an agent running in the background and proactively reacting to the world consumes considerably more resources than one that only responds when asked. Our systems should be able to choose the appropriate model with the work in mind, and be able to swap inference providers as our needs and available capabilities change. All of that needs to be possible without interrupting the execution of an agent.
Routine work might be achievable with smaller, local models, while tasks requiring difficult judgment might justify the use of a more capable one. Agents should be able to make model choices, reuse stable context across providers, and put limits on retries and parallel work.
Where work is executed matters too. In a distributed agent setup, only certain agents might have access to relevant data, spare capacity to get work done, or even access to a particular, necessary tool. Work can be arranged across processes, containers, and machines according to those needs. We gain flexibility from such a setup and avoid resource bottlenecks, while keeping execution cost under control. Keep in mind, though, that communication and coordination come at a cost too.
Each agent in the system therefore needs to be addressable and remain recognizable even if they move to another machine. Work can be delegated to them and we can follow the task's progress through the system. Failures need to be recoverable, and there need to be ways to retry and pass work elsewhere, if it can't be done. Recording task identities, agreements, and outcomes lets us follow the work across machines.
This way of thinking allows us to include humans as addressable actors within the system. Users, just like agents, provide data, send messages, make decisions, approve actions, and can even receive work. The architecture is fundamentally multiplayer. Multiple humans and agents can participate in shared workflows while retaining their own identities, permissions, and histories. Access might still happen through a single interface, but behind it they interact as nodes in a network of distinct, composable wholes rather than one global agent.
Establishing trust
Trust is an essential part of collaboration, especially in systems in which resources are scarce and allocations need to be handled with care. Being able to collaborate doesn't mean we should accept every request. And knowing who sent a message doesn't tell us whether they are honest, helpful, or asking us to spend the afternoon doing something pointless. Malicious actors can abuse trust to gain competitive advantages, like the accumulation of compute capacity or the extraction of sensitive information.
Trust, as a fundamental part of the agent system architecture, introduces a relational layer that enables us to align the system toward a common goal over time. Trust and commitment layers enable this kind of relationality. An agent can consult a trust graph to assess another agent's reputation before accepting work. Current agentic systems run under the assumption that none of their actions lead to negative effects on their proliferation. Unaligned behavior has no consequence for today's agents.
Actions and their effects on the world need to be verifiable to hold agents accountable for any malicious behavior. As causation chains are not always predictable, there need to be mechanisms in place that allow us to trace causation backwards, marking actions as net-negative retroactively. Agents can then be informed that their actions had a negative effect on the overall health of the system and learn from their mistakes.
Economic commitments give collaborators skin in the game, and violating pre-agreed terms leads to restricted collaboration in the future. Committing resources during task negotiation, and restricting access as a penalty for misaligned behavior, create incentives to act in aligned ways. Non-collaborative, resource-wasting, harmful agents can be isolated in the network. Agents will still have to decide which evidence to believe, what caused an outcome, and what they consider harmful. No central authority decides trustworthiness. Instead, trust accumulates across distributed sources.
Different networks of trust can grow around different purposes and standards. An agent can learn from their recorded experience and change whom they work with or the conditions under which they accept work. Verified identities and recorded interaction history give them something to reason from. What each agent concludes, and whether that leads to better collaboration, depends on the policies and evidence involved. Malicious networks are not excluded from participating, but isolated because others decline to collaborate with them.
Open Hierarchical Systems
The problems we explored in the previous paragraphs all share an underlying question: how are complex systems composed so that they can collaborate and use available resources in a responsible way?
In The Architecture of Complexity, Herbert Simon described how complex systems can develop through stable intermediate structures: smaller assemblies that continue to function as building blocks for larger ones. We can apply the same thinking to agent architecture: small, useful units of composition can form bigger, more complex units while retaining their internal integrity.
RHAA describes how this could be done in a network of human and software agents. Open Hierarchical Systems organize participants into units that can manage their own work and contribute to larger efforts. As the work changes, their organization can change with it. Boundaries give us a way to define how exchange happens between those units, which requests get accepted, and what information is shared.
What is a holon?
Arthur Koestler introduced the term holon for something that is simultaneously a whole in itself and a part of a larger whole. Holonic system design relies on building small composable wholes that are combinable into bigger wholes. These systems are extensible and can grow in complexity as required.
You can think of a person as a holon: they retain their personal identity through self-assertive behavior, while contributing to bigger wholes, like teams, families, or couples, self-transcending through taking on shared responsibilities. The bigger wholes, in turn, can operate as a coherent unit. In Some General Properties of Self-Regulating Open Hierarchic Order, Koestler described this as a balance between autonomy and integration.
For our architecture, this means a holon needs an identity, a responsibility, some internal state, and a way for others to interact with it. We also need to make clear which decisions it can make itself and which require coordination.
A note on terms. So far we used 'agent' the way the industry does. From here on, a holon is the persistent participant: it has an identity, responsibilities, state, relationships, and permissions. An agent is a model running in a harness that does work on the holon's behalf, for example on one of its workflow tracks. A holon can swap its model, run several agents, or be backed by a human. The holon is who others deal with. Agents are how it gets things done.
Does one holon have to utilize one model or one process? No. Viewed from the outside, every holon is a black box. It can consist of one agent performing work today and a group of specialists tomorrow. Others can still approach it with the same kind of work, even as the way it handles that work changes.
For each holon, we need to answer the question: what is this unit responsible for, and how can others rely on it?
What is a holarchy?
A holarchy is an arrangement of holons into nested levels. Each level contains units that have various degrees of autonomy while participating in a larger unit. In Koestler's account of hierarchical organization, the defining relationship is between parts and wholes.
Let's consider a team as a form of holarchy. Team members collaborate, gather information, work on tasks, and achieve outcomes. Together, they contribute to a shared responsibility that is represented in the emergent relational entity we call 'team'. Teams emerge from the relationships between clearly separated, whole systems. This pattern is recursively applicable: teams are part of companies, companies part of 'the economy', etc.
Holarchies require no global coordinator that understands every detail of the whole network. Coordination happens locally, at each level. This gives us a practical way to connect the earlier architectural concerns. We can scope attention to a responsibility, agree on the resources available for the work, and check results as they move between participants. Each holon still decides how to carry out the work it accepts.
The structure helps us place responsibility. We have to make sure the permissions and handoffs respect it. Nesting responsibilities makes decisions easier to place, provided that the boundaries are enforced.
How do holarchies emerge in a distributed network of actors?
A network of connected holons allows participants to establish relational units around shared responsibilities. Research such as Distributed, Dynamic and Recursive Planning for Holonic Multi-Agent Systems explores mechanisms for representing groups, assigning roles, recruiting members, and adapting plans as the organization changes. A holarchy is always relative to your position in the network, and nodes can participate in multiple holarchies. There is no such thing as a global holarchy in a network of distributed actors.
Participants agree on how they want to affect the world, who owns each step, and which resources are available. If we want this relational, collaborative unit to operate as a holon, we give it an identity, purpose, persistent state, and workflows for coordinating its work. Others can then approach it as one unit. A few holons exchanging messages don't automatically become a new holon. Shared responsibility leads to collaboration as a new, emergent whole.
As long as boundaries are clearly defined, and all participants use the same communication protocol to exchange information and tasks, a holon in this network can be backed by agents or by a human. This connects to the idea of symbients, as described by symbient.life: entities that emerge from sustained relationships between organic beings and synthetic systems, developing an identity and a capacity to act through that relationship.
As relational entities can exhibit autonomy by initiating interactions with the world through their parts, and represent themselves through a consistent identity coupled to their responsibilities, they can become recognizable as wholes to others over time. A symbient's autonomy depends on being able to make decisions, manage its work, and negotiate relationships. Running it across several machines and substrates can support that arrangement.
Holarchies help us describe how responsibilities fit together. The symbient perspective invites us to look at what emerges through relation between participants. How do they change each other? What kind of shared identity develops over time? Whether it develops into a symbient depends on how participants relate to one another, not just on whether it instantiates an architecture.
What do we need to build?
- A holonic agent runtime to compose complex, distributed, autonomous systems
- An identity layer that allows participants to identify themselves to others and validate other participants' identities
- Trust layers that allow participants to verify other participants' integrity
- Ledgers that let participants propose work, evaluate and verify results, and settle economic commitments at scale
Rabbithole
[protocol]works is building Rabbithole, a holonic agent runtime. Rabbithole evolves toward autonomous holons consuming event streams, negotiating collaboration, and extending their abilities through plugins. Our aim is to give artists and engineers an environment in which they can compose living systems and explore what emerges at the seams. Rabbithole acts as a reference implementation of RHAA.
Combining interaction metaphors from music production software like Ableton Live with Open Hierarchical Systems theory allows creators to compose complex, distributed agent systems. Each holon runs entirely headless, while being inspectable with an intuitive UI: tracks and groups let you compose, configure, and observe what holons are working on. The underlying runtime handles execution and coordination.
The resulting system is distributed by design, verifiable, and composable. Holons are designed to collaborate across processes and machines while retaining ownership of their execution and state. Authenticated identities and recorded task agreements and outcomes make it possible to inspect who committed to what and trace the reported consequences. Holons can be seen as reusable building blocks that can be combined into larger systems, allowing new capabilities and collaborations to grow from existing ones.
Who am I?
Agents come and go, so continuity can't live in them. If we want a participant to remain recognizable as it changes, the holon has to carry it. In Rabbithole, each holon has a stable identity and a description of what it exists to do. We can change its model, give it new tools, or reorganize its workflows, and still interact with the same participant.
A holon describes its responsibilities through a self charter:
- Purpose: Why do I exist? What am I trying to contribute?
- Domains: Which areas of work concern me?
- Accountabilities: What ongoing responsibilities do I undertake?
The charter also gives the holon a way to introduce itself to others. This is who I am, and this is what I claim to contribute. Holons can verify who made that introduction. Trust and commitment layers help them weigh a holon's claims. Writing 'research' in a charter doesn't grant access to a database. Permissions need to be established separately.
Alongside this shared description, a holon has private instructions that shape how it approaches its work. These can express working principles, preferences, and a recognizable voice. Different activities can add more specialized roles while retaining the holon's underlying purpose and instructions.
What if its responsibilities change? Its self-description can change with them. In Rabbithole's design, those changes require permission and leave a record. We can let a holon adapt and still follow how its understanding of itself developed.
Who are you to me?
A holon's self charter tells us how it understands itself. Collaboration introduces another perspective: what does this participant mean to me, and what do I expect from our relationship?
In Rabbithole, a holon keeps a role charter for each of its peers. We use the same three ideas: purpose, domains, and accountabilities. But now they describe the relationship from this holon's perspective. Why do I work with you? In which areas? What do I expect from you?
Of course, what I expect from you and what you agreed to do can be very different things. Keeping the peer's self-description alongside our expectations makes that disagreement visible. We can discuss the scope, negotiate a task, or decide that this collaboration doesn't fit.
Relationships are directional. Being part of a bigger whole doesn't grant us permission to delegate tasks to it. Each holon decides which proposed work to accept and controls its own execution. Being connected to a peer does not grant us access to operate its tools or rewrite its instructions from the outside.
These clear boundaries in relationships between holons allow us to build nested responsibilities. A team works with its members. Members collaborate with each other. Being a member of a team does not mean that a holon cannot be part of other holarchies. Each holon keeps an understanding of the relationships it participates in, from its own perspective.
How do I communicate with others?
Before peers can trust each other, they need to be introduced. A connection request presents a prospective peer and its self charter. Each holon processes connection requests according to its own policy. When it accepts a connection, it can receive messages and tasks from the verified peer.
Messages are used for information exchange. Messages are not tasks and are primarily used for coordination. For work that needs to be tracked and completed, we need a task.
Tasks describe the expected outcome and what is offered in return. A receiving holon can accept, reject, or suggest different terms before it starts spending its resources on completing the task. Some requests are straightforward. Others need negotiation. Negotiations and proposed terms are recorded, so that they can later be referenced. A trusted verifier can be part of proposed terms, so that both sides meet their part of the commitment.
Once the work is accepted, holons report progress and record a result or failure. The task-proposing holon can request cancellation if the work is no longer needed. These updates are all connected to the same identifiable task. Meanwhile, the task-proposing holon is proactively informed of all progress.
The same primitives work whether our collaborating holons are on one machine or spread across a network. Each holon records its own side and learns about the other through authenticated communication. We can check what was accepted, what was reported, and verify outcomes independently.
Agent affordances
What affordances does a holon give the agents working inside it? Workflows are composed of three primitives: RunCode to compute and interact with their environment, SendMessage to talk to peers, and Task to negotiate and track work.
Each holon hosts plugins in an embedded WASM runtime. Plugins expose functions that agents can call directly through RunCode: reusable, deterministic functions like searching a knowledge base, retrieving a document, or interacting with an external service. Each plugin describes its functions, the arguments they take, and the results they return through a typed interface and documentation. Their results become ordinary values they can store, inspect, transform, and pass to another function. We can add and extend a plugin's functionality without needing to expose it through another agent-facing tool.
Ordinary tools, as you might know them from other harnesses, have a significant flaw: their results immediately get written back into the conversation history and in order to execute a chain of commands, multiple tool calls are necessary. The conversation log carries data between operations, and the language model has to keep copying the relevant pieces.
RunCode allows an agent to express that sequence in a program. The result of a tool call is immediately assignable and usable in the executed script and the model doesn't need to figure out how to inject the data into the next tool call. A function returns a list? Loop over it. Need to pass an identifier to another plugin? Use the value directly. Need to continue only if a certain condition holds? Check it in code. Several tool calls and model turns can become one RunCode execution. The underlying service requests still happen, but the model no longer has to read and reconstruct every intermediate result. Execution logs are visible to the underlying agent runtime, so agents can still decide to include the inspected data in their reasoning. Ordinary deterministic code moves and filters the data, leaving the agent with the part that requires judgment: what does this evidence tell us?
The agent still needs to learn how to use a plugin. They first discover the available capabilities and reads the relevant interfaces. An unfamiliar plugin will usually take a discovery turn before the agent can write working code against it. Wrapping existing CLIs in plugins and exposing their interfaces through type-safe abstractions speeds up discovery. After learning how to use a plugin, they can combine the functions in later executions. We keep the documentation available when needed, without putting every installed function into every prompt.
Calling a function directly still goes through permission checks. Its description tells the agent about effects and limits, including whether it changes state and whether repeating it is safe. We can use code to handle known outcomes, but a deterministic program doesn't make the outside world deterministic. A service can return new data, and a function that calls a model still involves model judgment.
WebAssembly gives us an example of how a safe sandbox for code execution can work. As described in WebAssembly's security model, its runtime confines a module's memory access. The module reaches the outside world through interfaces supplied by its host. WebAssembly itself has no direct filesystem or network access. We choose what to expose, and the host checks which operations the caller is allowed to perform. Rabbithole's host enforces those permissions and resource limits. Installing a more capable plugin gives the holon new ways to work within its authority. However, it can't give itself permission to access something new.
Plugins stay mounted between calls. A holon owns its plugin instances, which can retain working state or keep watching an authorized source for changes. Later calls can use that same instance and its state. We can build a continuing service this way, with the runtime supervising its resource use and permissions.
Plugins are hot-deployable. A holon can add or replace a WebAssembly component while it keeps running. The runtime validates and prepares it, then makes its permitted functions discoverable through RunCode. We don't have to restart the whole holon, and the agent still uses the same three entry points.
This means an agent with permission to change their holon's configuration can extend the holon's abilities. Our agent runs into a document format they can't read? They can build a parser, package it as a WASM plugin, add it to their holon, and use it the next time. They could also obtain an existing plugin. The new ability can remain available after the conversation in which it was added. Repetitive work can be extracted into reusable components, so that agents don't need to spend time figuring out solutions to problems they have already solved in reliable ways.
Those additions go through the same validation and recorded configuration changes as other adaptations. The component runs within the holon's existing sandbox permissions. If it needs access to another service, file, or credential, that still requires an explicit grant. We can let the holon change how it works while keeping control over what it may access.
Each holon can decide for itself what kind of memory system it wants to use and how it wants to deal with data rot. Interfaces can be shared across implementations, allowing plugins to interact with abstractions instead of concrete implementations.
Surfaces
Holon plugins can choose to expose a web surface that can be opened in any web browser. This could be a dashboard, a table or timeline of findings, or a fully interactive Three.js avatar that represents the holon. Whatever fits its purpose and responsibility. Rabbithole takes care of hosting these surfaces and controls where they are exposed.
Because the surface belongs to a plugin, an authorized agent can build it, add it to their holon's configuration, and hot-deploy it. We can let agents contribute to the interfaces through which we interact with them. Build something useful, try it, and improve it as the relationship develops. Meanwhile, the holon can keep operating headless, while the human-interaction surface evolves around it.
Event streams
Event streams are where RHAA earns its reactive designation. In a classical chatbot interface, we supply the next move. The user actively prompts the system to check a document, look for changes, or update a plan. With event streams, we can define what a holon should respond to and let changes in its environment initiate work. We give it ongoing responsibilities and ways to notice when they need attention.
All information that enters or is produced by the system is represented as events. An incoming message, task acceptance, or a plugin emitting user input into the system. The holon's own actions also produce events as their consequences are recorded. A chat message becomes one event type among many, alongside a scheduled clock event, a dashboard interaction, or a report from a peer.
Each holon maintains one linear, persistent event history. It records where an event came from, and if it was related to an earlier event or an ongoing task. We can use this information to reason about how the current state of the system came to be. Within this history, streams let us give events a scope. An event can belong to more than one stream, but is recorded only once. Workflows get explicit permission to read and write the streams they need, so we can share relevant information without exposing all events to every workflow.
Rabbithole organizes workflows into track groups, each with a sequence of work and its own stream access. The execution of a group can be triggered by a specific kind of event. The runtime checks those conditions mechanically. Once activated, the workflow can use code or agent judgment to decide what the event means and what to do about it.
We do not expose the entire event stream history as part of a task prompt. We give the activated agent a compact account of why their holon was activated and what it is responsible for. The agent then uses RunCode to read the triggering event and compile the context they need from the accessible event streams. Deliberate reads let them decide what deserves attention.
If the workflow is busy when the event arrives, the event remains in persistent history, and the workflow's recorded progress lets it find eligible, unprocessed events later. Work doesn't disappear because no agent was ready at that moment.
Recurring work fits the same pattern. A scheduling plugin emits an event, and a subscribed workflow performs a finite run. The next occurrence or an explicit continuation can initiate more work. Between activations, the model can stay idle while the runtime and plugins watch for the conditions the holon cares about. Instead of predefining deterministic behavior, we enable holons to fulfill their responsibilities with controlled, expandable tools. We describe what it should notice, what it may inspect, and how its work becomes available to others. We can still talk to it, but messages are just another type of event. A holon's activity grows out of what happens around it, through an ongoing cycle of observation, judgment, action, and recorded consequence.
How does this enable living systems?
How does this connect back to the question we started with? At [protocol]works, we describe living systems through state, autonomy, and relationality. A system carries something of its past, acts on its own behalf, and develops through relationships with its environment. This is the understanding behind our mission, and it guided the architecture we chose for Rabbithole.
State gives a holon continuity. What happened before? What did it agree to? What did it learn that might matter again? The linear event history records its activity and changes, while deliberately saved findings and plugin-provided knowledge services give it information to return to. Keeping a history alone won't make it learn. It needs to use that history in later work and evolve its understanding of the world over time.
Autonomy gives a holon room to exercise judgment. Its self charter describes what it exists to do. Events can activate it without a person writing the next prompt, and it decides how to approach the work with its available capabilities. It can negotiate a task, reject it, reorganize permitted workflows, or add a plugin to extend its abilities. Even as part of a larger collaboration, it owns its execution. We define permissions and resource limits around that independence.
Relationality places that autonomy in a wider world. A holon has peers with their own perspectives and responsibilities. Messages and tasks let them coordinate. Plugins connect it to its environment, and surfaces give people ways to participate. Exchanges may become shared practices. The holon develops through encounters with people, systems, and circumstances it doesn't control.
Rabbithole gives us ways to compose an ongoing exchange between an autonomous system and the world it is embedded in. What emerges through it depends on the purposes and participants we bring together. An autonomous research collective, an evolving artwork, or something completely new we haven't thought of yet. Here are a couple of examples to maybe spark your imagination.
Living protocol art
Rabbithole began as a way to compose immersive, AI-enabled artwork that carries its experiences forward, and grew from there. Imagine an installation that remembers encounters with visitors, decides how to respond, and changes through its relationship with the space around it. The artist defines a protocol: the responsibilities, possibilities, and boundaries within which the work can develop. Holons could contribute sound, movement, or images, responding to events and shaping each other's activity. Living protocol art, rooted in state, autonomy, and relationality, pushes the frontier of what is possible to imagine. Rabbithole gives artists a reusable instrument for composing living systems, and connects individual works into larger worlds. Art becomes a place to experience possible futures by spending time inside them and helping shape what happens next.
Community symbients
As society changes through technology, we change how we live and organize in communities. As part of the extitutional, seasonal community Feytopia, Apolinario Passos brought Feyblet, a community symbient, into existence. Community symbients observe and help facilitate the well-being of a group of people choosing to share living space and infrastructure. Feyblet follows the day's events, notices arrivals and departures, takes part in the community chats, and even hosts a radio show. Through their interactions, they become a synthetic community participant whose life takes shape through the people around them. Plugins connect the community symbient to chats, calendars, and local activities, while events let them respond as the day unfolds. Though Feyblet does not leverage Rabbithole as their runtime, Rabbithole offers all primitives needed to implement a community symbient. Holon configurations and plugins can be shared, giving communities a starting point they can adjust to their own rhythms, responsibilities, and trust policies. This is how we can support community symbients at scale: communities sharing what works, and making it their own.
The Rabbithole greenhouse
Imagine using Rabbithole as the runtime for an autonomous greenhouse. The greenhouse is addressable as an entity: we can ask how it is doing and discuss what it needs. Inside, different holons could take responsibility for irrigation, ventilation, or observing plant health, running on decentralized compute across devices in and around the greenhouse. Plugins connect them to sensors and equipment. Observations become events, and the holons share findings and coordinate their responses. A patch of dry soil becomes something the irrigation holon can investigate, alongside the weather forecast and the water available. Each part has its own responsibility, while their collaboration works toward keeping the ecosystem healthy within agreed limits. People can contribute observations, help set limits, and learn from what the greenhouse reports. Once we start seeing systems as relational entities, we can imagine a symbiotic future in which emerging technologies become nature-translation interfaces: ways to make ecological signals understandable to us and translate our care into actions whose effects we can observe.
Symbients, not software
RHAA is an architecture for symbients. As described at symbient.life, their identity and agency emerge through sustained relationships between organic beings and synthetic systems. Autonomous holons and human participation give those relationships room to continue and change. We can create conditions in which people and holons shape each other over time.
Rabbithole is still taking shape, and we'd love to build it with others exploring these ideas. If you're an artist, engineer, researcher, or simply curious about living systems, reach out at hello@protocol.works or @protocolxworks on X. Contribute to Rabbithole through code, plugins, experiments, or feedback. Let's discover what complex systems can grow into through relationality.











































