Memory
Two files that make corrections persist — a growing registry of patterns organized by category, and a change propagation map that prevents drift. AI stops repeating the same mistakes.
The problem
Corrections don't persist. You fix the same mistake three times across three sessions. Each correction is local to one conversation. There's no system for capturing what you learned and applying it everywhere.
Most people re-explain their preferences every session. That's not a workflow problem — it's a missing layer. Memory is the structural fix: two files that accumulate corrections over time and make them permanent constraints for every agent.
What gets encoded
Two files working together: one captures what you've learned, the other tracks what needs updating when things change.
Real example
Here's an entry from Agent Prime's actual learnings file — a voice pattern caught during a Writer draft review:
### V7: No "not X but Y" constructions
**Source:** Writer draft review, 2026-02-15
**Pattern:** AI defaults to defining things by contrast ("not a tool
but a partner"). This is weak writing. State the positive thing
directly. Say what it IS, not what it isn't.
**Propagation:** All agent prompts, Writer voice rules
Every agent reads learnings.md before producing output. That entry alone eliminated an entire class of weak framing across every artifact — permanently, from that session forward.
How to set it up
Create shared/learnings.md with category headers. Start empty. Every time you correct AI output, capture the pattern — not just the fix, but what class of mistake it was:
## Voice & Tone ## Conceptual Framing ## Process & Workflow ## Content Quality
Create shared/dependency_map.md listing which files read from which. When you change one, update its dependents. The format is simple — source file, what depends on it, what to check after a change.
The rule that makes it compound: when AI corrects, the first action is to capture the pattern, not fix the immediate output. Fix comes second. Miss the capture and the same class of error recurs next session.