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/truth/README.md

rUvfea10cfa0d0f
diff --git a/.claude/checkpoints/1755027741.json b/.claude/checkpoints/1755027741.json
new file mode 100644
index 0000000000..c059b2dc80
--- /dev/null
+++ b/.claude/checkpoints/1755027741.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-194221", "file": "/workspaces/claude-code-flow/.claude/commands/verify/check.md", "timestamp": "2025-08-12T19:42:21Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755027743.json b/.claude/checkpoints/1755027743.json
new file mode 100644
index 0000000000..34a3dc883a
--- /dev/null
+++ b/.claude/checkpoints/1755027743.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-194223", "file": "/workspaces/claude-code-flow/.claude/commands/verify/check.md", "timestamp": "2025-08-12T19:42:23Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 +++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 ++-- .claude/checkpoints/1755027726.json | 1 + .claude/checkpoints/1755027728.json | 1 + .claude/commands/verify/check.md | 50 ++++++++++++++++++++++++++++++++ claude-flow-wiki | 0 7 files changed, 92 insertions(+), 4 deletions(-) "}
diff --git a/.claude/commands/truth/README.md b/.claude/commands/truth/README.md
new file mode 100644
index 0000000000..7e85a45f69
--- /dev/null
+++ b/.claude/commands/truth/README.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 file