@ageflow/cli
v0.5.5
Published
CLI for ageflow — agentwf run / validate / dry-run / init
Maintainers
Readme
@ageflow/cli
CLI for ageflow — scaffold, validate, preview, and run multi-agent workflows.
Install
bun add -g @ageflow/cli
# or
npx @ageflow/cli <command>Commands
agentwf init <project-name>
Scaffold a new workflow project:
agentwf init my-workflow
cd my-workflow
bun install
agentwf run workflow.tsGenerates:
my-workflow/
├── workflow.ts ← ready-to-edit workflow definition
├── agents/ ← put your agent files here
└── package.json ← run/validate/dry-run scriptsagentwf validate <workflow-file>
Run preflight checks without executing any agents:
agentwf validate workflow.tsChecks:
- All runner CLIs are installed and on
PATH(claude,codex) - DAG has no cycles
- All
dependsOnreferences exist - Session cross-provider conflicts (e.g. a
claudesession used by acodexagent)
agentwf dry-run <workflow-file>
Print the resolved execution plan and rendered prompts without running anything:
agentwf dry-run workflow.tsOutput shows:
- Execution batches (which tasks run in parallel)
- Each task's runner and rendered prompt (with placeholder inputs for dynamic prompts)
- Loop structure
agentwf run <workflow-file>
Run the workflow end-to-end:
agentwf run workflow.tsOptions set in the workflow definition (not flags):
budget— max cost in USD; workflow halts if exceededhooks.onCheckpoint— HITL pause before a taskretry— per-task retry config
Requirements
- Bun ≥ 1.0 or Node.js ≥ 18
claudeCLI for Claude agentscodexCLI for Codex agents
License
MIT
