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
Scenario: You need to build a user authentication system with registration, login, and password reset.Without Schaltwerk: Work on one feature at a time, or risk merge conflicts if working in parallel.With Schaltwerk:Result: 3 features built in parallel, tested independently, integrated safely.
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
Bug Fixing at Scale
Fix multiple bugs simultaneously
Fix multiple bugs simultaneously
Scenario: Your test suite has 15 failing tests across different modules.Without Schaltwerk: Fix bugs one at a time, or juggle multiple branches manually.With Schaltwerk:Result: 15 bugs fixed in parallel, each tested in isolation, zero regressions.
Assign agents
Start sessions for each bug:
fix-auth-login→ Claude Codefix-api-users→ Codexfix-ui-profile→ OpenCode- Continue for remaining bugs
Safe Refactoring
Refactor code with confidence
Refactor code with confidence
Scenario: Legacy payment module needs refactoring to use Strategy pattern for different payment providers.Without Schaltwerk: Refactor on main branch and hope tests catch issues, or create complex branch structure manually.With Schaltwerk:
Result: Major refactoring completed safely, tested thoroughly, zero downtime.
Comparing Implementations
Let multiple agents solve the same problem
Let multiple agents solve the same problem
Scenario: Need to implement a caching layer, but not sure about the best approach.Without Schaltwerk: Implement one solution, hope it’s optimal, or spend time prototyping manually.With Schaltwerk:Result: Three solutions tested in parallel, best one chosen based on data, not guesswork.
Launch multiple agents
- Session 1: Claude Code → Redis-based cache
- Session 2: Codex → In-memory LRU cache
- Session 3: OpenCode → Memcached-based cache
Exploratory Development
Prototype ideas quickly
Prototype ideas quickly
Scenario: Exploring different UI frameworks for a new feature.Without Schaltwerk: Create branches manually, switch between them, cleanup after.With Schaltwerk:Result: Rapid exploration of alternatives without cluttering your main branch.
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
Code Review Assistance
Get AI help reviewing pull requests
Get AI help reviewing pull requests
Scenario: Large PR needs review, but you’re short on time.Without Schaltwerk: Review manually or use basic GitHub tools.With Schaltwerk:Result: Faster, more thorough code reviews with AI assistance.
Agent reviews code
- Claude Code analyzes diff
- Identifies potential bugs
- Suggests improvements
- Checks test coverage
Automated Issue Triage
Convert GitHub issues to sessions automatically
Convert GitHub issues to sessions automatically
Scenario: New issues are filed daily, need to be triaged and assigned.Without Schaltwerk: Manually create branches, assign developers, track progress.With Schaltwerk:Result: Issues automatically converted to actionable sessions, faster response time.
Auto-create sessions
- Webhook receives new issue
- Creates Schaltwerk session automatically
- Agent starts investigating
Documentation Generation
Keep docs in sync with code
Keep docs in sync with code
Scenario: Code changes but documentation lags behind.Without Schaltwerk: Manually update docs, often forgotten.With Schaltwerk:Result: Documentation always reflects current code state.
Agent updates docs
- Scans code for API changes
- Updates relevant documentation
- Maintains consistent formatting
Performance Optimization
Optimize different parts in parallel
Optimize different parts in parallel
Scenario: Application is slow, multiple bottlenecks identified.Without Schaltwerk: Optimize one at a time, long iteration cycle.With Schaltwerk:Result: Multiple optimizations in parallel, massive speedup.
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)
Test Coverage Improvement
Increase test coverage systematically
Increase test coverage systematically
Scenario: Code coverage is 45%, need to reach 80%+.Without Schaltwerk: Write tests manually, slow progress.With Schaltwerk:Result: Test coverage improved from 45% to 87% efficiently.
Agents write tests
- Multiple agents work on different files
- Each writes comprehensive test suites
- Follows existing test patterns
Migration Projects
Migrate codebase incrementally
Migrate codebase incrementally
Scenario: Migrate from JavaScript to TypeScript gradually.Without Schaltwerk: Migrate files one by one on main branch, risky.With Schaltwerk:Result: Complete migration with minimal risk, tested at every step.
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
Best Practices Across Use Cases
Start Small
Begin with simple use casesBuild confidence before complex workflows
Name Clearly
Use descriptive session names
fix-login-bug not session1Test Everything
Run tests in each session before mergingCatch issues early
Review Carefully
AI agents make mistakesAlways review generated code
Iterate Quickly
Fast feedback loopsDon’t let sessions pile up
Document Workflows
Save successful patterns as templatesReuse proven approaches

