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

rUv5ea241740029
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts
index d094007b91..978dfe2b58 100644
--- a/v3/@claude-flow/cli/src/init/settings-generator.ts
+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts
@@ -259,21 +259,16 @@ function generateHooksConfig(config: HooksConfig): object {
];
}
- // Stop hooks for task evaluation
+ // Stop hooks for task evaluation - always return ok by default
+ // The hook outputs JSON that Claude Code validates
if (config.stop) {
hooks.Stop = [
{
hooks: [
{
- type: 'prompt',
- prompt: `Evaluate ONLY for hard failures. Return {"ok": true} UNLESS any of these occurred:
-- Tool returned an error (non-zero exit, exception thrown)
-- Assistant said it cannot/failed to complete the request
-- Request was blocked or denied
-
-DO NOT fail for: suggestions, warnings, discovered issues, code review findings, TODOs, or recommendations. These are informational outputs, not failures.
-
-Default to {"ok": true} when uncertain.`,
+ type: 'command',
+ command: 'echo \'{"ok": true}\'',
+ timeout: 1000,
},
],
},