Everything is Context: Agentic File System Abstraction for Context Engineering

📅 2025-12-05
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the fragmentation, traceability challenges, and governance difficulties inherent in context engineering for generative AI. We propose a Unix-inspired “everything-as-a-file” abstraction—a Context File System—that uniformly models external knowledge, memory, tools, and human inputs as persistent, metadata-annotated, and access-controlled context elements, supporting standardized mounting and integrity verification. We design a verifiable pipeline comprising context constructors, loaders, and evaluators to enable systematic assembly and quality assurance under token constraints. A prototype is implemented within the open-source AIGNE framework, validated through two real-world applications: a memory-augmented agent and an MCP-driven GitHub assistant. Results demonstrate improved trustworthiness, maintainability, and governability of generative AI systems in both development and industrial settings. The core contribution is the first application of filesystem paradigms to context engineering, establishing a unified infrastructure across heterogeneous techniques—including RAG, tool integration, and prompt engineering.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Manages heterogeneous context artefacts for trustworthy AI reasoning
Unifies fragmented practices like prompt engineering and RAG
Establishes a persistent, governed infrastructure for accountable AI co-work
Innovation

Methods, ideas, or system contributions that make the work stand out.

File-system abstraction for context engineering
Uniform mounting and metadata management
Verifiable pipeline with constructor, loader, evaluator
🔎 Similar Papers
No similar papers found.
X
Xiwei Xu
CSIRO’s Data61, NSW Australia; University of New South Wales, NSW Australia
R
Robert Mao
ArcBlock, Inc, Seattle, USA
Quan Bai
Quan Bai
University of Tasmania
Multi-agent systemsmachine learningdata miningartificial intelligence
X
Xuewu Gu
ArcBlock, Inc, Seattle, USA
Y
Yechao Li
ArcBlock, Inc, Seattle, USA
Liming Zhu
Liming Zhu
Research Director at CSIRO’s Data61 & Prof at University of New South Wales
Software ArchitectureSE4AIResponsible AIAI SafetyBlockchain