🇫🇷 Luymas AI est un système multi-agents d'intelligence artificielle où chaque agent possède un rôle spécialisé — du PDG qui orchestre l'ensemble au Talent Scout qui détecte les besoins de nouvelle recrue. Construit sur Ollama pour l'inférence locale, intégré à WhatsApp et Telegram via OpenClaw, et doté d'une mémoire partagée (Knowledge Mesh), le système est capable de mener un projet de l'idée au déploiement en toute autonomie — sous la supervision constante de l'utilisateur.
- Téléchargement direct
- Overview
- Architecture
- Features
- Quick Start
- Detailed Installation
- Agent Descriptions
- Configuration
- Hardware Requirements
- Project Structure
- Workflow
- Security
- Self-Improvement
- API Key Injection
- Studio
- Docker Deployment
- Contributing
- License
- Credits
Luymas AI is a multi-agent AI system where each agent has a specialized role, working together like a real tech company. The system takes a project from idea to deployed application, with 11 AI agents collaborating under the supervision of the PDG (CEO) agent.
| 🧠 Local-first | Runs entirely on Ollama — no cloud API required |
| 💬 Chat-native | WhatsApp & Telegram integration via OpenClaw |
| 🕸️ Shared Memory | Knowledge Mesh for persistent cross-agent memory |
| 🛡️ Human-in-the-loop | Every critical action requires your explicit approval |
| 🔄 Self-improving | Learns from every project and optimizes itself |
| 📊 PDF Reports | Auto-generated project reports |
| 🔑 API Key Injection | Delivered apps connected to Caretaker |
| 🐙 GitHub Scout | Search & analyze open-source repos |
| 🪪 Digital Identity | Account creation & management for agents |
| 🎨 Design Trends | Continuous monitoring of design trends |
| 🖥️ 3 Formats | Web / Mobile / Desktop output |
| 🛠️ Self-modification | With approval gate — never unattended |
| 🧑💼 Talent Scout | Detects gaps & proposes new agents |
graph TD
USER["👤 User"]
PDG["🏢 PDG<br/>CEO / Orchestrator"]
PM["📋 PM<br/>Product Manager"]
ARCH["🏛️ Architect<br/>Software Architect"]
CB["⚙️ Coder Back<br/>Backend Engineer"]
CF["🎨 Coder Front<br/>Frontend Engineer"]
DES["🖼️ Designer<br/>Design & Visual"]
GUA["🛡️ Guardian<br/>Security & Quality"]
TST["🧪 Tester<br/>QA & Testing"]
OPS["🚀 Ops<br/>DevOps & Deployment"]
CARE["🩺 Caretaker<br/>Post-Deploy Monitor"]
TS["🔍 Talent Scout<br/>Team Builder"]
KM["🕸️ Knowledge Mesh<br/>Shared Memory"]
MSG["💬 Messenger<br/>WhatsApp / Telegram"]
USER -->|"Request"| PDG
PDG -->|"Specs"| PM
PDG -->|"Approvals"| USER
PM -->|"Requirements"| ARCH
ARCH -->|"Architecture"| CB
ARCH -->|"Architecture"| CF
ARCH -->|"Design Brief"| DES
CB -->|"Code"| GUA
CF -->|"Code"| GUA
DES -->|"Assets"| CF
GUA -->|"Secure Code"| TST
TST -->|"Tested Build"| OPS
OPS -->|"Deployed App"| CARE
TS -->|"Gap Report"| PDG
CARE -->|"Bug Reports"| CB
CARE -->|"Bug Reports"| CF
PDG <-->|"Memory"| KM
CB <-->|"Memory"| KM
CF <-->|"Memory"| KM
GUA <-->|"Memory"| KM
MSG <-->|"Messages"| PDG
MSG <-->|"Notifications"| USER
style PDG fill:#4a90d9,color:#fff,stroke:#2c5f8a
style KM fill:#2d2d2d,color:#0f0,stroke:#0a0
style MSG fill:#25d366,color:#fff,stroke:#128c7e
style USER fill:#f9a825,color:#000,stroke:#f57f17
Each agent is a self-contained Python class with its own system prompt, skills, message handlers, and model configuration. They communicate through the Orchestrator's message bus and share knowledge through the Knowledge Mesh.
| Agent | Role | Emoji |
|---|---|---|
| PDG | CEO / Supreme Orchestrator | 🏢 |
| PM | Product Manager | 📋 |
| Architect | Software Architect | 🏛️ |
| Coder Back | Backend Engineer | ⚙️ |
| Coder Front | Frontend Engineer | 🎨 |
| Designer | Design & Visual | 🖼️ |
| Guardian | Security & Quality | 🛡️ |
| Tester | QA & Testing | 🧪 |
| Ops | DevOps & Deployment | 🚀 |
| Caretaker | Post-Deploy Monitor | 🩺 |
| Talent Scout | Team Builder | 🔍 |
All agents communicate through WhatsApp and Telegram via the OpenClaw gateway. The PDG creates a "Luymas War Room" group chat where all agents coordinate in real-time. You interact with the system as if chatting with a team.
The Knowledge Mesh is a shared memory system with:
- Vector search across all agent knowledge
- Knowledge graph with BFS traversal
- Project history for cross-project learning
- Experience store for lessons learned
- Export to
KNOWLEDGE_MESH.mdfor human readability
The system improves itself through:
- Experience Learner — retrospective analysis of completed projects
- Pattern Detector — success/failure/tech stack pattern recognition
- Self-Improver — code optimization proposals (4 patterns)
- Model Updater — automatic model upgrade recommendations
- Auto-Updater — 7 update detection patterns with rollback
All changes require explicit user approval before being applied.
The PDG is the sole authorized agent for PDF generation. Seven report types are available:
- Executive Summary
- Architecture Report
- Test Results Report
- Security Report
- Deployment Report
- Sources Report
- Lessons Learned
Every deployed application receives injected API keys that connect it back to the Caretaker agent for:
- Bug reporting
- Performance monitoring
- Health checks
- Feature request collection
Search and analyze open-source repositories:
- Project Searcher — find repos by topic/language
- Project Analyzer — extract structure, dependencies, patterns
- Source Documenter — auto-generate
SOURCES.md - License Checker — verify license compatibility
The PDG manages digital identities across 7 services: GitHub, GitLab, NPM, PyPI, Docker Hub, Vercel, Supabase
Each identity has a full audit trail, and revocation is one-click.
Automated email setup for each agent via:
- Gmail (App Passwords)
- ProtonMail
- Mailgun (API)
- AliasKit (disposable aliases)
All registered in a persistent email registry.
Six-level CAPTCHA solving hierarchy:
- Text CAPTCHA — LLM-based solving
- Image CAPTCHA — vision model classification
- Audio CAPTCHA — Whisper transcription
- Cloudflare — FlareSolverr bypass
- reCAPTCHA — token-based solving
- Human Escalation — final fallback to user
The Designer agent continuously monitors:
- Dribbble & Pinterest for inspiration
- Design system trends
- Typography & color trends
- Component patterns
All findings stored in inspiration.md per project.
| Format | Stack | Platform |
|---|---|---|
| Web | Next.js + TypeScript + Tailwind | Vercel / Docker |
| Mobile | React Native + Expo | iOS & Android |
| Desktop | Tauri + React | Windows / macOS / Linux |
Project templates are included for all three formats.
The system can modify its own codebase through the Auto-Updater:
- Detects 7 update patterns (security, performance, compatibility, etc.)
- Backs up all files before modification
- Full rollback on failure
- Never auto-applies — every change needs user approval
Detects when the team needs a new member:
- Gap Analysis — identifies missing capabilities
- Difficulty Reports — agents report when they're stuck
- Agent Catalog — 6 pre-defined agent types ready to deploy
- Proposal Generator — creates detailed proposals with role/skills/model/tools
Luymas AI peut être installé sur une clé USB pour une utilisation nomade, sans installation permanente sur l'ordinateur.
# Insérez une clé USB (minimum 10 Go libre)
python core/usb_builder.py D: # Windows
python core/usb_builder.py /media/usb # Linux
# Options :
python core/usb_builder.py D: --skip-models # Sans les modèles IA
python core/usb_builder.py D: --skip-python # Sans Python portable
python core/usb_builder.py D: --skip-ollama # Sans Ollama- Branchez la clé USB sur n'importe quel PC Windows
- Double-cliquez sur
start.batà la racine de la clé - Ollama est téléchargé automatiquement si absent
- Le Studio s'ouvre dans le navigateur à
http://localhost:5000 - Ne retirez pas la clé pendant l'utilisation
USB_ROOT/
├── start.bat # Script de démarrage portable
├── autorun.inf # Lancement automatique Windows
├── README_USB.txt # Instructions utilisateur
├── luymas-ai/ # Projet complet
├── python_portable/ # Python portable (optionnel)
└── ollama_portable/ # Ollama installateur (optionnel)
| Minimum | Recommandé |
|---|---|
| Windows 10 (64 bits) | Windows 11 |
| 8 Go RAM | 16 Go RAM |
| 10 Go espace libre | 30 Go espace libre |
| Clé USB 3.0 | Clé USB 3.1+ |
🎨 Visualisation de l'architecture — Ouvrez
studio/architecture.htmlpour une visualisation interactive en Liquid Glass de tous les agents et du workflow.
| Vue | Description |
|---|---|
| 🏠 Dashboard | Vue d'ensemble du système, statut des agents, activité en temps réel |
| 🤖 Agents | Contrôle individuel de chaque agent (start/stop/pause) |
| 📋 Projects | Gestion complète des projets, pipeline de déploiement |
| 💬 War Room | Messagerie en temps réel avec les agents |
| 🖥️ Terminal | Console en temps réel avec filtrage des logs |
| 🎨 Design | Galerie d'images, génération IA, tendances design |
| 📁 Files | Explorateur de fichiers avec coloration syntaxique |
| ⚙️ Settings | Configuration complète du système |
| Platform | File | Size | Instructions |
|---|---|---|---|
| 🐧 Linux | releases/LuymasAI-linux-x64 |
~60 MB | chmod +x LuymasAI-linux-x64 && ./LuymasAI-linux-x64 |
| 🪟 Windows | releases/LuymasAI.exe |
~60 MB | Double-click to launch |
| 🍎 macOS | releases/LuymasAI-macos-x64 |
~60 MB | chmod +x LuymasAI-macos-x64 && ./LuymasAI-macos-x64 |
💡 Windows .exe & macOS builds are automatically generated via GitHub Actions when a new version tag (
v*) is pushed. The Linux binary is built directly in this repository. To trigger a cross-platform build, push a tag:git tag v1.0.0 && git push --tags📦 You can also download the latest builds from the GitHub Releases page.
- ✅ Detects if Ollama is installed
- ✅ Starts the Studio web server on
http://localhost:5000 - ✅ Opens your browser to the Studio dashboard
- ✅ Starts the Orchestrator with all 11 agents in the background
- ✅ Ready to use — just type your project description!
- Ollama must be installed separately: ollama.com/download
- At least one AI model downloaded:
ollama pull deepseek-r1:8b - No Python installation required — the executable is self-contained
Windows:
install.bat
launcher.batLinux / macOS:
chmod +x install.sh && ./install.sh
python launcher.pyBuild your own executable:
pip install pyinstaller
python build_exe.py # Current platform (onedir)
python build_windows_exe.py # Windows .exe (requires Windows or Wine)Or use the PyInstaller spec file directly:
pip install pyinstaller
pyinstaller LuymasAI.spec --noconfirm # One-file buildCross-platform build via GitHub Actions:
git tag v1.0.0
git push --tags
# This triggers .github/workflows/build.yml → builds .exe for Windows, Linux, macOS# 1. Clone the repository
git clone https://github.com/ebrill82/luymas-ai.git && cd luymas-ai
# 2. Run the installer
chmod +x install.sh && ./install.sh
# 3. Start Luymas AI (with Studio web interface)
python launcher.pyThat's it! The installer handles Ollama, models, Python dependencies, and configuration. The Studio opens automatically in your browser at http://localhost:5000.
The install.sh script walks you through 7 steps:
- Detects OS (Linux, macOS, WSL)
- Checks Python 3.10+ is installed
- Checks Git availability
- Measures RAM and detects GPU
- Checks available disk space
- Verifies Ollama is installed
- Offers automatic installation if missing
- Starts the Ollama server
- Verifies the server is responding
Downloads tier-appropriate models:
| Model | Purpose | Size |
|---|---|---|
deepseek-r1:8b |
Reasoning | ~4.7 GB |
qwen2.5-coder:7b |
Code generation | ~4.5 GB |
gemma3:4b |
Lightweight assistant | ~2.6 GB |
z-image-turbo |
Image generation | ~3.8 GB |
llama3.2:3b |
Quick tasks | ~2.0 GB |
- Choose Telegram, WhatsApp, or both
- Enter Telegram bot token (from @BotFather)
- WhatsApp uses QR code (scanned on first launch)
- Enter your phone number for WhatsApp authorization
- Enter your email for notifications
- Contact whitelist is created — only you can interact with agents
- Creates
.envfrom.env.example - Sets up Python virtual environment
- Installs all dependencies from
requirements.txt - Creates project directories (
models/,logs/,data/,design/assets/) - Generates PDG API key
- Validates Python dependencies
- Checks Ollama is running with models
- Confirms
.envis configured - Verifies directory structure
- Tests model inference
| # | Agent | Class | Role | Key Tools | |
|---|---|---|---|---|---|
| 1 | 🏢 PDG | PDGAgent |
CEO / Supreme Orchestrator. Validates all requests, generates PDFs, injects API keys, manages identities, approves modifications | pdg@luymas.ai |
GitHub Issues, PR Management, CTO Reports, Notifications |
| 2 | 📋 PM | PMAgent |
Product Manager. Reformulates requests into specs, market research, product briefs, requirement docs | pm@luymas.ai |
Felo Search, Clarification Engine, Product Briefs |
| 3 | 🏛️ Architect | ArchitectAgent |
Software Architect. C4 model design, tech stack selection, database schemas, API contracts, Mermaid diagrams | architect@luymas.ai |
Engine Chooser, Architecture Design, Framework Checker |
| 4 | ⚙️ Coder Back | CoderBackAgent |
Backend Engineer. FastAPI/SQLAlchemy scaffolding, self-verification, security patterns, SOURCES.md | coder-back@luymas.ai |
Code Execution, Self-Verification, GitHub Scout |
| 5 | 🎨 Coder Front | CoderFrontAgent |
Frontend Engineer. Next.js/TypeScript/Tailwind, shadcn/ui, responsive design, WCAG 2.1 AA | coder-front@luymas.ai |
Reusable Components, Responsive Design, GitHub Scout |
| 6 | 🖼️ Designer | DesignerAgent |
Design & Visual. Dribbble/Pinterest inspiration, design systems, FLUX.1 Pro/SD3 image gen, trend detection | designer@luymas.ai |
Felo Search, Website Screenshot, OpenCode Design, Design Updater |
| 7 | 🛡️ Guardian | GuardianAgent |
Security & Quality. OWASP Top 10, OSV.dev/Snyk dependency checks, injection/auth/crypto detection, deployment gate | guardian@luymas.ai |
Security Scan, Dependency Check, Vulnerability Analysis |
| 8 | 🧪 Tester | TesterAgent |
QA & Testing. pytest/Vitest/Playwright test generation, bug screenshots, E2E video recording, coverage tracking | tester@luymas.ai |
Test Generation, Bug Capture, E2E Testing |
| 9 | 🚀 Ops | OpsAgent |
DevOps & Deployment. Docker containerization, Vercel deploy, Supabase connect, CI/CD, 3 output formats | ops@luymas.ai |
Deploy to Vercel, Connect Supabase, Setup Monitoring, Health Check |
| 10 | 🩺 Caretaker | CaretakerAgent |
Post-Deploy Monitor. Bug reception via injected API keys, blue-green fixes, SLA enforcement, incident logging | caretaker@luymas.ai |
Bug Reception, Fix Deployment, Continuous Monitoring |
| 11 | 🔍 Talent Scout | TalentScoutAgent |
Team Builder. Gap analysis, difficulty report processing, agent catalog, detailed proposals for new agents | talent-scout@luymas.ai |
Gap Analysis, Agent Proposal, Capability Search |
Copy .env.example to .env and fill in your values:
cp .env.example .env| Variable | Required | Description |
|---|---|---|
OLLAMA_HOST |
✅ | Ollama server URL (default: http://localhost:11434) |
TELEGRAM_BOT_TOKEN |
💬 | From @BotFather on Telegram |
WHATSAPP_SESSION_PATH |
💬 | Path for WhatsApp session data |
GITHUB_TOKEN |
🐙 | Personal access token (scopes: repo, read:org, workflow) |
OPENAI_API_KEY |
☁️ | Optional cloud fallback |
ANTHROPIC_API_KEY |
☁️ | Optional cloud fallback |
FLUX_API_KEY |
🎨 | Optional hosted image generation |
SMTP_HOST / SMTP_USER / SMTP_PASS |
📧 | Email notifications |
CAPTCHA_SOLVER_API_KEY |
🧩 | 2captcha / anticaptcha API key |
LUYMAS_USER_PHONE |
✅ | Your phone number (for authorization) |
LUYMAS_USER_EMAIL |
✅ | Your email (for notifications) |
LUYMAS_ENV |
✅ | sandbox, development, or production |
LUYMAS_HARDWARE_TIER |
✅ | 1–5 (auto-detected if not set) |
LUYMAS_LOG_LEVEL |
✅ | DEBUG, INFO, WARNING, ERROR |
LUYMAS_MAX_CONCURRENT_AGENTS |
✅ | Max agents running simultaneously |
Configures all 11 agents with per-tier model assignments, tools, skills, temperature, and system prompts. Each agent has 5 model tiers:
agents:
- name: pdg
display_name: "Luymas PDG"
models:
tier1: "deepseek-r1:8b"
tier2: "deepseek-r1:14b"
tier3: "qwen3:30b"
tier4: "qwen3.5"
tier5: "deepseek-v4-pro"
temperature: 0.3
max_tokens: 4096Complete listing of 16+ models across 4 categories (reasoning, coding, image, review) with:
- Ollama tags and HuggingFace IDs
- Parameter counts and quantization sizes
- Hardware requirements (min/recommended RAM & VRAM)
- Benchmark scores (MMLU, HumanEval, GPQA, etc.)
- Download commands
- License information
Luymas AI détecte automatiquement votre matériel et sélectionne les modèles adaptés grâce au Hardware Detector (core/hardware_detector.py).
Au lancement, le système affiche un rapport complet :
╔══════════════════════════════════════════════╗
║ 🖥️ LUYMAS AI - RAPPORT MATÉRIEL ║
╠══════════════════════════════════════════════╣
║ 💻 CPU : AMD Ryzen 9 5950X
║ 🧠 RAM Total : 64.0 Go
║ 🧠 RAM Libre : 42.3 Go
║ 🎮 GPU : NVIDIA RTX 4090 (24.0 Go VRAM)
║ 💾 Disque : 850.2 Go libre
╠══════════════════════════════════════════════╣
║ 📊 TIER : PRO 🔴
║ 📝 Description : Station pro, 64-96 Go RAM, GPU 24 Go+
║ 🔢 Modèles max : 3
╠══════════════════════════════════════════════╣
║ 🧠 Modèles recommandés :
║ Raisonnement : qwen3.6:72b
║ Code : deepseek-v4:70b
║ Design : flux.1-pro-max
║ Rapide : qwen3.6:30b
╚══════════════════════════════════════════════╝
Luymas AI supports 6 hardware tiers, from a basic 8GB sandbox to a multi-GPU data center:
| Tier | RAM | GPU | Modèles Simultanés | Raisonnement | Code | Design | Rapide |
|---|---|---|---|---|---|---|---|
| ultra-light 🟢 | 8-12 Go | Aucun | 1 | gemma3:4b |
qwen2.5-coder:3b |
z-image-turbo |
llama3.2:3b |
| light 🟡 | 16-24 Go | Aucun | 1 | deepseek-r1:8b |
qwen2.5-coder:7b |
stable-diffusion-3-medium |
gemma3:4b |
| standard 🟠 | 32-48 Go | Optionnel | 2 | qwen3.6:30b |
deepseek-v4:16b |
flux.1-pro |
llama3.3:8b |
| pro 🔴 | 64-96 Go | 24 Go+ VRAM | 3 | qwen3.6:72b |
deepseek-v4:70b |
flux.1-pro-max |
qwen3.6:30b |
| ultra 🟣 | 128-192 Go | 48 Go+ VRAM | 4 | kimi-k2.6 |
deepseek-v4-pro |
flux.1-ultra |
qwen3.6:72b |
| enterprise 💎 | 256 Go+ | Multi-GPU 80 Go+ | ∞ | glm-5.1 |
deepseek-v4-pro-x4 |
flux.1-ultra-x2 |
all-parallel |
Le système gère automatiquement les modèles chargés en RAM selon le tier :
| Tier | Stratégie |
|---|---|
| ultra-light / light | 1 modèle à la fois — déchargement après chaque tâche |
| standard | 2 modèles max — ex: code + raisonnement |
| pro | 3 modèles max — raisonnement + code + rapide |
| ultra | 4 modèles max |
| enterprise | Tous en parallèle — illimité |
Fonctions disponibles :
charger_modele(nom)— Charge un modèle, décharge les anciens si limite atteintedecharger_modele(nom)— Décharge un modèle spécifiquedecharger_modeles()— Décharge tous les modèles
luymas-ai/
├── launcher.py # 🚀 Main entry point (Flask + Orchestrator + Browser)
├── main.py # 📟 CLI entry point (interactive mode)
├── install.sh # 📦 Linux/macOS installation script
├── install.bat # 📦 Windows installation script
├── start.bat # 💾 USB portable startup script
├── autorun.inf # 💾 USB auto-run configuration
├── README_USB.txt # 💾 USB portable user instructions
├── launcher.bat # 🪟 Windows quick-start
├── build_exe.py # 🔨 PyInstaller build script
├── build_windows_exe.py # 🪟 Windows .exe cross-compilation
├── luymas.spec # 📋 PyInstaller spec file
├── requirements.txt # 🐍 Python dependencies (22 packages)
├── .env.example # 🔑 Environment variable template
├── README.md # 📖 This file
├── research.md # 📚 Model research & benchmarks
├── installed_models.md # 📊 Installed models & hardware tiers
│
├── releases/ # 📥 Pre-built binaries
│ └── LuymasAI-linux-x64 # Linux executable (~60 MB)
│
├── agents/ # 🤖 All 11 AI agents
│ ├── __init__.py # Registry, factory, imports
│ ├── base.py # BaseAgent, AgentStatus, AgentMessage
│ ├── pdg.py # 🏢 CEO / Supreme Orchestrator
│ ├── pm.py # 📋 Product Manager
│ ├── architect.py # 🏛️ Software Architect
│ ├── coder_back.py # ⚙️ Backend Engineer
│ ├── coder_front.py # 🎨 Frontend Engineer
│ ├── designer.py # 🖼️ Designer & Visual
│ ├── guardian.py # 🛡️ Security & Quality
│ ├── tester.py # 🧪 QA & Testing
│ ├── ops.py # 🚀 DevOps & Deployment
│ ├── caretaker.py # 🩺 Post-Deploy Monitor
│ └── talent_scout.py # 🔍 Team Builder
│
├── core/ # 🧠 Core system modules
│ ├── orchestrator.py # Multi-Agent Orchestrator & Message Bus
│ ├── messenger.py # WhatsApp / Telegram Integration
│ ├── memory.py # Knowledge Mesh (shared memory)
│ ├── pdf_generator.py # PDF Report Generator (7 types)
│ ├── api_injector.py # API Key Injection Engine
│ ├── auto_updater.py # Self-Modification System
│ ├── github_scout.py # GitHub Project Discovery
│ ├── self_improver.py # System Self-Improvement
│ ├── experience_learner.py # Learning by Experience
│ ├── email_factory.py # Email Creation for Agents
│ ├── captcha_solver.py # Anti-Captcha System
│ ├── identity_manager.py # Digital Identity Manager
│ ├── hardware_detector.py # 🖥️ Détection automatique du matériel & tiers
│ └── usb_builder.py # 💾 Constructeur de clé USB portable
│
├── config/ # ⚙️ Configuration files
│ ├── agents.yaml # Agent definitions & model tiers
│ └── models.yaml # Model catalog & benchmarks
│
├── design/ # 🎨 Design system
│ ├── image_generator.py # AI image generation (FLUX.1/SD3/Z-Image)
│ ├── design_plugins.py # Design plugin system (colors, typo, layout)
│ └── design_updater.py # Trend monitoring & freshness scorer
│
├── studio/ # 🖥️ Web interface (8 views)
│ ├── index.html # SPA with Dashboard, Agents, Projects, etc.
│ ├── style.css # GitHub-dark theme + responsive
│ └── app.js # Complete JS application (8 classes)
│
├── templates/ # 📋 Project templates
│ ├── web/ # Next.js + TypeScript + Tailwind
│ ├── mobile/ # React Native + Expo
│ └── desktop/ # Tauri + React
│
├── docker/ # 🐳 Docker deployment
│ ├── Dockerfile # Multi-stage production build
│ ├── docker-compose.yml # Full stack (Luymas + Ollama + Redis + FlareSolverr)
│ └── entrypoint.sh # Container entry point
│
├── .github/workflows/ # 🔄 GitHub Actions CI/CD
│ └── build.yml # Auto-build .exe for Windows/Linux/macOS
│
├── data/ # 💾 Persistent data storage
├── logs/ # 📝 System logs
├── models/ # 🧠 Downloaded model files
└── tests/ # 🧪 Test suite
└── test_agents.py
Here's how a project goes from idea to deployment in Luymas AI:
👤 User Request
│
▼
🏢 PDG — Validates & Routes
│
▼
📋 PM — Clarifies & Creates Spec
│
▼
🏛️ Architect — Designs System
│
├──────────────────┐
▼ ▼
⚙️ Coder Back 🎨 Coder Front
(API + DB) (UI + Components)
│ │
│ 🖼️ Designer
│ (Design System)
│ │
├──────────────────┘
▼
🛡️ Guardian — Security Audit
│
▼
🧪 Tester — Test Generation & Execution
│
▼
🚀 Ops — Build & Deploy (Web/Mobile/Desktop)
│
▼
🩺 Caretaker — Monitor & Maintain
│
├── Bug? → Coder Back / Coder Front → Guardian → Tester → Ops
├── Performance Issue? → Ops → Architect
└── New Need? → 🔍 Talent Scout → 🏢 PDG → 👤 User Approval
🤖 Luymas> Build me a task management app with real-time sync
🏢 PDG: Request validated. Routing to PM for specification.
📋 PM: I've created a product brief. Key features:
- Task CRUD with real-time sync via WebSockets
- User auth with JWT
- Kanban board view
- Mobile-responsive design
Target: Web app, deployed on Vercel with Supabase backend.
🏛️ Architect: Architecture designed (C4 model):
- Frontend: Next.js 14 + TypeScript + Tailwind CSS + shadcn/ui
- Backend: FastAPI + SQLAlchemy + PostgreSQL (Supabase)
- Real-time: WebSocket via Supabase Realtime
- Auth: Supabase Auth + JWT
- Deploy: Vercel (frontend) + Supabase (backend)
⚙️ Coder Back: FastAPI backend scaffolded. 12 endpoints, 4 models.
🎨 Coder Front: Next.js frontend scaffolded. 8 pages, 14 components.
🖼️ Designer: Design system created. 24 design tokens, dark/light theme.
🛡️ Guardian: Security scan complete. 0 critical, 0 high, 2 medium findings.
Medium: Add rate limiting, set CORS origins explicitly. (Auto-fixed)
🧪 Tester: 47 tests generated. Unit: 32/32 ✅ Integration: 10/10 ✅ E2E: 5/5 ✅
🚀 Ops: Deployed to Vercel. App live at: https://taskapp.vercel.app
API keys injected → Caretaker connected.
🩺 Caretaker: Monitoring active. Health check: ✅ | Response time: 142ms
Every action in Luymas AI passes through a three-tier approval system:
Agent Request
│
▼
┌─────────────────┐ Auto-Approve ┌──────────┐
│ Risk Assessment │ ───────────────────→ │ Execute │
└────────┬────────┘ └──────────┘
│
│ Needs Approval
▼
┌─────────────────┐ Approve ┌──────────┐
│ PDG Review │ ───────────────────→ │ Execute │
└────────┬────────┘ └──────────┘
│
│ Critical Action
▼
┌─────────────────┐ Approve ┌──────────┐
│ User Review │ ───────────────────→ │ Execute │
└────────┬────────┘ └──────────┘
│
│ Deny (any level)
▼
┌─────────────────┐
│ Blocked + Log │
└─────────────────┘
Critical actions that ALWAYS require user approval:
code_modification— any change to the codebasedeployment— deploying to any environmentapi_key_injection— injecting keys into appsaccount_creation— creating new service accountsmodel_download— downloading new AI modelsself_modification— modifying the system itself
By default, only you can interact with Luymas agents:
✅ Whitelisted contact → Message processed normally
❌ Unknown contact → No response + alert to PDG → Alert to you
The anti-captcha system follows a strict escalation protocol:
- Never attempt to solve CAPTCHAs on authentication pages
- Never bypass CAPTCHAs on financial or banking sites
- Always log CAPTCHA encounters for audit
- Always escalate to human after 2 failed attempts
- Never store CAPTCHA solutions for reuse
Luymas AI gets better with every project through three learning mechanisms:
After each project, the system performs a retrospective:
- Success Pattern Detection — what worked well?
- Failure Pattern Detection — what went wrong?
- Tech Stack Analysis — which tools were effective?
- Lesson Extraction — generate actionable lessons
All lessons are stored in KNOWLEDGE_MESH.md for future reference.
Periodically assesses and optimizes:
- Code Quality — 4 optimization patterns (simplification, caching, async, dedup)
- Model Selection — recommends model upgrades based on performance
- Prompt Engineering — refines system prompts based on outcomes
Detects and proposes updates:
- Security updates — known vulnerability patches
- Performance improvements — optimization opportunities
- Compatibility fixes — dependency version issues
- Feature additions — new capabilities from library updates
⚠️ All self-improvement changes require explicit user approval. The system NEVER modifies itself autonomously.
When Ops deploys an application, the PDG injects API keys that connect the app back to the Caretaker:
┌──────────────┐ ┌──────────────┐
│ Deployed App │ ─── API Keys ───→ │ Caretaker │
│ (Your Product)│ │ (Monitor) │
└──────────────┘ └──────────────┘
│ │
│ Bug occurs │ Alert received
▼ ▼
Sends error report Notifies PDG → Coder
via injected API key for fix deployment
Injection methods:
- Environment variables —
.envfiles for backend apps - Placeholder replacement —
{{LUYMAS_API_KEY}}in config files - Runtime validation — health check endpoint verification
Security: Each key is unique per app, revocable, and tracked in the Key Registry.
Luymas Studio is the web interface for controlling and monitoring the system. Access it at http://localhost:5000 after launching.
| View | Description |
|---|---|
| 🏠 Dashboard | System overview, agent status grid, activity feed, quick actions, system health, pending approvals |
| 🤖 Agents | Per-agent controls (start/stop/pause), individual chat, memory viewer, skill explorer |
| 📋 Projects | Full CRUD, status filtering, timeline visualization, deploy pipeline (Web/Mobile/Desktop) |
| 💬 War Room | Thread-based messaging, slash commands (/status, /models, /deploy), approval queue |
| 🖥️ Terminal | Real-time log viewer with command input, log level filtering, full-screen mode |
| 🎨 Design | Image gallery, AI image generation form, design system preview, trend alerts, freshness score |
| 📁 Files | File tree browser, content viewer with syntax highlighting, download |
| ⚙️ Settings | Models, Messaging, Security, Email, Identity, System configuration |
# Start with Studio (auto-opens browser)
python launcher.py
# Or start manually
python -m flask --app launcher run --port 5000- HTML — Semantic SPA with 8 views
- CSS — 80+ custom properties, GitHub-dark theme, responsive design
- JavaScript — 8 ES6+ classes: APIClient, WebSocketManager, TerminalEmulator, ChatManager, FileManager, DesignManager, ToastManager, ModalManager
- 🔄 Real-time WebSocket updates with auto-reconnect
- 🔔 Toast notifications (success/error/warning/info)
- 🪟 Modal dialogs with focus trap
- 🔍 Global search with
Ctrl+Kshortcut - 📱 Fully responsive (sidebar collapses on mobile)
- 💾 Persistent settings via localStorage
# Clone and configure
git clone https://github.com/your-username/luymas-ai.git && cd luymas-ai
cp .env.example .env
# Edit .env with your values
# Build and run
cd docker
docker-compose up -dThe docker-compose.yml includes 4 services:
| Service | Image | Ports | Purpose |
|---|---|---|---|
| luymas | Custom (Python 3.12-slim) | 8000, 8501 | Main application + Studio |
| ollama | ollama/ollama:latest |
11434 | Local LLM inference |
| flaresolverr | ghcr.io/flaresolverr/flaresolverr:latest |
8191 | Cloudflare bypass |
| redis | redis:7-alpine |
6379 | Caching & message queue |
| Volume | Mount | Purpose |
|---|---|---|
ollama-data |
/root/.ollama |
Persistent model storage |
redis-data |
/data |
Redis persistence |
../data |
/app/data |
Application data |
../logs |
/app/logs |
Application logs |
../design/assets |
/app/design/assets |
Design assets |
For NVIDIA GPU acceleration, ensure you have:
- NVIDIA Container Toolkit installed
- Docker Compose with GPU device reservation (included in
docker-compose.yml)
# Enter the Ollama container
docker exec -it luymas-ollama ollama pull deepseek-r1:8b
docker exec -it luymas-ollama ollama pull qwen2.5-coder:7b
# Verify
docker exec -it luymas-ollama ollama listcurl http://localhost:8000/healthWe welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my feature' - Push to the branch:
git push origin feature/my-feature - Open a Pull Request
- Python: Follow PEP 8, use type hints, add docstrings
- Agents: Inherit from
BaseAgent, implementprocess(), addSYSTEM_PROMPT - Core Modules: Use the Facade pattern, include rollback support
- Tests: Write tests for all new functionality
- Security: Never hardcode secrets, always require approval for critical actions
- Documentation: Update README and relevant
.mdfiles
- Create a new file in
agents/following the existing pattern - Inherit from
BaseAgentwithname,role,email,model - Define
SYSTEM_PROMPTas a class attribute - Implement
process()with message routing - Add skills as async methods
- Register in
agents/__init__.pyAGENT_REGISTRY - Add to
config/agents.yamlwith tier-based models - Write tests in
tests/
- 🐛 Bug reports: Use GitHub Issues with the
buglabel - ✨ Feature requests: Use GitHub Issues with the
enhancementlabel - 🔒 Security vulnerabilities: Email
pdg@luymas.ai(do NOT file public issues)
MIT License
Copyright (c) 2026 Luymas AI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Luymas AI is built on the shoulders of giants. We gratefully acknowledge these open-source projects:
| Project | Use |
|---|---|
| Ollama | Local LLM inference runtime |
| DeepSeek | Reasoning & coding models |
| Qwen | General-purpose & coding models |
| Gemma | Fast inference models |
| FLUX | Image generation |
| Stable Diffusion | Image generation (fallback) |
| Project | Use |
|---|---|
| FastAPI | Backend API framework |
| Next.js | Frontend framework |
| Tailwind CSS | Utility-first CSS |
| shadcn/ui | UI component library |
| React Native | Mobile app framework |
| Tauri | Desktop app framework |
| Playwright | Browser automation & E2E testing |
| ReportLab | PDF generation |
| Project | Use |
|---|---|
| Docker | Containerization |
| Redis | Caching & message queue |
| FlareSolverr | Cloudflare bypass |
| Vercel | Frontend hosting |
| Supabase | Backend-as-a-Service |
| Package | Use |
|---|---|
| ollama-python | Ollama Python client |
| python-telegram-bot | Telegram integration |
| Rich | Terminal formatting |
| Click | CLI framework |
| PyYAML | Configuration parsing |
| Pydantic | Data validation |
Built with ❤️ by the Luymas AI Team
11 Agents • 5 Hardware Tiers • 3 Output Formats • 1 Mission
⭐ Star us on GitHub