Note: Command examples usebun. Replacebun run …withnpm run …(andbun installwithnpm install) if you prefer npm.
Parallel Feature Development
Build multiple features simultaneously
Build multiple features simultaneously
Create specs
Launch agents
- Claude Code works on registration
- OpenCode handles login
- Codex implements password reset
- All in isolated worktrees
Work in parallel
- No conflicts between agents
- Each has own git branch
- Switch between sessions to monitor
Review and integrate
- Test each feature independently
- Merge in dependency order
- Run integration tests
Bug Fixing at Scale
Fix multiple bugs simultaneously
Fix multiple bugs simultaneously
Identify bugs
Create specs
Assign agents
fix-auth-login→ Claude Codefix-api-users→ Codexfix-ui-profile→ OpenCode- Continue for remaining bugs
Verify fixes
Merge passing fixes
- Mark sessions as reviewed after tests pass
- Merge fixes one by one
- Re-run full suite after each merge
Safe Refactoring
Refactor code with confidence
Refactor code with confidence
Create refactoring spec
Start refactoring session
Incremental approach
Validate thoroughly
Review changes
- Inspect every file in diff view
- Verify no functionality changed
- Check performance metrics
- Mark as reviewed only when confident
Comparing Implementations
Let multiple agents solve the same problem
Let multiple agents solve the same problem
Create identical specs
Launch multiple agents
- Session 1: Claude Code → Redis-based cache
- Session 2: Codex → In-memory LRU cache
- Session 3: OpenCode → Memcached-based cache
Compare implementations
Benchmark all three
Choose winner
Exploratory Development
Prototype ideas quickly
Prototype ideas quickly
Create exploration specs
Rapid prototyping
- Each agent builds same feature in different framework
- No setup overhead (automatic worktrees)
- Switch between sessions to compare
Quick evaluation
- Check bundle sizes
- Measure load times
- Review code complexity
- Get user feedback on each
Decide and cleanup
- Merge chosen approach
- Convert others to specs for documentation
- Or cancel if not needed
Code Review Assistance
Get AI help reviewing pull requests
Get AI help reviewing pull requests
Create review session via MCP
Agent reviews code
- Claude Code analyzes diff
- Identifies potential bugs
- Suggests improvements
- Checks test coverage
Get structured feedback
Manual review
Automated Issue Triage
Convert GitHub issues to sessions automatically
Convert GitHub issues to sessions automatically
Setup webhook
Auto-create sessions
- Webhook receives new issue
- Creates Schaltwerk session automatically
- Agent starts investigating
Agent investigates
- Reproduces issue
- Identifies root cause
- Proposes fix
- Adds tests
Human review
- Review proposed fix in Schaltwerk
- Test locally
- Merge if good, or provide feedback
Documentation Generation
Keep docs in sync with code
Keep docs in sync with code
Create doc update spec
Agent updates docs
- Scans code for API changes
- Updates relevant documentation
- Maintains consistent formatting
Review doc changes
- Verify accuracy
- Check examples work
- Ensure clarity
Merge with code changes
- Docs stay in sync with code
- No outdated documentation
Performance Optimization
Optimize different parts in parallel
Optimize different parts in parallel
Identify bottlenecks
Create optimization specs
- Spec 1: Optimize API response time
- Spec 2: Optimize frontend rendering
- Spec 3: Optimize image loading
Parallel optimization
- Claude Code optimizes API (caching, query optimization)
- Codex optimizes frontend (code splitting, lazy loading)
- OpenCode optimizes images (compression, lazy loading, CDN)
Benchmark improvements
Merge all improvements
- Integrate optimizations
- Final benchmark: 95% faster overall
Test Coverage Improvement
Increase test coverage systematically
Increase test coverage systematically
Identify untested code
Create test specs
Agents write tests
- Multiple agents work on different files
- Each writes comprehensive test suites
- Follows existing test patterns
Verify coverage
Migration Projects
Migrate codebase incrementally
Migrate codebase incrementally
Plan migration
Create sessions per phase
- Session 1: Migrate utilities
- Session 2: Migrate components (depends on Session 1)
- Session 3: Migrate business logic (depends on Session 2)
- Session 4: Migrate entry points (depends on Session 3)
Incremental migration
- Complete Phase 1, test, merge
- Complete Phase 2, test, merge
- Continue through all phases
Verify at each step
Best Practices Across Use Cases
Start Small
Name Clearly
fix-login-bug not session1
