This workflow shows how to use Open Orchestrator to investigate bugs efficiently, especially when the root cause is unclear.
The Scenario
You have a bug report: "Users report intermittent login failures"
The cause is unknown, so you need to investigate multiple potential causes in parallel.
Step 1: Create Investigation Worktrees
Create separate worktrees for different investigation angles:
# Main investigation
owt new "Investigate login failures" -t bugfix
# Check authentication code
owt new "Check login auth code for race conditions" -t bugfix
# Check database queries
owt new "Check login database queries" -t bugfix
# Check session handling
owt new "Check login session handling" -t bugfixStep 2: Delegate Investigation Tasks
Send targeted investigation tasks:
# General investigation
owt send fix/investigate-login-failures "Investigate intermittent login failures:
1. Review recent changes to login flow
2. Check error logs for patterns
3. Identify common factors in failed logins"
# Auth-specific investigation
owt send fix/check-login-auth-code "Review authentication code:
1. Check password verification logic
2. Review token generation
3. Look for race conditions
4. Check for timing issues"
# Database investigation
owt send fix/check-login-database-queries "Check database-related issues:
1. Review user lookup queries
2. Check for connection pooling issues
3. Look for transaction timeouts
4. Analyze query performance"
# Session investigation
owt send fix/check-login-session-handling "Review session handling:
1. Check session creation logic
2. Review session storage
3. Look for concurrent session issues
4. Check session expiration handling"Step 3: Monitor Progress
Open the Control Plane to watch investigations progress:
owtopen-orchestrator · 4 rows · 14:32:08
NEEDS YOU
fix/check-login-session claude Found issue
IN FLIGHT
fix/investigate-login claude Reviewing logs
fix/check-login-auth claude Analyzing auth
fix/check-login-database claude Checking poolStep 4: Review Findings
When a row surfaces in the NEEDS YOU section, it may have found something. Attach from the Control Plane:
- Navigate to the row with up/down (or
j/k) - Press
ato attach - Review the AI's findings
- Press
Alt+sto return to the Control Plane
Step 5: Coordinate Findings
Once you have leads, coordinate:
# Send findings to main investigation
owt send fix/investigate-login-failures "Session investigation found:
[paste findings]
Cross-reference with your findings"
# Focus remaining investigations
owt send fix/check-login-auth-code "Focus on session token validation -
potential race condition identified"Step 6: Implement Fix
Once the cause is identified, create a fix:
# Create fix worktree
owt new "Fix login race condition" -t hotfix
# Send fix instructions
owt send fix/login-race-condition "Implement fix for login race condition:
- Add mutex around session creation
- Implement retry logic for failed token validation
- Add logging for debugging"Step 7: Test the Fix
Test in a separate worktree:
# Create test worktree
owt new "Test login race condition fix"
# Send test instructions
owt send feat/test-login-race-condition "Create tests for login race condition fix:
- Test concurrent login attempts
- Test session creation under load
- Test token validation timing"Step 8: Merge and Clean Up
After fix is verified:
# Merge the fix
owt merge fix/login-race-condition
# Delete investigation worktrees
owt cleanup --days 0Alternative: Single Worktree Investigation
For simpler bugs, use one worktree with the bugfix template:
# Create with bugfix template
owt new "Fix broken login page" -t bugfix
# Send investigation task
owt send fix/broken-login-page "Investigate and fix: [bug description]"When to Use Parallel Investigation
Use parallel investigation when:
- Root cause is unclear
- Multiple systems could be involved
- Bug is critical and needs fast resolution
- You have time to monitor multiple sessions
Use single worktree when:
- Bug is localized
- Cause is likely known
- Simple fix expected
- Limited monitoring capacity
Tips for Bug Investigation
- Start broad -- Cover multiple potential causes
- Monitor actively -- Watch the Control Plane for early breakthroughs
- Share findings -- Coordinate between investigations
- Focus quickly -- Once cause is found, converge
- Document -- Keep clear task descriptions for reference