How the Legal Framework is built in Claude Code: three tiers, three Python scripts, a reflective agent hook and the operating loop for Common Law agent memory.
Our context mechanisms are good at prescription - the rules an agent is told to follow. They are poor at experience - the hard-won nudges we supply at the moment of ambiguity. This is a framework that borrows from our legal system to give that experience a home, the Common Law, and recalls it just-in-time rather than in advance.
Agents are where the web was before SOLID and MVC. Thinking aloud about the pattern emerging now (a Soul, a Mind and a Body) and how it pointed to the Legal Framework.
Compose a team of AI agents by cognitive profile (how they think), not function. Covers weighted traits, reasoning-mode escalation and the orchestrator problem.