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

rUv3f7e41999277
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts
index 31f470d6c8..2933d5df62 100644
--- a/v3/@claude-flow/cli/src/init/settings-generator.ts
+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts
@@ -319,6 +319,33 @@ function generateHooksConfig(config: HooksConfig): object {
// Note: PermissionRequest is NOT a valid Claude Code hook type
// Auto-allow behavior is configured via settings.permissions.allow instead
+ // Agent Teams hooks - TeammateIdle for task assignment, TaskCompleted for coordination
+ hooks.TeammateIdle = [
+ {
+ hooks: [
+ {
+ type: 'command',
+ command: 'npx @claude-flow/cli@latest hooks teammate-idle --auto-assign true 2>/dev/null || true',
+ timeout: 5000,
+ continueOnError: true,
+ },
+ ],
+ },
+ ];
+
+ hooks.TaskCompleted = [
+ {
+ hooks: [
+ {
+ type: 'command',
+ command: '[ -n "$TASK_ID" ] && npx @claude-flow/cli@latest hooks task-completed --task-id "$TASK_ID" --train-patterns true 2>/dev/null || true',
+ timeout: 5000,
+ continueOnError: true,
+ },
+ ],
+ },
+ ];
+
return hooks;
}