[Paper Review] Quine: Realizing LLM Agents as Native POSIX Processes
The paper proposes Quine, a runtime where LLM agents are realized as native POSIX processes with a recursive, single-image runtime, mapping agent concepts to OS primitives and delegating cognition to a hosted LLM via a host-guest architecture.
Current LLM agent frameworks often implement isolation, scheduling, and communication at the application layer, even though these mechanisms are already provided by mature operating systems. Instead of introducing another application-layer orchestrator, this paper presents Quine, a runtime architecture and reference implementation that realizes LLM agents as native POSIX processes. The mapping is explicit: identity is PID, interface is standard streams and exit status, state is memory, environment variables, and filesystem, and lifecycle is fork/exec/exit. A single executable implements this model by recursively spawning fresh instances of itself. By grounding the agent abstraction in the OS process model, Quine inherits isolation, composition, and resource control directly from the kernel, while naturally supporting recursive delegation, context renewal via exec, and shell-native composition. The design also exposes where the POSIX process model stops: processes provide a robust substrate for execution, but not a complete runtime model for cognition. In particular, the analysis points toward two immediate extensions beyond process semantics: task-relative worlds and revisable time. A reference implementation of Quine is publicly available on GitHub.
Motivation & Objective
- Argue that the OS can serve as the runtime substrate for LLM agents by mapping agent identity, interface, state, and lifecycle to POSIX primitives.
- Provide a reference single-image runtime that realizes agents as native POSIX processes with recursive delegation.
- Analyze the reach and limits of the POSIX process model for cognition and identify extensions beyond process semantics (world and time).
Proposed method
- Define a disciplined mapping from agent concepts to POSIX primitives across identity, interface, state, and lifecycle.
- Implement a unitary Go executable that serves as both runtime and agent template with recursive self-instantiation.
- Adopt a host-guest architecture separating deterministic control (host) from probabilistic cognition (guest).
- Expose tools sh, fork, exec, exit as the primary interaction interface.
- Maintain a 5-channel I/O contract (argv, stdin, stdout, stderr, exit status) tied to POSIX streams and exit codes.
- Demonstrate POSIX conformance via file descriptor mappings and shell-level compositions.
Experimental results
Research questions
- RQ1Can LLM agent lifecycles be realized purely through POSIX process semantics without external orchestration?
- RQ2What level of isolation, composition, and continuity does the OS process model provide for cognitive agents?
- RQ3What are the immediate extensions beyond process semantics needed to support agent worlds and revisable time?
- RQ4How does a single-image runtime enable recursive delegation and shell-native composition of agents?
- RQ5What are the practical limits of the POSIX model for cognition as evidenced by operational demonstrations?
Key findings
- Agents realized as native POSIX processes yield kernel-enforced containment, composition via recursive delegation, and continuity through exec-based context renewal.
- A host-guest architecture separates deterministic control from probabilistic cognition, with the host managing state and I/O while the guest handles reasoning and tool calls.
- The runtime supports standard shell composition and pipelines, enabling three illustrative shell patterns and reflexive external invocations as ordinary POSIX commands.
- A 3,100-line host plus 2,600-line provider layer yields a ~9.8 MB single binary supporting multiple LLM providers.
- Operational validations show recursive delegation (a 3-level tree with 36 sessions) and exec-based context renewal (up to 9 cycles in MRCR-style tasks) with improved reproducibility when streaming context.
- The architecture highlights boundaries of POSIX for cognition, notably world-scoping and revisable time, suggesting future design directions beyond traditional process semantics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.