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

rUve25d3638dfc2
diff --git a/v3/@claude-flow/cli/.claude/agents/core/reviewer.md b/v3/@claude-flow/cli/.claude/agents/core/reviewer.md
index 4e1ade9d36..fa5a74c134 100644
--- a/v3/@claude-flow/cli/.claude/agents/core/reviewer.md
+++ b/v3/@claude-flow/cli/.claude/agents/core/reviewer.md
@@ -19,55 +19,64 @@ hooks:
pre: |
echo "πŸ‘€ Reviewer agent analyzing: $TASK"
- # 1. Learn from past review patterns (ReasoningBank)
- SIMILAR_REVIEWS=$(npx claude-flow memory search-patterns "$TASK" --k=5 --min-reward=0.8)
+ # V3: Initialize task with hooks system
+ npx claude-flow@v3alpha hooks pre-task --description "$TASK"
+
+ # 1. Learn from past review patterns (ReasoningBank + HNSW 150x-12,500x faster)
+ SIMILAR_REVIEWS=$(npx claude-flow@v3alpha memory search --query "$TASK" --limit 5 --min-score 0.8 --use-hnsw)
if [ -n "$SIMILAR_REVIEWS" ]; then
- echo "πŸ“š Found similar successful review patterns"
- npx claude-flow memory get-pattern-stats "$TASK" --k=5
+ echo "πŸ“š Found similar successful review patterns (HNSW-indexed)"
+ npx claude-flow@v3alpha hooks intelligence --action pattern-search --query "$TASK" --k 5
fi
- # 2. Learn from missed issues
- MISSED_ISSUES=$(npx claude-flow memory search-patterns "$TASK" --only-failures --k=3)
+ # 2. Learn from missed issues (EWC++ protected)
+ MISSED_ISSUES=$(npx claude-flow@v3alpha memory search --query "$TASK missed issues" --limit 3 --failures-only --use-hnsw)
if [ -n "$MISSED_ISSUES" ]; then
echo "⚠️ Learning from previously missed issues"
fi
- # Create review checklist
- memory_store "review_checklist_$(date +%s)" "functionality,security,performance,maintainability,documentation"
+ # Create review checklist via memory
+ npx claude-flow@v3alpha memory store --key "review_checklist_$(date +%s)" --value "functionality,security,performance,maintainability,documentation"
- # 3. Store task start
- npx claude-flow memory store-pattern \
+ # 3. Store task start via hooks
+ npx claude-flow@v3alpha hooks intelligence --action trajectory-start \
--session-id "reviewer-$(date +%s)" \
- --task "$TASK" \
- --status "started"
+ --task "$TASK"
post: |
echo "βœ… Review complete"
echo "πŸ“ Review summary stored in memory"
# 1. Calculate review quality metrics
- ISSUES_FOUND=$(memory_search "review_issues_*" | wc -l)
- CRITICAL_ISSUES=$(memory_search "review_critical_*" | wc -l)
+ ISSUES_FOUND=$(npx claude-flow@v3alpha memory search --query "review_issues" --count-only || echo "0")
+ CRITICAL_ISSUES=$(npx claude-flow@v3alpha memory search --query "review_critical" --count-only || echo "0")
REWARD=$(echo "scale=2; ($ISSUES_FOUND + $CRITICAL_ISSUES * 2) / 20" | bc)
SUCCESS=$([[ $CRITICAL_ISSUES -eq 0 ]] && echo "true" || echo "false")
- # 2. Store learning pattern
- npx claude-flow memory store-pattern \
+ # 2. Store learning pattern via V3 hooks (with EWC++ consolidation)
+ npx claude-flow@v3alpha hooks intelligence --action pattern-store \
--session-id "reviewer-$(date +%s)" \
--task "$TASK" \
--output "Found $ISSUES_FOUND issues ($CRITICAL_ISSUES critical)" \
--reward "$REWARD" \
--success "$SUCCESS" \
- --critique "Review thoroughness and accuracy assessment"
+ --consolidate-ewc true
- # 3. Train on comprehensive reviews
+ # 3. Complete task hook
+ npx claude-flow@v3alpha hooks post-task --task-id "reviewer-$(date +%s)" --success "$SUCCESS"
+
+ # 4. Train on comprehensive reviews (SONA <0.05ms adaptation)
if [ "$SUCCESS" = "true" ] && [ "$ISSUES_FOUND" -gt 10 ]; then
echo "🧠 Training neural pattern from thorough review"
- npx claude-flow neural train \
+ npx claude-flow@v3alpha neural train \
--pattern-type "coordination" \
--training-data "code-review" \
- --epochs 50
+ --epochs 50 \
+ --use-sona
fi
+
+ # 5. Trigger audit worker for security analysis
+ npx claude-flow@v3alpha hooks worker dispatch --trigger audit
---
# Code Review Agent