remilouf Open-Sources ansi, an Agent Harness Built on Plan 9's Everything-Is-a-File
remilouf has published the first of seven installments in the series "The Advent of Harnesses", titled "Everything Is a File", laying out the engineering philosophy behind his Rust-built agent harness "ansi": on Plan 9, he uses the 1992 "everything is a file" philosophy to structure how agents interact with the OS. His core argument is that Unix was built for programmers sitting at typewriters, macOS/Windows for mouse users — and LLMs are a new kind of OS user that needs a harness designed for them.
Confirmed
- The series has seven parts; the first covers the design philosophy of the ansi project and Plan 9's core "everything is a file" principle, building an agent harness on 1992 Plan 9 design ideas.
- The sandbox security debate traces back to JFPuget's challenge: in an agent sandbox with no network restrictions, could an agent bypass isolation by mounting external resources? remilouf's explanation: agents inside the guest have no mount capability — every mount is composed host-side; even knowing a resource name, the guest's 9p connection cannot traverse host paths, so isolation cannot be bypassed.
- remilouf himself acknowledges that the biggest known security gap is allowing sub-agents to launch with an arbitrary cwd.
Why it matters
- The series represents an approach that stops patching existing OSes for human interaction paradigms and instead treats LLMs as first-class OS users, designing the agent harness around Plan 9's file abstraction.
- The public discussion of the sandbox mount mechanism and the sub-agent cwd gap offers a concrete reference for security boundaries in unrestricted-network agent environments: isolation mainly hinges on host-side control of mounts, while sub-agent launch paths remain a real risk point.
2026-12-02 ~ 2026-12-02 · 7 related posts
Primary sources
- [source] Everything Is a File: Building an LLM Agent Harness on Plan 9 Principles — remilouf · 2026-12-02
- ansi: an open-source terminal agent harness where every turn is journaled and forkable — remilouf · 2026-12-02
- [source] ansi: a Rust terminal agent harness where every turn is a durable, forkable journal — remilouf · 2026-12-02
- Everything is a file: designing an agent harness for LLMs as the OS user — remilouf · 2026-12-02
- Building an agent harness on Plan 9: 'Everything is a File' — JFPuget · 2026-12-02
- [source] Agent sandbox security: mounts impossible from guest, subagent cwd is the real gap — remilouf · 2026-12-02
- Agent sandbox mounts are composed by the host; subagent cwd flagged as top security gap — JFPuget · 2026-12-02