arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.18030cs.OScs.AIcs.PLcs.SE
收藏

Quine:将LLM代理作为原生POSIX进程实现

Quine: Realizing LLM Agents as Native POSIX Processes

Independent Researcher(独立研究员)

Hao Ke

AI总结:

Quine通过将LLM代理作为原生POSIX进程实现,利用操作系统提供的隔离、调度和通信机制,继承内核的隔离、组合和资源控制能力,支持递归委托和上下文刷新。

摘要:

当前LLM代理框架通常在应用层实现隔离、调度和通信,尽管这些机制已由成熟的操作系统提供。本文提出Quine,一种运行时架构和参考实现,将LLM代理作为原生POSIX进程实现。映射明确:身份是PID,接口是标准流和退出状态,状态是内存、环境变量和文件系统,生命周期是fork/exec/exit。单个可执行文件通过递归生成自身的新实例实现此模型。通过将代理抽象 grounded 在操作系统进程模型中,Quine直接继承内核的隔离、组合和资源控制能力,同时自然支持递归委托、通过exec实现的上下文刷新和shell原生组合。设计也暴露了POSIX进程模型的局限:进程提供执行的稳健基础,但不提供完整的认知运行时模型。特别是,分析指出两个超出进程语义的立即扩展方向:任务相对世界和可修订时间。Quine的参考实现已公开在GitHub上。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑