Skip to content

About

πŸ€– Autonomous AI Software Factory. Just describe your app in plain English, and 4 AI agents (Planner β†’ Coder β†’ Reviewer β†’ QA) build the code autonomously with CrewAI, MCP tools, and AI Guardrails.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏭 Autonomous AI Software Factory

A production-grade multi-agent system that autonomously builds software based on natural language specifications. Just describe what you want, and AI Agents (Planner β†’ Coder β†’ Reviewer β†’ QA) generate the complete code.

Built with CrewAI, Groq (Llama 3.3), MCP-style File Tools, and AI Safety Guardrails.


πŸš€ How It Works

  1. Planner Agent 🧠 β†’ Analyzes your requirements and creates a development plan.
  2. Coder Agent ✍️ β†’ Writes clean, production-ready code using MCP File Tools.
  3. Reviewer Agent πŸ‘€ β†’ Reviews the code for bugs, logical errors, and security issues.
  4. QA Agent βœ… β†’ Validates that the code meets the original requirements.

All agents work autonomously β€” just enter specs and watch the factory build your software!


✨ Features

  • βœ… Multi-Agent Orchestration β€” 4 specialized agents collaborate like a real dev team.
  • βœ… MCP (Model Context Protocol) Tools β€” Agents can Read/Write/List files in a sandboxed workspace.
  • βœ… AI Safety Guardrails β€” Automatically scans for dangerous patterns (eval, os.system, rm -rf).
  • βœ… Beautiful UI β€” Streamlit-based interface for easy interaction.
  • βœ… FastAPI Backend β€” REST API to trigger builds programmatically.
  • βœ… Zero Cloud Lock-in β€” Uses Groq free tier and runs 100% locally.

πŸ› οΈ Tech Stack

Layer Technology
Multi-Agent Framework CrewAI (0.108.0)
LLM Groq (Llama 3.3 70B Versatile)
Backend FastAPI, Uvicorn
Frontend Streamlit
Tools Custom MCP File System Tools
Guardrails Regex-based Dangerous Pattern Scanner
Language Python 3.12+

πŸ“¦ Setup & Installation

1. Clone the Repository

git clone https://github.com/vaibhav07772/Autonomous-AI-Software-Factory.git
cd Autonomous-AI-Software-Factory


2. Create Conda Environment (Recommended)

conda create -n ai_factory python=3.12 -y
conda activate ai_factory


3. Install Dependencies

pip install -r requirements.txt


4. Set Up API Keys (.env file)
Create a .env file in the root directory:

OPENAI_API_KEY=gsk_your_groq_key_here
OPENAI_BASE_URL=https://api.groq.com/openai/v1
OPENAI_MODEL_NAME=groq/llama-3.3-70b-versatile

Get your free Groq API key: console.groq.com/keys



▢️ Run the Application
Step 1: Start the Backend (FastAPI)

uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

Wait for Application startup complete.


Step 2: Start the Frontend (Streamlit)

streamlit run streamlit_app.py

Step 3: Open Browser
Go to http://localhost:8501 β†’ Enter specs β†’ Click "⚑ Build Now"!


πŸ“ Example Usage
Input Specs:

Build a simple calculator with HTML, CSS, and JS.
It should have add, subtract, multiply, divide.
Create three files: index.html, style.css, script.js.

Output:

workspace/index.html β€” Calculator structure

workspace/style.css β€” Calculator styling

workspace/script.js β€” Calculator logic (add, subtract, multiply, divide)

Guardrail Scan: βœ… All files safe!



πŸ“ Project Structure
Autonomous-AI-Software-Factory/
β”œβ”€β”€ agents/
β”‚   β”œβ”€β”€ factory_crew.py      # CrewAI Agents (Planner, Coder, Reviewer, QA)
β”‚   └── tools/
β”‚       └── mcp_file_tools.py # MCP-style File System Tools
β”œβ”€β”€ app/
β”‚   └── main.py              # FastAPI Backend
β”œβ”€β”€ guardrails/
β”‚   └── code_guardrail.py    # AI Safety Scanner
β”œβ”€β”€ workspace/               # Sandbox where code is generated
β”œβ”€β”€ logs/                    # Build logs (auto-generated)
β”œβ”€β”€ streamlit_app.py         # Streamlit UI
β”œβ”€β”€ requirements.txt         # Dependencies
β”œβ”€β”€ .env                     # API Keys (ignored)
└── README.md                # This file



πŸ”’ Guardrails (Safety Features)
The system automatically scans generated code for:

os.system() β€” System command execution

subprocess β€” Shell command execution

eval() / exec() β€” Dynamic code execution

rm -rf β€” Dangerous file deletion

__import__() β€” Dynamic imports

Any file containing these patterns is flagged as Dangerous and blocked.


πŸ’‘ Future Improvements
Deploy with Docker + Kubernetes.

Add support for more file types (Python, JSON, YAML).

Integrate with GitHub API for auto-PR creation.

Add human-in-the-loop approval for critical code sections.

Support for multiple LLM providers (OpenAI, Anthropic).



πŸ“¬ Connect with Me
Author: Vaibhav Singh

GitHub: vaibhav07772

LinkedIn: vaibhav Singh

⭐ If this project helped you, please give it a star! ⭐

About

πŸ€– Autonomous AI Software Factory. Just describe your app in plain English, and 4 AI agents (Planner β†’ Coder β†’ Reviewer β†’ QA) build the code autonomously with CrewAI, MCP tools, and AI Guardrails.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages