Appearance
Pair Programming
Collaborative development modes with AI.
Available Modes
Driver Mode
You code, AI navigates.
Start with:
I'll drive. Help me implement [feature].AI provides:
- Real-time suggestions
- Error catching
- Pattern recommendations
- Documentation pointers
Best for:
- Learning the codebase
- Complex logic implementation
- When you want to understand deeply
Navigator Mode
AI codes, you guide.
Start with:
You drive. Implement [feature].Your role:
- Provide direction
- Approve/reject suggestions
- Catch issues early
- Guide architecture
Best for:
- Well-understood features
- Boilerplate code
- When you know what you want
Switch Mode
Alternate roles.
Let's switch. You drive now.Best for:
- Long sessions
- Complex features
- When stuck
TDD Mode
Test-driven development.
Start with:
Let's do TDD for [feature].Cycle:
- Red - Write failing test
- Green - Minimum code to pass
- Refactor - Clean up
Best for:
- Business logic
- Algorithm implementation
- High-quality requirements
Mentor Mode
Learning-focused sessions.
Teach me about [topic] while we implement [feature].AI:
- Explains concepts
- Shows patterns
- Answers questions
- Provides context
Best for:
- Learning new tech
- Unfamiliar codebases
- Junior developers
Debug Mode
Collaborative debugging.
Let's debug this together: [issue]Approach:
- Reproduce issue
- Form hypothesis
- Test hypothesis
- Implement fix
- Verify
Best for:
- Complex bugs
- Learning debugging techniques
- Production issues
Session Tips
Starting Well
- Set context - Share relevant files, logs, requirements
- Define scope - Be specific about what to accomplish
- Choose mode - Pick appropriate collaboration style
During Session
- Communicate intent - Explain your thinking
- Ask questions - Don't assume
- Take breaks - Long sessions lose focus
- Document decisions - Capture rationale
Ending Well
- Summarize progress - What was accomplished
- List remaining - What's left to do
- Commit work - Don't lose progress
Protocol: Receiving Feedback
When AI suggests changes:
- Evaluate technically - Does it make sense?
- Verify - Can you test it?
- Push back if needed - Explain your reasoning
WARNING
Avoid performative agreement. "Great point!" without evaluation isn't helpful.
Protocol: Debugging
- Read the error - Actually read it
- Reproduce - Confirm the issue exists
- Investigate - Find root cause, not symptoms
- Fix at source - Don't mask the problem
- Verify - Confirm fix works
WARNING
Don't guess. Investigate before fixing.
Example Sessions
TDD Session
You: Let's do TDD for a password validator.
AI: Starting TDD. First test?
You: Password must be at least 8 characters.
AI: [Writes test: expect(validate("short")).toBe(false)]
Test fails. Implementing minimum code...
[Writes validation]
Test passes. Refactor needed?
You: Looks good. Next: must have a number.
AI: [Writes next test, continues cycle]Debug Session
You: Let's debug. Users report login fails after password reset.
AI: Reproducing... Can you share error logs?
You: [Pastes logs]
AI: I see the token isn't being cleared after reset.
Hypothesis: Old token conflicts with new password hash.
You: Makes sense. Check the reset flow.
AI: [Traces through code]
Found it. Reset doesn't invalidate existing sessions.
Should we add session invalidation to reset handler?
You: Yes, implement that.Related
- Workflows - Development patterns
- Fixing Commands - Debug commands