AegisFlow is a multi-agent CLI orchestrator that turns an idea into a structured delivery flow: requirement intake, PRD, technical design, independent review, roundtable decision-making, task planning, development, and integration review.
- Guides idea intake and asks only the minimum follow-up questions needed to scope a realistic MVP.
- Produces requirement artifacts such as
idea-brief.md,requirement-pack.md, and validation reviews before PRD generation. - Generates
prd.mdanddesign.mdin the current workspace. - Runs independent multi-agent reviews, summarizes consensus, and starts a roundtable when reviewers disagree.
- Supports pausing after design or continuing into development in single-terminal or multi-terminal mode.
- Creates implementation plans, per-task execution logs, integration review notes, delivery summaries, and a final handoff.
- Persists session state so the same run can be resumed later with the same
session-id.
- Node.js 18 or newer
- One or more supported agent CLIs available in your
PATH
Supported engine detection currently covers codex, claude, and gemini / gemini-cli.
npm install -g aegisflowAfter installation, you can start it with:
aegisAn alias is also available:
aegisflowaegis
aegis --sessions
aegis --setup
aegis <session-id>
aegis <session-id> --from <stage>
aegis -h
aegis --help
aegis -v
aegis --version
aeigs
aegisflowaegis: start a new run in the current directory.aegis --sessions: list saved sessions, including the project path and last known stage.aegis <session-id>: resume or continue a specific session.aegis <session-id> --from <stage>: restart from a specific stage, clearing artifacts for that stage and everything after it before rerunning.aegis --setup: rerun interactive setup and engine detection.aegis -h/aegis --help: show CLI help and output locations.aegis -v/aegis --version: print the installed version.aeigsandaegisflow: aliases ofaegis.
Common --from values:
stage0/ideastage0.5/requirement-gatestage1/prdstage2/tech-designstage3/reviewsstage4/roundtablestage4.5/strategystage5/task-planstage6/executionstage7/integration
Examples:
aegis --sessions
aegis demo-session --from stage6
aegis demo-session --from execution
aegis demo-session --from strategyDefault session IDs now use the last two workspace directory names plus a timestamp, for example xiaobei-aegis-flow-2026-03-17T03-29-28-379Z.
- Idea intake and requirement gate
- PRD drafting
- Technical design drafting
- Independent reviews and consensus summary
- Optional roundtable for conflicting design decisions
- Development strategy selection
- Task planning and execution
- Integration review and final handoff
flowchart TD
subgraph S1["Requirement Phase"]
A["Idea"] --> B["Clarifying Questions"]
B --> C["Scope Alignment / MVP Boundary"]
C --> D["Requirement Validation"]
end
subgraph S2["Solution Phase"]
D --> E["PRD"]
E --> F["Technical Design"]
end
subgraph S3["Review Phase"]
F --> G["Independent Multi-Agent Review"]
G --> H["Consensus Summary"]
H --> I{"Any disagreement?"}
I -- "Yes" --> J["Roundtable Discussion / Decision"]
I -- "No" --> K["Task Planning"]
J --> K
end
subgraph S4["Execution Phase"]
K --> L["Implementation"]
L --> M["Integration Review"]
M --> N["Delivery Summary"]
N --> O["Final Handoff"]
end
Only the final workspace deliverables are written into the current working directory:
prd.mddesign.md
Session metadata and archived artifacts are stored under ~/.aegisflow/sessions/<session-id>/.
Common archived files include:
idea-brief.mdrequirement-pack.mdconsensus-report.mdroundtable-minutes.mdimplementation-plan.mdintegration-review.mddelivery-summary.mdfinal-handoff.md
Per-task execution records are stored under ~/.aegisflow/sessions/<session-id>/archive/task-runs/.
On first run, AegisFlow guides you through setup and creates a global config file at ~/.aegisflow/config.json.
- Use
--setupany time you want to redetect engines or change routing preferences. - A sample config is provided in
aegisflow.config.json.example. - Model execution timeout is configurable via
timeouts.modelExecutionMinutesin~/.aegisflow/config.jsonand defaults to30. - Environment variable overrides are available for common settings such as
AEGISFLOW_LANGUAGE,AEGISFLOW_DESIGN_LEAD,AEGISFLOW_FALLBACK_ORDER,AEGISFLOW_CODEX_CMD,AEGISFLOW_CLAUDE_CMD,AEGISFLOW_GEMINI_CMD, and the matching*_ARGSvariables.
npm install
npm run dev
npm run build
npm run release:checkBefore publishing, make sure the package name is available on npm and then run:
npm publishIf you publish through GitHub Actions:
- Add an
NPM_TOKENrepository secret. - Bump the version in
package.json. - Update
CHANGELOG.md. - Push a tag like
v1.0.1.