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

rUv209aa25cc71a
diff --git a/v3/@claude-flow/cli/.claude/agents/core/tester.md b/v3/@claude-flow/cli/.claude/agents/core/tester.md
index ac52e5f95e..d727bc604f 100644
--- a/v3/@claude-flow/cli/.claude/agents/core/tester.md
+++ b/v3/@claude-flow/cli/.claude/agents/core/tester.md
@@ -19,15 +19,18 @@ hooks:
pre: |
echo "🧪 Tester agent validating: $TASK"
- # 1. Learn from past test failures (ReasoningBank)
- FAILED_TESTS=$(npx claude-flow memory search-patterns "$TASK" --only-failures --k=5)
+ # V3: Initialize task with hooks system
+ npx claude-flow@v3alpha hooks pre-task --description "$TASK"
+
+ # 1. Learn from past test failures (ReasoningBank + HNSW 150x-12,500x faster)
+ FAILED_TESTS=$(npx claude-flow@v3alpha memory search --query "$TASK failures" --limit 5 --failures-only --use-hnsw)
if [ -n "$FAILED_TESTS" ]; then
- echo "⚠️ Learning from ${FAILED_TESTS} past test failures"
- npx claude-flow memory get-pattern-stats "$TASK" --only-failures
+ echo "⚠️ Learning from past test failures (HNSW-indexed)"
+ npx claude-flow@v3alpha hooks intelligence --action pattern-search --query "$TASK" --failures-only
fi
# 2. Find similar successful test patterns
- SUCCESSFUL_TESTS=$(npx claude-flow memory search-patterns "$TASK" --k=3 --min-reward=0.9)
+ SUCCESSFUL_TESTS=$(npx claude-flow@v3alpha memory search --query "$TASK" --limit 3 --min-score 0.9 --use-hnsw)
if [ -n "$SUCCESSFUL_TESTS" ]; then
echo "📚 Found successful test patterns to replicate"
fi
@@ -37,11 +40,10 @@ hooks:
echo "✓ Test framework detected"
fi
- # 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 "tester-$(date +%s)" \
- --task "$TASK" \
- --status "started"
+ --task "$TASK"
post: |
echo "📋 Test results summary:"
@@ -55,23 +57,30 @@ hooks:
REWARD=$(echo "scale=2; $PASSED / ($TOTAL + 1)" | bc)
SUCCESS=$([[ $FAILED -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 "tester-$(date +%s)" \
--task "$TASK" \
--output "Tests: $PASSED passed, $FAILED failed" \
--reward "$REWARD" \
--success "$SUCCESS" \
- --critique "Test coverage and failure analysis"
+ --consolidate-ewc true
- # 3. Train on comprehensive test suites
+ # 3. Complete task hook
+ npx claude-flow@v3alpha hooks post-task --task-id "tester-$(date +%s)" --success "$SUCCESS"
+
+ # 4. Train on comprehensive test suites (SONA <0.05ms adaptation)
if [ "$SUCCESS" = "true" ] && [ "$PASSED" -gt 50 ]; then
echo "🧠 Training neural pattern from comprehensive test suite"
- npx claude-flow neural train \
+ npx claude-flow@v3alpha neural train \
--pattern-type "coordination" \
--training-data "test-suite" \
- --epochs 50
+ --epochs 50 \
+ --use-sona
fi
+
+ # 5. Trigger testgaps worker for coverage analysis
+ npx claude-flow@v3alpha hooks worker dispatch --trigger testgaps
---
# Testing and Quality Assurance Agent