一切皆为上下文:面向上下文工程的代理文件系统抽象
Everything is Context: Agentic File System Abstraction for Context Engineering
AI总结:
本文提出一种基于文件系统的上下文工程抽象,通过统一挂载、元数据和访问控制,实现可验证的上下文管理,支持可问责和以人类为中心的AI协作。
摘要:
生成式人工智能(GenAI)通过引入基础模型作为预训练子系统,重塑了软件系统设计,重新定义了架构和操作。新兴的挑战不再是模型微调,而是上下文工程——系统如何捕捉、组织和管理外部知识、记忆、工具和人类输入,以实现可信推理。现有实践如提示工程、检索增强生成(RAG)和工具集成仍显得碎片化,产生临时产物,限制了可追溯性和问责性。本文提出了一种面向上下文工程的文件系统抽象,受Unix“一切皆为文件”理念的启发。该抽象提供了一种持久、受控的基础设施,通过统一挂载、元数据和访问控制来管理异构上下文产物。在开源AIGNE框架中实现,该架构实现了可验证的上下文工程流水线,包括上下文构造器、加载器和评估器,能够在令牌约束下组装、交付和验证上下文。随着GenAI成为决策支持中的积极合作者,人类在其中扮演着核心角色,作为保管者、验证者和共同推理者。所提出的架构建立了可重用的基础,为可问责和以人类为中心的AI协作提供了支持,通过两个示例展示:具有记忆的代理和基于MCP的GitHub助手。在AIGNE框架中的实现展示了该架构如何在开发和工业环境中得到实施,支持可验证、可维护和工业级的GenAI系统。
英文摘要:
Generative AI (GenAI) has reshaped software system design by introducing foundation models as pre-trained subsystems that redefine architectures and operations. The emerging challenge is no longer model fine-tuning but context engineering-how systems capture, structure, and govern external knowledge, memory, tools, and human input to enable trustworthy reasoning. Existing practices such as prompt engineering, retrieval-augmented generation (RAG), and tool integration remain fragmented, producing transient artefacts that limit traceability and accountability. This paper proposes a file-system abstraction for context engineering, inspired by the Unix notion that 'everything is a file'. The abstraction offers a persistent, governed infrastructure for managing heterogeneous context artefacts through uniform mounting, metadata, and access control. Implemented within the open-source AIGNE framework, the architecture realises a verifiable context-engineering pipeline, comprising the Context Constructor, Loader, and Evaluator, that assembles, delivers, and validates context under token constraints. As GenAI becomes an active collaborator in decision support, humans play a central role as curators, verifiers, and co-reasoners. The proposed architecture establishes a reusable foundation for accountable and human-centred AI co-work, demonstrated through two exemplars: an agent with memory and an MCP-based GitHub assistant. The implementation within the AIGNE framework demonstrates how the architecture can be operationalised in developer and industrial settings, supporting verifiable, maintainable, and industry-ready GenAI systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。