Persistent Context for Coding Agents: Practical Architecture
What an AI coding agent should actually remember, when it should retrieve it, and how to validate claims against live repository reality.
OpenLotus is an independent project memory and drift control layer for AI coding agents. It keeps your project's goals, decisions, rules, and progress in one place outside the chat window, so your AI never starts from zero or quietly drifts off-plan.
1. What belongs in persistent context
Persist four things: active goals and tasks, architectural decisions with evidence, hard boundaries/constraints, and failure lessons. Leave raw file contents in Git where tools can read them on demand.
Common Questions
How do I seed persistent context for an existing repo?
Use bootstrap_state or npx openlotus bootstrap to parse README.md, PROGRESS.md, AGENTS.md, and CLAUDE.md into your initial ProgressMap.
Git remembers what changed. OpenLotus remembers why.
Give your AI coding tool a permanent project memory and catch drift before broken code piles up.