Everything is Context: Agentic File System Abstraction for Context Engineering
By: Xiwei Xu , Robert Mao , Quan Bai and more
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.
Similar Papers
Context Engineering for AI Agents in Open-Source Software
Software Engineering
Helps AI understand code projects better.
Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models
Machine Learning (CS)
Helps AI remember more details for better thinking.
Foundational Design Principles and Patterns for Building Robust and Adaptive GenAI-Native Systems
Software Engineering
Makes smart computer programs more reliable and easier to build.