Skip to content

Repository files navigation

Forge

Forge is the first iteration of the AI Build Engine. It uses a multi-agent architecture with local LLMs via MLX and optional cloud fallbacks. The Brain model plans tasks, worker models execute them, and the Brain reviews each output before approving. Forge is slow, hot, and precise—it hammers out projects sequentially, task by task, with iterative review.

Hardware

MacBook Pro M1 Max 32GB (25GB allocated to Forge)

Quick Start

# Install dependencies
pip install -r requirements.txt
# Set up config
cp config.yaml.example config.yaml
# Edit config.yaml with your tokens# Run
python main.py "Build a React Native fitness app with AI meal planner"

Architecture

Forge is a multi-agent orchestration framework. It combines local LLMs (via MLX on Apple Silicon) with optional cloud API fallbacks to build complex applications autonomously.

Models

All models are QLoRA-adapted Mistral variants:

ModelParametersQuantizationRoleEst. VRAMMax Tokens
forge-brain-q47BQ4_K_MPlanning, Architecture, Review5 GB8192
forge-coder-q47BQ4_K_MFrontend, React, TypeScript4.5 GB4096
forge-coderx-q67BQ6_KComplex Logic, Backend APIs6 GB4096
forge-devops-q47BQ4_K_MCI/CD, Dockerfile, Scripts4 GB2048
forge-security-q57BQ5_K_MCode Review, Security Audit5 GB4096
forge-docs-q47BQ4_K_MDocumentation, README, API Docs3.5 GB4096
forge-qa-q47BQ4_K_MTesting, Unit Tests, Integration Tests4 GB4096

Key Components

  • Brain Orchestrator (core/orchestrator.py) — Central controller, maintains context and state
  • Model Manager (core/model_manager.py) — MLX model loading, generation, and memory management
  • Task Manager (core/task_manager.py) — Task decomposition and execution pipeline
  • Telegram Notifier (utils/telegram_notify.py) — Real-time progress updates

Cloud Fallbacks

ProviderModelCost/1M TokensPurpose
DeepSeekdeepseek-chat~$0.50Full fallback
Mistralmistral-small~$2.00Fast fallback
Anthropicclaude-sonnet-4-20250514~$3.00Brain model fallback
Togethermeta-llama/Llama-4-Maverick-17B~$0.80Budget fallback

Project State

Forge maintains project state in ./memory/:

memory/
├── plan.md — Current plan and task list
├── tasks/ — Individual task outputs
├── review.md — Brain review history
├── working_tree.md — Complete project context
└── brain_context.md — Brain's accumulated context

Logs

All logs are written to ./logs/. Check logs/forge_*.log for detailed execution traces.

License

MIT

About

MLX Multi-Agent Orchestrator for Apple Silicon — Brain LLM plans projects, delegates to worker models, and iteratively reviews until production quality

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages