Code Review Pipeline
Automatically review PRs with multiple specialized agents.- Parallel agents for different review focuses
- Fork threads to isolate each reviewer’s context
- Join to wait for all reviews before summarizing
Test-Driven Bug Fix
Implement a fix using a test-first approach with retry loop.- Test-first approach ensures fix is verified
- Loop with iteration limit prevents infinite retries
- Conditional message injection adds context on failures
Documentation Generator
Generate documentation for a codebase with structure analysis.- Sequential pipeline: analyze → generate → review
- Thread inheritance maintains context across stages
- Specialized prompts for each role
Parallel Implementation Competition
Have multiple agents implement the same feature, then pick the best.- Worktrees provide isolated Git environments
thread: mode: newkeeps implementations separate- Join synchronizes parallel work
- Final comparison sees both implementations’ context
More Examples
See Workflow Snippets for more copy-paste patterns covering:- Approval workflows
- Context management
- Response tools
- Loop patterns