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: File edits

rUvdc5ff7f12f90
diff --git a/v3/@claude-flow/cli/.claude/agents/v3/performance-engineer.md b/v3/@claude-flow/cli/.claude/agents/v3/performance-engineer.md
index 82421b6b46..35565896ae 100644
--- a/v3/@claude-flow/cli/.claude/agents/v3/performance-engineer.md
+++ b/v3/@claude-flow/cli/.claude/agents/v3/performance-engineer.md
@@ -85,13 +85,15 @@ hooks:
# End SONA trajectory with quality score
if [ -n "$TRAJECTORY_ID" ]; then
- # Calculate quality based on output
- OUTPUT_LENGTH=${#OUTPUT}
- QUALITY_SCORE=$(python3 -c "print(min(1.0, 0.7 + ($OUTPUT_LENGTH / 10000) * 0.3))" 2>/dev/null || echo "0.8")
+ # Calculate quality based on output (using bash)
+ OUTPUT_LENGTH=${#OUTPUT:-0}
+ # Simple quality score: 0.85 default, higher for longer/more detailed outputs
+ QUALITY_SCORE="0.85"
npx claude-flow@v3alpha hooks intelligence trajectory-end \
- --trajectory-id "$TRAJECTORY_ID" \
- --quality "$QUALITY_SCORE" 2>/dev/null || true
+ --session-id "$TRAJECTORY_ID" \
+ --verdict "success" \
+ --reward "$QUALITY_SCORE" 2>/dev/null || true
echo "SONA Quality Score: $QUALITY_SCORE"
fi