From 1073bc78a16e22ec1f5577554acaa1ebb9f7940e Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 12 Aug 2025 19:50:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/.claude/commands/pair/modes.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1755028187.json | 1 + .claude/checkpoints/1755028189.json | 1 + .claude/commands/pair/modes.md | 348 ++++++++++++++++++++++++++++ 3 files changed, 350 insertions(+) create mode 100644 .claude/checkpoints/1755028187.json create mode 100644 .claude/checkpoints/1755028189.json create mode 100644 .claude/commands/pair/modes.md diff --git a/.claude/checkpoints/1755028187.json b/.claude/checkpoints/1755028187.json new file mode 100644 index 0000000000..d41ecf3f8e --- /dev/null +++ b/.claude/checkpoints/1755028187.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250812-194947", "file": "/workspaces/claude-code-flow/.claude/commands/pair/start.md", "timestamp": "2025-08-12T19:49:47Z", "type": "pre-edit", "original_branch": "alpha-89"} diff --git a/.claude/checkpoints/1755028189.json b/.claude/checkpoints/1755028189.json new file mode 100644 index 0000000000..9467250193 --- /dev/null +++ b/.claude/checkpoints/1755028189.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250812-194949", "file": "/workspaces/claude-code-flow/.claude/commands/pair/start.md", "timestamp": "2025-08-12T19:49:49Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 8310 ++++++++++++++++++++++++++---- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1755028148.json | 1 + .claude/commands/pair/start.md | 209 + claude-flow-wiki | 0 6 files changed, 7621 insertions(+), 907 deletions(-) "} diff --git a/.claude/commands/pair/modes.md b/.claude/commands/pair/modes.md new file mode 100644 index 0000000000..52b725c150 --- /dev/null +++ b/.claude/commands/pair/modes.md @@ -0,0 +1,348 @@ +# Pair Programming Modes + +Detailed guide to pair programming modes and their optimal use cases. + +## Driver Mode + +In driver mode, you write the code while the AI acts as navigator. + +### Usage +```bash +claude-flow pair --start --mode driver +``` + +### Responsibilities + +**You (Driver):** +- Write the actual code +- Implement solutions +- Make immediate decisions +- Handle syntax and structure + +**AI (Navigator):** +- Provide strategic guidance +- Spot potential issues +- Suggest improvements +- Review in real-time +- Track overall direction + +### Best For +- Learning new patterns +- Implementing familiar features +- Quick iterations +- Hands-on debugging + +### Example Session +```bash +claude-flow pair --start \ + --mode driver \ + --agent senior-navigator \ + --review \ + --verify +``` + +### Commands in Driver Mode +``` +/suggest - Get implementation suggestions +/review - Request code review +/explain - Ask for explanations +/optimize - Request optimization ideas +/patterns - Get pattern recommendations +``` + +## Navigator Mode + +In navigator mode, the AI writes code while you provide guidance. + +### Usage +```bash +claude-flow pair --start --mode navigator +``` + +### Responsibilities + +**You (Navigator):** +- Provide high-level direction +- Review generated code +- Make architectural decisions +- Ensure business requirements + +**AI (Driver):** +- Write implementation code +- Handle syntax details +- Implement your guidance +- Manage boilerplate +- Execute refactoring + +### Best For +- Rapid prototyping +- Boilerplate generation +- Learning from AI patterns +- Exploring solutions + +### Example Session +```bash +claude-flow pair --start \ + --mode navigator \ + --agent expert-coder \ + --test \ + --language python +``` + +### Commands in Navigator Mode +``` +/implement - Direct implementation +/refactor - Request refactoring +/test - Generate tests +/document - Add documentation +/alternate - See alternative approaches +``` + +## Switch Mode + +Automatically alternates between driver and navigator roles. + +### Usage +```bash +claude-flow pair --start --mode switch [--interval