These patterns weren't designed. They were extracted -- from the practical constraints of building an LLM-powered personality modeling system on a single developer's budget, where every API call costs real money and "close enough" isn't good enough for a model that's supposed to sound like a specific person.
The Gamma Corpus project ingests roughly 28 years of written communication and uses it to power voice-faithful content generation. Building the extraction and generation infrastructure on top of that corpus is where six recurring structural patterns emerged: Tiered Model Cascade, Dual-Channel Retrieval, Corpus-as-Byproduct, Behavioral Archaeology, Behavioral Encoding in Tool Context, and the Two-Analyst Workflow. Each one solved a specific problem -- cost optimization, hallucination prevention, corpus bootstrapping, self-knowledge grounding, habit enforcement, and strategic-tactical task routing.
The patterns are presented in a format loosely inspired by the Gang of Four: intent, motivation, structure, known uses, and trade-offs. Every pattern has at least two concrete implementations with specific cost figures, line counts, and failure modes drawn from production code. The "when it breaks down" sections are probably the most valuable parts. Anyone can describe a technique that works; the interesting question is always where the edges are.