Autonomous AI Marketing Startup Simulator
AgencyOS simulates a fully autonomous AI-powered marketing agency. Specialized AI agents collaborate, review, approve, and execute marketing campaigns — powered by local LLMs, governed by a real authority engine, and tracked with full audit logging.
- 🤖 9 Specialized AI Agents — Strategist, Content Writer, Approver, Risk Officer, Finance Controller, and the Office Peon
- 🧠 Local LLMs — TinyLlama, Qwen, Mistral via llama.cpp (no OpenAI costs)
- ⚖️ Authority & Governance Engine — 5-level approval hierarchy
- 📋 Full Audit Trail — Every decision logged and queryable
- 🎮 3D Metaverse Office V1.1 — Enhanced Three.js & GSAP workspace featuring:
- 💡 Dynamic Lighting — Fully toggleable office lights and desk lamps
- 🏢 Expanded Layout — New specialized zones: War Room, Cafeteria, Restroom, and Smoking Area
- 🎨 Premium Aesthetics — Lightened professional color palette with high-fidelity grid accents
- ❄️ Interactive Assets — Working AC units, ceiling bulbs, and personalized agent desks
- 🔍 Local RAG Integration — Built-in Retrieval-Augmented Generation for market trend lookups
- 📊 Live Dashboard — Real-time WebSocket activity feed matching 3D animations
# 1. Clone the repo
git clone <repo-url>
cd agencyos
# 2. Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Configure environment
cp .env.example .env
# 5. Download AI models (first time only)
PYTHONPATH=. python scripts/download_models.py --models tinyllama qwen
# 6. Initialize database with agents
PYTHONPATH=. python scripts/seed_db.py
# 7. Start the server
uvicorn app.main:app --reload --port 8000
# 8. Open dashboard
open http://localhost:8000See IMPLEMENTATION_PLAN.md for the complete 12-phase implementation guide.
agencyos/
├── app/
│ ├── main.py # FastAPI entry point
│ ├── config.py # Settings
│ ├── api/ # REST routes
│ ├── core/ # Orchestrator, Authority Engine
│ ├── agents/ # All specialized AI agents
│ ├── llm/ # LLM integration layer
│ ├── db/ # SQLite + SQLAlchemy models
│ └── logs/ # Audit + decision logging
├── frontend/ # HTML/CSS/JS dashboard
├── tests/ # Unit + integration + e2e tests
├── scripts/ # Utility scripts
└── models/ # Local GGUF model files
| Agent | Role | Authority Level |
|---|---|---|
| Strategist | Campaign planning + task breakdown | 3 |
| Content Writer | Drafts all marketing content | 1 |
| SEO Agent | SEO optimization checks | 2 |
| Ads Manager | Ad copy + targeting | 2 |
| Social Manager | Social media adaptations | 2 |
| Approver | QA Director — final review | 5 |
| Risk Agent | Compliance Officer | 4 |
| Finance Controller | Budget management | 4 |
| Peon | Office Maintenance & Logistics | 1 |
| Component | Technology |
|---|---|
| Backend | FastAPI (Python 3.11+) |
| LLM Runtime | llama-cpp-python |
| Database | SQLite + SQLAlchemy |
| Frontend | HTML5 + CSS3 + Vanilla JS |
| Graphics | Three.js + GSAP |
| Realtime | WebSockets |
| Retrieval | RAG Engine (Local Semantic DB) |
- IMPLEMENTATION_PLAN.md — Full 12-phase build plan
- docs/QUICKSTART.md — 5-minute setup guide
- docs/ARCHITECTURE.md — System design
- docs/AGENT_GUIDE.md — How agents work
- API Docs — Auto-generated OpenAPI (when running)
📌 Phase: Complete — V1.1 "Atmosphere Update" Ready
All 12 overarching phases have been successfully built, tested, and integrated. Recent updates have focused on the 3D Office Environment, adding dynamic lighting, new rooms, and improved visual fidelity.
MIT License — See LICENSE