arXivcontext management2026-02-27

Codified Context: Infrastructure for AI Agents in a Complex Codebase

Aristidis Vasilopoulos

View Original →

Abstract

LLM-based agentic coding assistants lack persistent memory: they lose coherence across sessions, forget project conventions, and repeat known mistakes. This paper presents a three-component codified context infrastructure developed during construction of a 108,000-line C# distributed system: (1) a hot-memory constitution encoding conventions, retrieval hooks, and orchestration protocols; (2) 19 specialized domain-expert agents; and (3) a cold-memory knowledge base of 34 on-demand specification documents. Quantitative metrics across 283 development sessions alongside four observational case studies illustrate how codified context propagates across sessions to prevent failures and maintain consistency.

Relevance to Tokalator

Codeified Context is the closest real-world complement to Tokalator: where Tokalator monitors and optimises the live context window within a session (intra-session), Codified Context structures persistent cross-session memory to prevent LLMs from forgetting project conventions (inter-session). Together they address the full context management lifecycle for AI-assisted software development.

cs.SEcs.AI

Related Articles