Skip to content

Patterns

Patterns are composable designs that connect primitives into reliable workflows. Each pattern solves a recurring problem in agentic system design -- from enforcing execution contracts to managing delegation hierarchies.

Execution Patterns

PatternPurpose
Closed Loop ExecutionBuild-review-fix cycles that converge on quality
Closed Loop Systems WinWhy feedback loops outperform open-loop approaches
Review Fix Closed LoopSpecific implementation of the review-fix cycle
Phase GateQuality checkpoint between workflow phases
Phase Gate with Artifact ExtractionPhase gates that capture outputs as artifacts
Plan as PromptUsing the plan itself as the execution prompt

Delegation Patterns

PatternPurpose
Agent Delegation HierarchyStructured chain of command for multi-agent systems
Reduce and DelegateBreak work down, then hand pieces to specialists
Scout SwarmParallel scouts that explore before the main agent acts
Stakeholder TrifectaThree-role pattern for balanced decision making
Work ClaimAgents claim work items to prevent conflicts

Enforcement Patterns

PatternPurpose
Classification GateRoute work by type before processing
Hook Enforced ContractUse hooks to guarantee contract compliance
Hook Event SelectionChoose the right lifecycle event for each hook
Layered EnforcementMultiple enforcement layers for defense in depth
Template Declared ContractsTemplates that declare their own requirements

Prompt Patterns

PatternPurpose
Adaptive Template ActivationTemplates that activate based on context
Higher Order PromptPrompts that generate other prompts
Metaprompt Variable InjectionInjecting variables into metaprompts at runtime
Prompt Template AuthoringBest practices for writing prompt templates
Slash Command TemplateStandard structure for slash command definitions
PITER FrameworkPurpose-Input-Transform-Evaluate-Report

Composition Patterns

PatternPurpose
Skill CompositionCombining skills into compound capabilities
Builder Validator PairPaired agents that build and validate
Act Learn ReuseExecute, extract lessons, apply to future work
Progressive DisclosureReveal complexity gradually as needed
Progressive Autonomy StagingIncrease agent autonomy in controlled stages
Domain ExpertCompound of 3-5 command surfaces sharing a knowledge domain

Maintenance Patterns

PatternPurpose
Correction TaskStructured approach to fixing agent mistakes
Orphan ReaperClean up abandoned or orphaned artifacts
Task Create ScriptAutomated task creation from templates
Shared Briefing DocumentSingle source of truth for multi-agent context