Barnum Repertoire
Each routine below is a self-contained workflow you can copy, adapt, and combine.
Quick Reference​
| Routine | Description |
|---|---|
| Linear Pipeline | Step-by-step processing (A → B → C) |
| Branching | Conditional paths based on output |
| Fan-Out | Split one task into many parallel tasks |
| Fan-Out with Finally | Parallel changes with commit on completion |
| Sequential Processing | Enforce single-threaded task execution |
| Adversarial Review | Implement → judge → revise loop |
| Branching Refactor | Route to specialized agents based on analysis |
| Error Recovery | Catch failures and route to recovery steps |
| Pre/Post/Finally Hooks | Transform data, aggregate results, cleanup |
| Validation | Schema validation for inputs and outputs |
| Local Commands | Run shell scripts instead of agents |
| Code Review | Parallel PR review with standards and security checks |
| Legal Review | Parallel contract analysis with final recommendation |
| Document Verification | Extract and fact-check claims from a document |
| Editing Assistant | Parallel writing analysis: thesis, logic, structure |