Skip to content
MustakimShaikh01Public

About

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.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

🏢 AgencyOS

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.


✨ Features

  • 🤖 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

🚀 Quick Start

# 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:8000

📋 Implementation Plan

See IMPLEMENTATION_PLAN.md for the complete 12-phase implementation guide.


🗂 Project Structure

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 Roster

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

⚙️ Tech Stack

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)

📖 Documentation


🏗 Current Status

📌 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.


📄 License

MIT License — See LICENSE

About

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.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages