π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π Checkpoint: Edit /workspaces/claude-code-flow/non-interactive-improvements-summary.md
rUv81fd215194b4
diff --git a/.claude/checkpoints/1754337645.json b/.claude/checkpoints/1754337645.jsonnew file mode 100644index 0000000000..e59289062c--- /dev/null+++ b/.claude/checkpoints/1754337645.json@@ -0,0 +1 @@+{"branch": "checkpoint/pre-edit-20250804-200045", "file": "/workspaces/claude-code-flow/hello/README.md", "timestamp": "2025-08-04T20:00:45Z", "type": "pre-edit", "original_branch": "alpha-85"}diff --git a/.claude/checkpoints/1754337647.json b/.claude/checkpoints/1754337647.jsonnew file mode 100644index 0000000000..38a9b8d203--- /dev/null+++ b/.claude/checkpoints/1754337647.json@@ -0,0 +1 @@+{"tag": "checkpoint-20250804-200047", "file": "/workspaces/claude-code-flow/hello/README.md", "timestamp": "2025-08-04T20:00:47Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 8534 +----------------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754337642.json | 1 + .claude/checkpoints/1754337643.json | 1 + claude-flow-wiki | 0 hello/README.md | 31 + 7 files changed, 44 insertions(+), 8531 deletions(-) "}diff --git a/non-interactive-improvements-summary.md b/non-interactive-improvements-summary.mdnew file mode 100644index 0000000000..bcbac2300d--- /dev/null+++ b/non-interactive-improvements-summary.md@@ -0,0 +1,61 @@+# Non-Interactive Mode Improvements Summary++## β SUCCESSFULLY FIXED++The Claude-Flow automation system now properly executes workflows in non-interactive mode with full stream-json output visibility, matching the behavior of the swarm command.++## Key Changes Made++### 1. **Stdio Inheritance**+Changed from piped stdio to `stdio: 'inherit'` to allow Claude's output to flow directly to the console:+```javascript+// Before: stdio: this.options.nonInteractive ? ['pipe', 'pipe', 'pipe'] : 'inherit'+// After: stdio: 'inherit'+```++### 2. **Clear User Messaging**+Added informative messages similar to swarm command:+```+π€ Running in non-interactive mode with Claude CLI+π Command: claude --print --output-format stream-json --verbose --dangerously-skip-permissions [prompt]+π‘ Each agent will show its stream-json output below+```++### 3. **Per-Task Execution**+In non-interactive mode, Claude instances are spawned per task with specific prompts, allowing full visibility of each task's execution.++## Working Example++```bash+npx claude-flow automation run-workflow hello-world-test.json --claude --non-interactive+```++**Result**:+- β Stream-JSON output visible in real-time+- β Files successfully created (`./hello/hello.py` and `./hello/README.md`)+- β Each Claude tool use displayed as JSON events+- β Task completion tracked properly++## Stream-JSON Output Format++The output now shows:+1. **System events**: Initialization, session info, available tools+2. **Assistant messages**: Claude's responses and actions+3. **Tool uses**: File creation, bash commands, etc.+4. **Results**: Success/failure of each operation++## Benefits++1. **Real-time Visibility**: See exactly what Claude is doing as it happens+2. **Debugging**: Full stream-json output helps debug workflow issues+3. **CI/CD Ready**: Non-interactive mode perfect for automated pipelines+4. **Consistent UX**: Matches the swarm command's behavior++## Usage Tips++- Use `--claude --non-interactive` for automated workflows with full output+- Add `--output-format stream-json` explicitly if needed (default in non-interactive)+- Each task spawns its own Claude instance with the task-specific prompt+- All Claude flags are properly passed: `--print --output-format stream-json --verbose --dangerously-skip-permissions`++The automation system now provides the same excellent non-interactive experience as the swarm command!\ No newline at end of file