Plan, generate, review, test, and package complete software projects from one terminal command.
AI Software Factory is an open-source multi-agent coding CLI. Seven focused agents work through architecture, implementation, review, improvement, testing, failure analysis, and deployment packaging. It supports live OpenAI-backed generation and a deterministic offline demo that needs no API key.
Project status: version 0.3.0 adds read-only repository inspection, scoped AGENTS.md instructions, validated repository tools, and a provider-neutral agent runtime foundation. Greenfield generation remains stable; live repository editing, approvals, and OS-enforced sandboxing are still in progress. See docs/ROADMAP.md.
Watch the MP4 walkthrough · Regenerate the media
- Seven specialized agents instead of one oversized prompt.
- Review and repair loops with bounded retry counts.
- Generated tests and deployment files alongside application source.
- Deterministic demo mode for evaluation, documentation, and CI.
- Validated output paths that reject traversal and symlink escapes.
- Standalone binaries for Linux, macOS, and Windows.
- Checksum-verifying installer for Linux and macOS.
- Typed failures, tests, linting, type checks, and cross-version CI.
- MIT licensed with contribution, security, support, and release policies.
Linux and macOS users can install the latest signed-off release artifact without cloning the repository:
curl -fsSL https://raw.githubusercontent.com/mastaan66/multi-agent-coding-tool/main/install.sh | shThe installer downloads the platform archive, verifies its SHA-256 checksum, and places the executable in ~/.local/bin by default.
ai-factory --help
ai-factory --demo "Build a todo API"Install a specific version or destination:
AI_FACTORY_VERSION=v0.3.0 AI_FACTORY_INSTALL_DIR="$HOME/bin" sh install.shWindows users can download the x86_64 ZIP from GitHub Releases.
For contributors or source checkouts, the shell launcher creates and manages a local virtual environment:
git clone https://github.com/mastaan66/multi-agent-coding-tool.git
cd multi-agent-coding-tool
./ai-factory.sh --demo "Build a todo API"run.sh remains available as a compatibility alias.
git clone https://github.com/mastaan66/multi-agent-coding-tool.git
cd multi-agent-coding-tool
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
ai-factory --helpSee docs/INSTALLATION.md for all installation and build options.
The v0.3 foundation can discover an existing repository, respect Git ignore rules, summarize its language mix, and load applicable AGENTS.md instructions without sending repository content to a model:
ai-factory inspect .
ai-factory inspect . --jsonThis command is intentionally read-only. The provider-neutral streaming runtime and validated read-only tools are now implemented internally; live provider adapters, patching, approvals, and sandboxed shell execution remain roadmap work.
No API key and no model request are required:
ai-factory generate --demo "Build a REST API for a todo application"Set an OpenAI API key and launch the interactive setup:
export OPENAI_API_KEY="your-key"
ai-factory generateOr pass a direct prompt:
ai-factory generate "Create a URL shortener API with analytics"Direct prompts without the generate subcommand remain backward compatible.
Useful options:
-m, --model MODEL Override the OpenAI model
--api-key API_KEY Supply a key for this process
--demo Run deterministic offline mode
--review-loops NUMBER Limit review/improvement retries
--test-loops NUMBER Limit test/fix retries
--output-dir PATH Choose the generated-project directory
Do not put API keys directly on a shared command line. Environment variables or a local, ignored .env file are safer.
| Stage | Agent | Responsibility |
|---|---|---|
| 1 | Planner | Produces architecture, stack, modules, files, and API contracts |
| 2 | Coder | Generates complete project files from the approved plan |
| 3 | Reviewer | Finds correctness, security, performance, and design issues |
| 4 | Improver | Applies review feedback while preserving behavior |
| 5 | Tester | Generates automated pytest coverage |
| 6 | Test Runner | Runs tests, diagnoses failures, and sends fixes back |
| 7 | Deployer | Produces Docker, Compose, CI, and deployment instructions |
The current implementation uses CrewAI for live stage execution and Pydantic for shared structured state. Demo mode routes the same stages through named deterministic fixtures.
Each run writes an isolated timestamped project directory:
output/
└── todo_api_YYYYMMDD_HHMMSS/
├── app/
├── tests/
├── Dockerfile
├── docker-compose.yml
├── .github/workflows/ci.yml
├── requirements.txt
└── DEPLOYMENT.md
Generated code is a development starting point. Review dependencies, authentication, secrets, migrations, test coverage, and deployment configuration before production use.
The first executable artifact format, referred to as artifact v1, contains:
- one native ai-factory executable;
- README.md;
- LICENSE;
- a platform archive;
- a matching SHA-256 checksum file.
Release assets use predictable names:
ai-factory-linux-x86_64.tar.gz
ai-factory-macos-x86_64.tar.gz
ai-factory-macos-arm64.tar.gz
ai-factory-windows-x86_64.zip
Build the artifact locally:
python -m pip install -e ".[release]"
make build
dist/ai-factory --helpPushing a version tag triggers .github/workflows/release.yml, which builds native binaries on each target operating system and publishes them to a GitHub Release. See docs/RELEASING.md.
| Variable | Default | Purpose |
|---|---|---|
| OPENAI_API_KEY | empty | OpenAI credential for live mode |
| OPENAI_MODEL_NAME | gpt-4o | Default live-generation model |
| OPENAI_TEMPERATURE | 0.2 | Sampling temperature |
| MAX_REVIEW_ITERATIONS | 3 | Review/improvement retry limit |
| MAX_TEST_FIX_ITERATIONS | 3 | Test/fix retry limit |
| OUTPUT_DIR | output | Generated project root |
| AI_FACTORY_INSTALL_DIR | ~/.local/bin | Installer destination |
| AI_FACTORY_VERSION | latest | Installer release selector |
| AI_FACTORY_VENV | .venv | Source-launcher environment |
python -m pip install -e ".[dev]"
make qualityIndividual commands:
pytest
ruff check .
mypy
bash -n install.sh ai-factory.sh run.sh scripts/build_binary.sh scripts/render_demo.shRegenerate documentation media:
make mediaThe test suite includes unit coverage for structured output, path safety, CLI configuration, release packaging, mock routing, and an offline end-to-end pipeline.
Model output and generated code are untrusted inputs. The project validates generated file destinations, but the current command runner is not an OS sandbox. Use a trusted workspace or an isolated container.
Report vulnerabilities privately using GitHub Security Advisories. Read SECURITY.md before reporting.
The engineering roadmap covers the transition from a greenfield generator to a repository-native coding agent with:
- provider adapters and native tool calling;
- repository search and focused patch tools;
- permissions and OS-enforced sandboxing;
- persistent sessions, checkpoints, resume, and undo;
- AGENTS.md, hooks, skills, and MCP;
- worktree-isolated parallel agents.
See docs/ROADMAP.md for the full product roadmap and docs/MEMORY_HARNESS.md for the token-bounded context, durable task-state, and long-running harness architecture now being implemented.
- Contributing guide
- Code of Conduct
- Security policy
- Support
- Changelog
- Installation guide
- Release guide
- Issue tracker
Contributions are welcome. For substantial features, open an issue before implementation so the design can be aligned with the roadmap.
AI Software Factory is available under the MIT License.
