Search papers, labs, and topics across Lattice.
This paper introduces a codified context infrastructure designed to improve the performance and consistency of LLM-based coding agents in large codebases by providing persistent memory and project awareness. The infrastructure comprises a hot-memory constitution, specialized domain-expert agents, and a cold-memory knowledge base. Evaluation on a 108,000-line C# distributed system demonstrates the infrastructure's ability to propagate context across sessions, prevent failures, and maintain consistency, supported by quantitative metrics and observational case studies.
LLM coding agents can finally remember project conventions and avoid repeating mistakes, thanks to a novel codified context infrastructure that provides persistent memory.
LLM-based agentic coding assistants lack persistent memory: they lose coherence across sessions, forget project conventions, and repeat known mistakes. Recent studies characterize how developers configure agents through manifest files, but an open challenge remains how to scale such configurations for large, multi-agent projects. 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 on infrastructure growth and interaction patterns across 283 development sessions are reported alongside four observational case studies illustrating how codified context propagates across sessions to prevent failures and maintain consistency. The framework is published as an open-source companion repository.