OpenSwarm icon indicating copy to clipboard operation
OpenSwarm copied to clipboard

Add --verbose flag to CLI commands for detailed execution logging

Open fuleinist opened this issue 8 months ago • 1 comments

Problem

When running agent pipelines via openswarm run or openswarm exec, users have limited visibility into what's happening during execution. Debugging pipeline failures or understanding agent decisions requires more detailed output than the current summary.

Solution

Add a --verbose (or -v) flag to run and exec commands that enables detailed logging:

  • Show each pipeline stage as it starts/completes
  • Log agent decisions and reasoning steps
  • Display file operations and tool calls
  • Print timing information for each stage

Use Case

Users debugging agent pipelines or investigating why a task succeeded/failed would enable verbose mode to see the full execution trace instead of just the final result.

fuleinist avatar Mar 20 '26 13:03 fuleinist

Implemented on main branch.

Added -v / --verbose flag to both run and exec commands.

What verbose mode shows:

  • Stage lifecycle: model name, iteration number at each stage start
  • Worker details: files changed, commands executed, confidence %, halt reasons
  • Reviewer details: decision (approve/revise/reject) with feedback
  • Tester details: tests passed/failed count, coverage %
  • Timing & cost: per-stage duration, token counts, cost in USD
  • Pipeline events: iteration failures, stuck detection, HALT events

Usage

openswarm run "fix the login bug" --verbose
openswarm run "add tests" -v
openswarm exec "refactor auth" -v --local

Closing this issue.

unohee avatar Mar 22 '26 15:03 unohee