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.
Related Articles
Context Windows
Claude API Documentation
Long Context Window Tips
Comprehensive guide to prompt engineering techniques for Claude's latest models, covering clarity, examples, XML structuring, thinking, and agentic systems.
Long Context
Learn about how to get started building with long context (1 million context window) on Gemini.
Progressive Disclosure
Instead of loading an entire codebase—which would immediately overwhelm the attention budget—modern agents use JIT context. The assistant dynamically loads only the necessary data at runtime.