Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

πŸ”– Checkpoint: Edit /workspaces/claude-code-flow/.claude/commands/pair/README.md

rUvb1cb40b8a1a6
diff --git a/.claude/checkpoints/1755027774.json b/.claude/checkpoints/1755027774.json
new file mode 100644
index 0000000000..0b4c6ea817
--- /dev/null
+++ b/.claude/checkpoints/1755027774.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-194254", "file": "/workspaces/claude-code-flow/.claude/commands/truth/README.md", "timestamp": "2025-08-12T19:42:54Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755027776.json b/.claude/checkpoints/1755027776.json
new file mode 100644
index 0000000000..3aeb556251
--- /dev/null
+++ b/.claude/checkpoints/1755027776.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-194256", "file": "/workspaces/claude-code-flow/.claude/commands/truth/README.md", "timestamp": "2025-08-12T19:42:56Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 48 +++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755027741.json | 1 + .claude/checkpoints/1755027743.json | 1 + .claude/commands/truth/README.md | 143 +++++++++++++++++++++++++++++++ claude-flow-wiki | 0 7 files changed, 197 insertions(+), 4 deletions(-) "}
diff --git a/.claude/commands/pair/README.md b/.claude/commands/pair/README.md
new file mode 100644
index 0000000000..f7d1b560b8
--- /dev/null
+++ b/.claude/commands/pair/README.md
@@ -0,0 +1,261 @@
+# πŸ‘₯ Pair Programming Command
+
+Collaborative development with real-time verification and AI assistance.
+
+## Overview
+
+The `pair` command enables collaborative pair programming between you and AI agents, with real-time verification, code review, and quality enforcement.
+
+## Usage
+
+```bash
+claude-flow pair [--start] [options]
+```
+
+## Quick Start
+
+```bash
+# Start pair programming session
+claude-flow pair --start
+
+# Start with specific agent
+claude-flow pair --start --agent senior-dev
+
+# Start with verification
+claude-flow pair --start --verify --threshold 0.98
+```
+
+## Options
+
+- `--start` - Start new pair programming session
+- `--agent <name>` - Specify AI pair partner (default: auto-select)
+- `--verify` - Enable real-time verification
+- `--threshold <0-1>` - Verification threshold (default: 0.95)
+- `--mode <type>` - Programming mode: driver, navigator, switch
+- `--focus <area>` - Focus area: refactor, test, debug, implement
+- `--language <lang>` - Primary language for session
+- `--review` - Enable continuous code review
+- `--test` - Run tests after each change
+
+## Modes
+
+### Driver Mode
+You write code, AI provides suggestions and reviews.
+```bash
+claude-flow pair --start --mode driver
+```
+
+### Navigator Mode
+AI writes code, you provide guidance and review.
+```bash
+claude-flow pair --start --mode navigator
+```
+
+### Switch Mode (Default)
+Alternate between driver and navigator roles.
+```bash
+claude-flow pair --start --mode switch --interval 10m
+```
+
+## Features
+
+### Real-Time Verification
+- Continuous truth checking (0.95 threshold)
+- Automatic rollback on verification failure
+- Quality gates before commits
+
+### Code Review
+- Instant feedback on code changes
+- Best practice suggestions
+- Security vulnerability detection
+- Performance optimization tips
+
+### Test Integration
+- Automatic test generation
+- Test-driven development support
+- Coverage monitoring
+- Integration test suggestions
+
+### Collaboration Tools
+- Shared context between you and AI
+- Session history and replay
+- Code explanation on demand
+- Learning from your preferences
+
+## Session Management
+
+### Start Session
+```bash
+# Basic start
+claude-flow pair --start
+
+# With configuration
+claude-flow pair --start \
+ --agent expert-coder \
+ --verify \
+ --test \
+ --focus refactor
+```
+
+### During Session
+```commands
+/help - Show available commands
+/explain - Explain current code
+/suggest - Get improvement suggestions
+/test - Run tests
+/verify - Check verification score
+/switch - Switch driver/navigator roles
+/focus <area> - Change focus area
+/commit - Commit with verification
+/pause - Pause session
+/resume - Resume session
+/end - End session
+```
+
+### End Session
+```bash
+# End and save session
+claude-flow pair --end --save
+
+# End and generate report
+claude-flow pair --end --report
+```
+
+## Examples
+
+### Refactoring Session
+```bash
+claude-flow pair --start \
+ --focus refactor \
+ --verify \
+ --threshold 0.98
+```
+
+### Test-Driven Development
+```bash
+claude-flow pair --start \
+ --focus test \
+ --mode tdd \
+ --language javascript
+```
+
+### Bug Fixing
+```bash
+claude-flow pair --start \
+ --focus debug \
+ --agent debugger-expert \
+ --test
+```
+
+### Code Review Session
+```bash
+claude-flow pair --start \
+ --review \
+ --verify \
+ --agent senior-reviewer
+```
+
+## Integration
+
+### With Git
+```bash
+# Auto-commit with verification
+claude-flow pair --start --git --auto-commit
+
+# Review before commit
+claude-flow pair --start --git --review-commit
+```
+
+### With Testing Frameworks
+```bash
+# Jest integration
+claude-flow pair --start --test-framework jest
+
+# Pytest integration
+claude-flow pair --start --test-framework pytest
+```
+
+### With CI/CD
+```bash
+# CI-friendly mode
+claude-flow pair --start --ci --non-interactive
+```
+
+## Session Output
+
+```
+πŸ‘₯ Pair Programming Session Started
+━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+Partner: expert-coder
+Mode: Switch (10m intervals)
+Focus: Implementation
+Verification: βœ… Enabled (0.95)
+Testing: βœ… Auto-run
+
+Current Role: DRIVER (you)
+Navigator: expert-coder is reviewing...
+
+πŸ“ Working on: src/auth/login.js
+Truth Score: 0.972 βœ…
+Test Coverage: 84% πŸ“ˆ
+
+πŸ’‘ Suggestion: Consider adding input validation for email field
+πŸ” Review: Line 23 - Potential SQL injection vulnerability
+
+Type /help for commands or start coding...
+```
+
+## Quality Metrics
+
+- **Session Duration**: Total pair programming time
+- **Code Quality**: Average truth score during session
+- **Productivity**: Lines changed, features completed
+- **Learning**: Patterns learned from collaboration
+- **Test Coverage**: Coverage improvement during session
+
+## Configuration
+
+Configure pair programming in `.claude-flow/config.json`:
+
+```json
+{
+ "pair": {
+ "defaultAgent": "expert-coder",
+ "defaultMode": "switch",
+ "switchInterval": "10m",
+ "verification": {
+ "enabled": true,
+ "threshold": 0.95,
+ "autoRollback": true
+ },
+ "testing": {
+ "autoRun": true,
+ "framework": "jest",
+ "coverage": {
+ "minimum": 80,
+ "enforce": true
+ }
+ },
+ "review": {
+ "continuous": true,
+ "preCommit": true
+ }
+ }
+}
+```
+
+## Best Practices
+
+1. **Start with Clear Goals**: Define what you want to accomplish
+2. **Use Verification**: Enable verification for critical code
+3. **Test Frequently**: Run tests after significant changes
+4. **Review Together**: Use review features for learning
+5. **Document Decisions**: AI will help document why choices were made
+
+## Related Commands
+
+- `verify` - Standalone verification
+- `truth` - View quality metrics
+- `test` - Run test suites
+- `review` - Code review tools
\ No newline at end of file