Skip to content

CodeMachine is a CLI-native orchestration platform that uses coordinated multi-agent AI workflows to adaptively transform specification files into production-ready code. ⚡️

License

moazbuilds/CodeMachine-CLI

Repository files navigation

npm i -g codemachine

CodeMachine CLI is an autonomous multi-agent platform that works locally on your computer, turning specifications into production-ready code.

CodeMachine in Action

✨ CodeMachine Built Itself

90% of this entire codebase was generated by CodeMachine from a single specification file.
This isn't a demo—it's proof. CodeMachine engine orchestrated its own architecture, planning, implementation, and testing—creating a massively scalable codebase ready for continuous updates and improvements.


What is CodeMachine?

CodeMachine is a CLI-native orchestration platform that transforms specification files and contextual inputs into production-ready code through coordinated multi-agent workflows. Specialized AI agents operate in hierarchical and parallel configurations with the ability for bidirectional communication, enabling runtime-adaptable methodologies that dynamically adjust to project requirements without framework modifications.

Why CodeMachine?

  • Customizable, End-to-End Workflows: Architect sophisticated orchestration pipelines for any scale, from executing simple scripts to managing multi-day, complex development cycles.
  • Strategic Multi-Agent Collaboration: Leverage a heterogeneous multi-agent system by assigning specialized models to specific tasks—for instance, using Gemini for planning, Claude for implementation, and another model for code review.
  • Massively Parallel Execution: Achieve significantly accelerated output by deploying sub-agents that operate simultaneously on different components of a task.
  • Persistent, Long-Running Orchestration: Execute workflows for extended durations—hours or even days—to autonomously accomplish complex, long-term development goals.

🚀 Quick Start

Installing and running CodeMachine CLI

First, install the command-line tool globally via npm:

npm install -g codemachine

Then, simply run codemachine in your project directory to get started.

codemachine

Initializing a Project

CodeMachine initializes a .codemachine/ workspace. To start add your specs to the inputs/specifications.md file, then run /start and watch the magic happen, CodeMachine will:

  • Architect a complete system blueprint from your requirements.
  • Formulate detailed, step-by-step execution plans.
  • Engineer clean, production-grade code for every component.
  • Generate essential automation for testing and deployment.
  • Integrate rigorous validation checks across every phase of execution.

Supported AI Engines

CodeMachine requires at least one CLI-based AI engine to handle the primary roles of planning and writing code, and is designed to orchestrate multiple engines to collaborate within a single workflow. The table below shows the current status of supported and upcoming integrations.

CLI Engine Status Main Agents Sub Agents Orchestrate
Codex CLI ✅ Supported
Claude Code ✅ Supported
Cursor CLI ✅ Supported
Gemini CLI 🚧 Coming Soon 🚧 🚧 🚧
Qwen Coder 🚧 Coming Soon 🚧 🚧 🚧

Production Validation:

CodeMachine has been battle-tested on the Sustaina Platform a full-stack ESG compliance system spanning 7 microservices, 500+ files, and 60,000+ lines of code across Python, TypeScript, React, FastAPI, and NestJS.

Services Generated 7 microservices (AI/ML + CRUD APIs)
Codebase Scale ~500 files, 60K+ Line of code
Tech Stack React 18, FastAPI, NestJS, PostgreSQL, MongoDB, Redis, Kubernetes
Time to MVP ~8 hours of autonomous orchestration

CodeMachine vs Regular AI Agents

We conducted a real-world comparison by monitoring development work on a project of identical scope and complexity using the most powerful AI agent tools (Claude Code, Cursor, Copilot) with manual orchestration and human review, versus CodeMachine's autonomous multi-agent orchestration.

Aspect Regular AI Agents
(Manual Orchestration + Human Review)
CodeMachine
(Autonomous Orchestration)
Architecture Planning 4-6 hours of manual prompting Automated (30 min)
Service Implementation 140-200 hours (7 services × 20-30h each)
Manual prompting, context switching
Parallel execution (5 hours)
Integration & Testing 30-50 hours
Manual coordination, debugging
Automated validation (2 hours)
Deployment Setup 8-12 hours
Scripts, configs, orchestration
Auto-generated (30 min)
Code Consistency Inconsistent patterns across services
Different coding styles per session
Unified architecture & patterns
Consistent across all components
Quality Control Manual review required
Errors compound over time
Built-in validation at each step
Automated sanity checks
Context Retention Lost between sessions
Repeated explanations needed
Full project context maintained
Cross-service awareness
Total Developer Time ~200-300 hours ~8 hours
Efficiency Gain Baseline 25-37× faster

Real-world comparison: One developer manually prompting AI coding assistants vs CodeMachine's autonomous multi-agent orchestration


Want to see how CodeMachine built this?
Explore the complete case study showing the detailed path CodeMachine took to create this project—every step, decision, and workflow tracked from specification to production.

📊 View Complete Case Study & Development Track →


📚 Documentation

Getting Started

Core Concepts

CLI Usage

Creating Custom Workflows

Writing Specifications