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

rUv7813e16d50b6
diff --git a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
index 17962e5d70..86b22bf8db 100644
--- a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
+++ b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
@@ -55,6 +55,13 @@ const prompt = process.env.PROMPT || process.env.TOOL_INPUT_command || args.join
const handlers = {
'route': () => {
+ // Inject ranked intelligence context before routing
+ if (intelligence && intelligence.getContext) {
+ try {
+ const ctx = intelligence.getContext(prompt);
+ if (ctx) console.log(ctx);
+ } catch (e) { /* non-fatal */ }
+ }
if (router && router.routeTask) {
const result = router.routeTask(prompt);
// Format output for Claude Code hook consumption