Also, a tip for Claude Code: put rules in .claude/rules and add `paths:` frontmatter, so a rule loads only for matching files.
A hard part of this approach is scoped rules: you still need a human to decide which records are still true.
What we try to do at Substrate with our memory is to automate this: 1 memory outside of any agent, where all the facts have their source.
Did the agent-written records go stale or just pile up?