π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π Checkpoint: Edit /workspaces/claude-code-flow/.claude/commands/pair/commands.md
rUvb8470e13f450
diff --git a/.claude/checkpoints/1755028421.json b/.claude/checkpoints/1755028421.jsonnew file mode 100644index 0000000000..02739f0bf8--- /dev/null+++ b/.claude/checkpoints/1755028421.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250812-195340", "file": "/workspaces/claude-code-flow/.claude/commands/pair/config.md", "timestamp": "2025-08-12T19:53:41Z", "type": "pre-edit", "original_branch": "alpha-89"}diff --git a/.claude/checkpoints/1755028422.json b/.claude/checkpoints/1755028422.jsonnew file mode 100644index 0000000000..69eb9ae1c2--- /dev/null+++ b/.claude/checkpoints/1755028422.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250812-195342", "file": "/workspaces/claude-code-flow/.claude/commands/pair/config.md", "timestamp": "2025-08-12T19:53:42Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 8406 ++++++++++++++++++++++++++---- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755028317.json | 1 + .claude/checkpoints/1755028319.json | 1 + .claude/commands/pair/config.md | 510 ++ claude-flow-wiki | 0 7 files changed, 8019 insertions(+), 907 deletions(-) "}diff --git a/.claude/commands/pair/commands.md b/.claude/commands/pair/commands.mdnew file mode 100644index 0000000000..5845321444--- /dev/null+++ b/.claude/commands/pair/commands.md@@ -0,0 +1,546 @@+# Pair Programming Commands Reference++Complete reference for all pair programming session commands.++## Session Control Commands++### /start+Start a new pair programming session.+```+/start [--mode <mode>] [--agent <agent>]+```++### /end+End the current session.+```+/end [--save] [--report]+```++### /pause+Pause the current session.+```+/pause [--reason <reason>]+```++### /resume+Resume a paused session.+```+/resume+```++### /status+Show current session status.+```+/status [--verbose]+```++### /switch+Switch driver/navigator roles.+```+/switch [--immediate]+```++## Code Commands++### /explain+Explain the current code or selection.+```+/explain [--level basic|detailed|expert]+```++### /suggest+Get improvement suggestions.+```+/suggest [--type refactor|optimize|security|style]+```++### /implement+Request implementation (navigator mode).+```+/implement <description>+```++### /refactor+Refactor selected code.+```+/refactor [--pattern <pattern>] [--scope function|file|module]+```++### /optimize+Optimize code for performance.+```+/optimize [--target speed|memory|both]+```++### /document+Add documentation to code.+```+/document [--format jsdoc|markdown|inline]+```++### /comment+Add inline comments.+```+/comment [--verbose]+```++### /pattern+Apply a design pattern.+```+/pattern <pattern-name> [--example]+```++## Testing Commands++### /test+Run test suite.+```+/test [--watch] [--coverage] [--only <pattern>]+```++### /test-gen+Generate tests for current code.+```+/test-gen [--type unit|integration|e2e]+```++### /coverage+Check test coverage.+```+/coverage [--report html|json|terminal]+```++### /mock+Generate mock data or functions.+```+/mock <target> [--realistic]+```++### /test-watch+Enable test watching.+```+/test-watch [--on-save]+```++### /snapshot+Create test snapshots.+```+/snapshot [--update]+```++## Review Commands++### /review+Perform code review.+```+/review [--scope current|file|changes] [--strict]+```++### /security+Security analysis.+```+/security [--deep] [--fix]+```++### /perf+Performance analysis.+```+/perf [--profile] [--suggestions]+```++### /quality+Check code quality metrics.+```+/quality [--detailed]+```++### /lint+Run linters.+```+/lint [--fix] [--config <config>]+```++### /complexity+Analyze code complexity.+```+/complexity [--threshold <value>]+```++## Navigation Commands++### /goto+Navigate to file or location.+```+/goto <file>[:line[:column]]+```++### /find+Search in project.+```+/find <pattern> [--regex] [--case-sensitive]+```++### /recent+Show recent files.+```+/recent [--limit <n>]+```++### /bookmark+Manage bookmarks.+```+/bookmark [add|list|goto|remove] [<name>]+```++### /history+Show command history.+```+/history [--limit <n>] [--filter <pattern>]+```++### /tree+Show project structure.+```+/tree [--depth <n>] [--filter <pattern>]+```++## Git Commands++### /diff+Show git diff.+```+/diff [--staged] [--file <file>]+```++### /commit+Commit with verification.+```+/commit [--message <msg>] [--amend]+```++### /branch+Branch operations.+```+/branch [create|switch|delete|list] [<name>]+```++### /stash+Stash operations.+```+/stash [save|pop|list|apply] [<message>]+```++### /log+View git log.+```+/log [--oneline] [--limit <n>]+```++### /blame+Show git blame.+```+/blame [<file>]+```++## AI Partner Commands++### /agent+Manage AI agent.+```+/agent [switch|info|config] [<agent-name>]+```++### /teach+Teach the AI your preferences.+```+/teach <preference>+```++### /feedback+Provide feedback to AI.+```+/feedback [positive|negative] <message>+```++### /personality+Adjust AI personality.+```+/personality [professional|friendly|concise|verbose]+```++### /expertise+Set AI expertise focus.+```+/expertise [add|remove|list] [<domain>]+```++## Metrics Commands++### /metrics+Show session metrics.+```+/metrics [--period today|session|week|all]+```++### /score+Show quality scores.+```+/score [--breakdown]+```++### /productivity+Show productivity metrics.+```+/productivity [--chart]+```++### /leaderboard+Show improvement leaderboard.+```+/leaderboard [--personal|team]+```++## Configuration Commands++### /config+Manage configuration.+```+/config [get|set|reset] [<key>] [<value>]+```++### /profile+Manage profiles.+```+/profile [use|create|list|delete] [<name>]+```++### /theme+Change interface theme.+```+/theme [dark|light|auto|<custom>]+```++### /shortcuts+Manage keyboard shortcuts.+```+/shortcuts [list|set|reset] [<action>] [<keys>]+```++## Collaboration Commands++### /share+Share session or code.+```+/share [session|code|screen] [--with <user>]+```++### /invite+Invite collaborator.+```+/invite <email> [--role observer|participant]+```++### /chat+Send message to team.+```+/chat <message>+```++### /note+Add session note.+```+/note <text> [--tag <tag>]+```++## Learning Commands++### /learn+Access learning resources.+```+/learn [<topic>] [--level beginner|intermediate|advanced]+```++### /example+Show code examples.+```+/example <pattern-or-concept> [--language <lang>]+```++### /quiz+Take a quiz on current topic.+```+/quiz [--difficulty easy|medium|hard]+```++### /tip+Get a coding tip.+```+/tip [--topic <topic>]+```++## Utility Commands++### /help+Show help.+```+/help [<command>]+```++### /undo+Undo last action.+```+/undo [--steps <n>]+```++### /redo+Redo undone action.+```+/redo [--steps <n>]+```++### /clear+Clear screen or cache.+```+/clear [screen|cache|history]+```++### /export+Export session data.+```+/export [--format json|md|html] [--file <path>]+```++### /import+Import configuration or data.+```+/import <file> [--type config|session|profile]+```++## Debugging Commands++### /debug+Enter debug mode.+```+/debug [on|off|toggle]+```++### /breakpoint+Manage breakpoints.+```+/breakpoint [add|remove|list|clear] [<location>]+```++### /trace+Enable tracing.+```+/trace [on|off|show]+```++### /inspect+Inspect variable or object.+```+/inspect <variable> [--deep]+```++### /watch+Watch expression.+```+/watch [add|remove|list] [<expression>]+```++## Advanced Commands++### /macro+Record or run macros.+```+/macro [record|stop|play|list|delete] [<name>]+```++### /plugin+Manage plugins.+```+/plugin [install|remove|list|config] [<plugin>]+```++### /api+API operations.+```+/api <endpoint> [--method GET|POST|PUT|DELETE] [--data <json>]+```++### /exec+Execute system command.+```+/exec <command> [--background]+```++## Quick Command Aliases++| Alias | Full Command |+|-------|-------------|+| `/s` | `/suggest` |+| `/e` | `/explain` |+| `/t` | `/test` |+| `/r` | `/review` |+| `/c` | `/commit` |+| `/g` | `/goto` |+| `/f` | `/find` |+| `/h` | `/help` |+| `/sw` | `/switch` |+| `/st` | `/status` |++## Command Modifiers++### Global Modifiers+- `--quiet` - Suppress output+- `--verbose` - Detailed output+- `--json` - JSON output format+- `--no-cache` - Skip cache+- `--timeout <s>` - Command timeout++### Chaining Commands+Use `&&` to chain commands:+```+/test && /commit && /push+```++### Command History+- `β/β` - Navigate history+- `Ctrl+R` - Search history+- `!!` - Repeat last command+- `!<n>` - Run command n from history++## Custom Commands++Define custom commands in configuration:++```json+{+ "customCommands": {+ "tdd": "/test-gen && /test --watch",+ "full-review": "/lint --fix && /test && /review --strict",+ "quick-fix": "/suggest --type fix && /implement && /test"+ }+}+```++Use custom commands:+```+/custom tdd+/custom full-review+```++## Best Practices++1. **Learn Core Commands** - Master frequently used commands+2. **Use Aliases** - Speed up common operations+3. **Chain Commands** - Automate workflows+4. **Custom Commands** - Create your workflows+5. **Keyboard Shortcuts** - Faster than typing++## Related Documentation++- [Session Management](./session.md)+- [Configuration](./config.md)+- [Keyboard Shortcuts](./shortcuts.md)+- [Getting Started](./README.md)\ No newline at end of filediff --git a/.claude/commands/truth/start.md b/.claude/commands/truth/start.mdnew file mode 100644index 0000000000..7e85a45f69--- /dev/null+++ b/.claude/commands/truth/start.md@@ -0,0 +1,143 @@+# π Truth Command++View truth scores and reliability metrics for your codebase and agent tasks.++## Overview++The `truth` command provides comprehensive insights into code quality, agent performance, and verification metrics.++## Usage++```bash+claude-flow truth [options]+```++## Options++- `--format <type>` - Output format: table (default), json, csv, html+- `--period <time>` - Time period: 1h, 24h, 7d, 30d+- `--agent <name>` - Filter by specific agent+- `--threshold <0-1>` - Show only scores below threshold+- `--export <file>` - Export metrics to file+- `--watch` - Real-time monitoring mode++## Metrics Displayed++### Truth Scores+- **Overall Score**: Aggregate truth score (0.0-1.0)+- **File Scores**: Individual file truth ratings+- **Agent Scores**: Per-agent reliability metrics+- **Task Scores**: Task completion quality++### Trends+- **Improvement Rate**: Quality trend over time+- **Regression Detection**: Identifies declining scores+- **Agent Learning**: Shows agent improvement curves++### Statistics+- **Mean Score**: Average truth score+- **Median Score**: Middle value of scores+- **Standard Deviation**: Score consistency+- **Confidence Interval**: Statistical reliability++## Examples++### Basic Usage+```bash+# View current truth scores+claude-flow truth++# View scores for last 7 days+claude-flow truth --period 7d++# Export to HTML report+claude-flow truth --export report.html --format html+```++### Advanced Analysis+```bash+# Monitor real-time scores+claude-flow truth --watch++# Find problematic files+claude-flow truth --threshold 0.8++# Agent-specific metrics+claude-flow truth --agent coder --period 24h++# JSON for processing+claude-flow truth --format json | jq '.overall_score'+```++## Dashboard View++```+π Truth Metrics Dashboard+ββββββββββββββββββββββββββββββββββββββββββ++Overall Truth Score: 0.947 β+Trend: βοΈ +2.3% (7d)++Top Performers:+ verification-agent 0.982 β+ code-analyzer 0.971 β+ test-generator 0.958 β++Needs Attention:+ refactor-agent 0.821 β οΈ+ docs-generator 0.794 β οΈ++Recent Tasks:+ task-456 0.991 β "Implement auth"+ task-455 0.967 β "Add tests"+ task-454 0.743 β "Refactor API"+```++## Integration++### With CI/CD+```yaml+# GitHub Actions example+- name: Check Truth Scores+ run: |+ claude-flow truth --format json > truth.json+ score=$(jq '.overall_score' truth.json)+ if (( $(echo "$score < 0.95" | bc -l) )); then+ echo "Truth score too low: $score"+ exit 1+ fi+```++### With Monitoring+```bash+# Send to monitoring system+claude-flow truth --format json | \+ curl -X POST https://metrics.example.com/api/truth \+ -H "Content-Type: application/json" \+ -d @-+```++## Configuration++Set truth display preferences in `.claude-flow/config.json`:++```json+{+ "truth": {+ "defaultFormat": "table",+ "defaultPeriod": "24h",+ "warningThreshold": 0.85,+ "criticalThreshold": 0.75,+ "autoExport": {+ "enabled": true,+ "path": ".claude-flow/metrics/truth-daily.json"+ }+ }+}+```++## Related Commands++- `verify` - Run verification checks+- `pair` - Collaborative development with truth tracking+- `report` - Generate detailed reports\ No newline at end of filediff --git a/.claude/commands/verify/start.md b/.claude/commands/verify/start.mdnew file mode 100644index 0000000000..097ff3eb3e--- /dev/null+++ b/.claude/commands/verify/start.md@@ -0,0 +1,128 @@+# π Verification Commands++Truth verification system for ensuring code quality and correctness with a 0.95 accuracy threshold.++## Overview++The verification system provides real-time truth checking and validation for all agent tasks, ensuring high-quality outputs and automatic rollback on failures.++## Subcommands++### `verify check`+Run verification checks on current code or agent outputs.++```bash+claude-flow verify check --file src/app.js+claude-flow verify check --task "task-123"+claude-flow verify check --threshold 0.98+```++### `verify rollback`+Automatically rollback changes that fail verification.++```bash+claude-flow verify rollback --to-commit abc123+claude-flow verify rollback --last-good+claude-flow verify rollback --interactive+```++### `verify report`+Generate verification reports and metrics.++```bash+claude-flow verify report --format json+claude-flow verify report --export metrics.html+claude-flow verify report --period 7d+```++### `verify dashboard`+Launch interactive verification dashboard.++```bash+claude-flow verify dashboard+claude-flow verify dashboard --port 3000+claude-flow verify dashboard --export+```++## Configuration++Default threshold: **0.95** (95% accuracy required)++Configure in `.claude-flow/config.json`:+```json+{+ "verification": {+ "threshold": 0.95,+ "autoRollback": true,+ "gitIntegration": true,+ "hooks": {+ "preCommit": true,+ "preTask": true,+ "postEdit": true+ }+ }+}+```++## Integration++### With Swarm Commands+```bash+claude-flow swarm --verify --threshold 0.98+claude-flow hive-mind --verify+```++### With Training Pipeline+```bash+claude-flow train --verify --rollback-on-fail+```++### With Pair Programming+```bash+claude-flow pair --verify --real-time+```++## Metrics++- **Truth Score**: 0.0 to 1.0 (higher is better)+- **Confidence Level**: Statistical confidence in verification+- **Rollback Rate**: Percentage of changes rolled back+- **Quality Improvement**: Trend over time++## Examples++### Basic Verification+```bash+# Verify current directory+claude-flow verify check++# Verify with custom threshold+claude-flow verify check --threshold 0.99++# Verify and auto-fix+claude-flow verify check --auto-fix+```++### Advanced Workflows+```bash+# Continuous verification during development+claude-flow verify watch --directory src/++# Batch verification+claude-flow verify batch --files "*.js" --parallel++# Integration testing+claude-flow verify integration --test-suite full+```++## Performance++- Verification latency: <100ms for most checks+- Rollback time: <1s for git-based rollback+- Dashboard refresh: Real-time via WebSocket++## Related Commands++- `truth` - View truth scores and metrics+- `pair` - Collaborative development with verification+- `train` - Training with verification feedback\ No newline at end of file