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
Tokalator: A Context Engineering Toolkit for Artificial Intelligence Coding Assistants
We present Tokalator, an open-source context engineering toolkit that provides real-time token budget monitoring, 11 slash commands, quality modeling calculators, and cost analysis tools for AI coding assistants. Supporting 17 large language models across three providers, the toolkit includes a VS Code extension, CLI, and usage tracker. Survey findings reveal that instruction-file injection and low-relevance open tabs are among the primary invisible budget consumers.
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.