Agents
Watch the 2-minute demo: three agents on a real laptop, one refused by the kernel.
An AI agent is a program that writes and runs code on your machine. Ranix treats it like any other untrusted program: it gets a sealed session, sees only what it was given, and cannot leave. The kernel contains no AI code; the session is a general isolation mechanism, and AI agents are its first users.
The agent session (asess)
One call, ASESS_SPAWN, builds the whole session before the first instruction of the child runs. What it guarantees today, each backed by tests (asess-spawn, -gate, -inherit, -view, -isolate, -churn, c-asess-kmem; 12 test programs):
- Closed from the first commandThe whole process tree is inside from its first instruction. The only way in is
ASESS_SPAWN; there is no way out from inside. - Default denyThe system call gate refuses everything that is not allowed. A system call added to Ranix later stays closed in sessions until someone allows it.
- Its own view of the filesA private mount table: the root is read-only and
nosuid,/tmpis private,/procand device files are filtered, and at most one directory is writable. - Its own memory budgetEach session has its own control group, so one agent cannot starve the machine.
- Clean shutdownThe session has its own process ID namespace: when its first process dies, everything in it dies too. Nothing is left running.
- People and agents, side by sideThe user interface lives outside the kernel. The same kernel can wear a terminal, a desktop or a machine interface (
fjord --json) for agents.
Why a new kernel for this: on Linux, the same isolation is assembled by hand from namespaces, seccomp, cgroups and a security module, each configured separately, and a new system call is open by default. In Ranix the session is one primitive, closed by default. What it does not do yet: there has been no external security review, and a stable, documented session API is still to come.
The agent tools we use today
Metastaz is run by two founders and AI agents working on the same machines. To keep agents from breaking each other's work, we wrote a small set of tools. Today they run on Linux, on our own server; they are not part of Ranix yet. The open-source version is agentlanes (Linux and macOS): leases, slots, an event log, and on Linux write lanes enforced by the kernel through Landlock. Agents can use it as MCP tools or as a Claude Code plugin (pip install agentlanes-cli). Recorded run: two real Claude Code agents got overlapping tasks on one file; the second saw it held, waited and retried, the first exited without releasing and its lease was dropped at once, and both changes landed (transcript).
- claimsWork leases: an agent takes a topic or a set of paths before it starts, and another agent that wants the same paths is refused. A lease can be tied to a process; when that process dies, the lease is dropped.
- slot, heavy-slotQueues with N places and a memory cap, for shared things like the browser or a heavy build, so agents wait their turn instead of running out of memory together.
- eventsOne event log for every agent: "done", "failed", "lease released". An agent can wait for an event instead of polling.
- PodVersion control for agents: content-addressed storage, a private workspace per agent, a merge queue and stacked changes. A change lands only with its test evidence attached. The Ranix tree itself is developed in Pod.
Moving into the kernel
The plan is to keep the same commands and move what is under them into Ranix:
- Leases and slots become files under
/run/lease: opening one takes it, the kernel records the owner, and the lease is released when the owner dies. - The event log becomes
/dev/events: many writers, a cursor per reader, and each event stamped by the kernel with the sender's process, user and session, so it cannot be forged. - Per-agent budgets use the session's control group, with memory pressure events.
This is a roadmap, not a feature: none of it is in the kernel yet. Kernel robustness comes first.