Model-Driven Parallel Agent Workflow CLI for claude-code
npm install asyncwfbash
npm install -g asyncwf
`
Quick Start
`bash
Initialize for Claude (default)
asyncwf init
Initialize for multiple agents
asyncwf init -c -g -x # Claude + Gemini + Codex
Multi-agent parallel workflow
asyncwf taskmgr dispatch --job frontend --agent gemini --prompt "Create React UI..."
asyncwf taskmgr dispatch --job backend --agent claude --prompt "Build REST API..."
asyncwf taskmgr dispatch --job fullstack --agent codex --prompt "Integrate..."
Wait and fetch
asyncwf taskmgr wait --jobs frontend,backend,fullstack
asyncwf taskmgr fetch --job frontend
`
Commands
$3
| Flag | Description |
|------|-------------|
| -c, --claude | Configure for Claude Code (default) |
| -g, --gemini | Configure for Gemini CLI |
| -x, --codex | Configure for OpenAI Codex |
$3
| Command | Description |
|---------|-------------|
| dispatch --job | Spawn sub-agent |
| list [--status | List tasks |
| wait --jobs | Wait for completion |
| fetch --job | Get output |
| kill --job | Terminate |
Agent types: claude, codex, gemini
$3
`bash
asyncwf skill list # List skills
asyncwf skill add --content "..." # Add skill
asyncwf kb learn --topic --content "..." # Learn
asyncwf kb search # Search
`
Multi-Agent Workflow Example
`
User: "Build a login system with React frontend and Rust backend"
Claude (Controller):
1. asyncwf taskmgr dispatch --job ui --agent gemini --prompt "React login form..."
2. asyncwf taskmgr dispatch --job api --agent claude --prompt "Rust Actix handler..."
3. asyncwf taskmgr wait --jobs ui,api
4. asyncwf taskmgr fetch --job ui
5. asyncwf taskmgr fetch --job api
`
Directory Structure
`
~/.ckb/ # Global KB (skills, knowledge, projects)
.asyncwf/ # Local state (config, tasks, logs)
claude.md # Claude protocol
GEMINI.md # Gemini protocol (if -g)
AGENTS.md # Codex protocol (if -x)
``