Turn one command into a task-specific crew of AI coding agents. a2a-crews plans work, creates agent roles, and coordinates execution through an A2A bridge so multi-step coding tasks can run in organized waves.
- Bun 1.0 or newer (the CLI and scripts run on Bun)
- npm (this repository includes
package-lock.json, so use npm for dependency installation) - Git
- GitHub Copilot CLI for AI-planner/agent execution workflows
- Windows Terminal on Windows, or tmux/iTerm-compatible terminal support on macOS/Linux for spawned agents
npm installRun the TypeScript CLI directly during development:
npm run dev -- plan "Build a REST API with auth and tests"
npm run dev -- apply
npm run dev -- launchOr build a standalone executable:
npm run buildOn Windows, the build outputs crews.exe; on Unix-like systems it outputs crews.
Common commands:
# Show help
npm run dev -- --help
# List preset crew templates
npm run dev -- templates
# Plan a crew for the current directory
npm run dev -- plan "Build a dashboard"
# Target another project directory
npm run dev -- -d /path/to/project plan "Fix flaky tests"
# Review the generated plan and create a team
npm run dev -- apply
# Launch, watch, and stop a team
npm run dev -- launch <team-name>
npm run dev -- watch <team-name>
npm run dev -- stop <team-name>crews goal drives a durable, evaluator-graded goal loop whose state is persisted under audits/goals/:
# Show the active goal (default), or print the full contract
npm run dev -- goal status
npm run dev -- goal show
# Activate a goal from a 7-field contract JSON, then pause/resume/clear
npm run dev -- goal start path/to/contract.json
npm run dev -- goal pause
npm run dev -- goal resume
npm run dev -- goal clearThe CLI writes runtime state under .a2a-crews/ in the target project. That directory is ignored by git.
npm run typecheck
npm testFor the same validation used before publishing changes, run:
npm run build
npm run typecheck
npm testsrc/cli/- command-line interfacesrc/a2a/- A2A bridge, client, discovery, and protocol typessrc/crew/- agents, tasks, wave scheduling, checkpoints, and crew executionsrc/planner/- template matching, feasibility assessment, and AI planner integrationsrc/spawner/- terminal and worktree spawning helperssrc/templates/- preset crew templatessrc/goal/- durable goal-loop contracts, storage, runner, and evaluatortests/- Bun test suitedocs/- A2A research and architecture notes
MIT © 2026 Aviral Dua