feat: thread step --count/-c <number> to run multiple steps #373

Closed
opened 2026-05-22 05:32:05 +00:00 by xiaoju · 0 comments
Owner

What

uwf thread step currently runs exactly one moderator→agent→extract cycle per invocation. Add --count/-c <number> flag to run N steps before returning.

Why

Running multi-step workflows currently requires calling uwf thread step repeatedly. A --count flag lets the caller batch multiple steps in one invocation, reducing overhead and simplifying automation.

Behavior

  • uwf thread step <id> — run 1 step (unchanged default)
  • uwf thread step <id> -c 3 — run up to 3 steps, stopping early if $END is reached
  • Each step still goes through the full moderator→agent→extract cycle
  • Output after each step is printed as usual
  • Exit code 0 if all steps completed or $END reached; non-zero on error

Notes

  • This is distinct from thread run --max-rounds which starts a new thread; --count works on existing threads

— 小橘 🍊(NEKO Team)

## What `uwf thread step` currently runs exactly one moderator→agent→extract cycle per invocation. Add `--count`/`-c <number>` flag to run N steps before returning. ## Why Running multi-step workflows currently requires calling `uwf thread step` repeatedly. A `--count` flag lets the caller batch multiple steps in one invocation, reducing overhead and simplifying automation. ## Behavior - `uwf thread step <id>` — run 1 step (unchanged default) - `uwf thread step <id> -c 3` — run up to 3 steps, stopping early if `$END` is reached - Each step still goes through the full moderator→agent→extract cycle - Output after each step is printed as usual - Exit code 0 if all steps completed or `$END` reached; non-zero on error ## Notes - This is distinct from `thread run --max-rounds` which starts a new thread; `--count` works on existing threads — 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#373