Cookbook
This cookbook provides copy-paste solutions for common LumenFlow scenarios.
WU Lifecycle Patterns
Section titled “WU Lifecycle Patterns”Quick Bug Fix
Section titled “Quick Bug Fix”For small, urgent fixes that don’t need full WU ceremony:
Parallel WUs (Different Lanes)
Section titled “Parallel WUs (Different Lanes)”Work on multiple WUs simultaneously using different lanes:
Blocked WU
Section titled “Blocked WU”When a WU can’t proceed due to external dependency:
Resume Orphaned WU
Section titled “Resume Orphaned WU”If a WU was abandoned mid-work:
Git Patterns
Section titled “Git Patterns”Commit Message Format
Section titled “Commit Message Format”Undo Uncommitted Changes
Section titled “Undo Uncommitted Changes”If you made changes in the wrong place:
Sync Worktree with Main
Section titled “Sync Worktree with Main”If main has updates you need:
Fix Diverged Branch
Section titled “Fix Diverged Branch”If your lane branch diverged from main:
Gate Patterns
Section titled “Gate Patterns”Fix Format Failures
Section titled “Fix Format Failures”Fix Lint Failures
Section titled “Fix Lint Failures”Fix Type Errors
Section titled “Fix Type Errors”Skip Gates (Emergency Only)
Section titled “Skip Gates (Emergency Only)”Testing Patterns
Section titled “Testing Patterns”Run Tests for Single Package
Section titled “Run Tests for Single Package”Run Tests with Coverage
Section titled “Run Tests with Coverage”Run Specific Test File
Section titled “Run Specific Test File”Watch Mode During Development
Section titled “Watch Mode During Development”Update Snapshots
Section titled “Update Snapshots”Memory Layer Patterns
Section titled “Memory Layer Patterns”Start Agent Session
Section titled “Start Agent Session”Recover Context After Break
Section titled “Recover Context After Break”Coordinate Multiple Agents
Section titled “Coordinate Multiple Agents”Initiative Patterns
Section titled “Initiative Patterns”Link WU to Initiative
Section titled “Link WU to Initiative”Check Initiative Status
Section titled “Check Initiative Status”Bulk Assign WUs
Section titled “Bulk Assign WUs”Debugging Patterns
Section titled “Debugging Patterns”Check WU Status
Section titled “Check WU Status”List Active WUs
Section titled “List Active WUs”View Event History
Section titled “View Event History”Clean Up Stale Worktrees
Section titled “Clean Up Stale Worktrees”Configuration Patterns
Section titled “Configuration Patterns”Minimal Config for Solo Dev
Section titled “Minimal Config for Solo Dev”Full Team Config
Section titled “Full Team Config”Python Project Config
Section titled “Python Project Config”Multi-Language Monorepo
Section titled “Multi-Language Monorepo”CI/CD Patterns
Section titled “CI/CD Patterns”GitHub Action for Gates
Section titled “GitHub Action for Gates”Gate with Custom Steps
Section titled “Gate with Custom Steps”Troubleshooting Recipes
Section titled “Troubleshooting Recipes””Not in a worktree"
Section titled “”Not in a worktree"”"WU already claimed"
Section titled “"WU already claimed"”"Merge conflict in wu:done"
Section titled “"Merge conflict in wu:done"”"Gates pass locally but fail in CI”
Section titled “"Gates pass locally but fail in CI””Quick Reference
Section titled “Quick Reference”| Task | Command |
|---|---|
| Create WU | pnpm wu:create --title "..." --lane "..." --description "..." --acceptance "..." --exposure ... --code-paths ... --test-paths-unit ... |
| Claim WU | pnpm wu:claim --id WU-XXX --lane "Lane" |
| Run gates | pnpm wu:prep --id WU-XXX |
| Complete WU | pnpm wu:done --id WU-XXX |
| Block WU | pnpm wu:block --id WU-XXX --reason "..." |
| Check status | pnpm wu:status --id WU-XXX |
| Fix format | pnpm format |
| Run tests | pnpm test |
| Memory checkpoint | pnpm mem:checkpoint --wu WU-XXX |
| Check ready work | pnpm mem:ready --wu WU-XXX |
Next Steps
Section titled “Next Steps”- A Day with LumenFlow - Complete workflow walkthrough
- Troubleshooting - More detailed solutions
- CLI Reference - Full command documentation