LangGraph-powered multi-agent AI platform β Prompt Expert β CEO/CTO β 6 Domain Directors β 7 Execution Specialists, with a full artifact pipeline and real-time dashboard.
v0.5 β Dynamic artifact generation Β· Brand palette from live agent output Β· Security + Social Media domain artifacts Β· Scenario defaults versioning Β· Payload validation hardening
git clone https://github.com/0xwaya/ceo-agent-system.git
cd ceo-agent-system
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # add OPENAI_API_KEY / ANTHROPIC_API_KEY
python3 app.py
# Dashboards
open http://localhost:5001/ # Main dashboard
open http://localhost:5001/admin # Admin / agent runner
open http://localhost:5001/graph # LangGraph live viewUser Input
β
βΌ
[Node 0] Prompt Expert βββ parses intent β routing signals
β
βΌ
[Tier 1] CEO ββββββββββββ builds dispatch_plan, orchestrates
[Tier 1] CTO ββββββββββββ architecture review, tech-stack decisions
β
βββΆ [Tier 2] CFO Finance, budget, projections
βββΆ [Tier 2] Engineer Architecture, delegates to Tier 3
βββΆ [Tier 2] Researcher Market & competitive intelligence
βββΆ [Tier 2] Legal Compliance & regulatory
βββΆ [Tier 2] Martech Marketing strategy, delegates to Tier 3
βββΆ [Tier 2] Security Threat model, audit, compliance gaps
β
βββΆ [Tier 3] UX/UI Designer
βββΆ [Tier 3] Web Development
βββΆ [Tier 3] Software Engineering
βββΆ [Tier 3] Branding & Identity
βββΆ [Tier 3] Content Strategy
βββΆ [Tier 3] Campaign Execution
βββΆ [Tier 3] Social Media
| Tier | Count | Role |
|---|---|---|
| Node 0 | 1 | Prompt Expert β intent parsing & routing |
| Tier 1 | 2 | CEO + CTO β strategic orchestration |
| Tier 2 | 6 | Domain directors β delegation & subgraph execution |
| Tier 3 | 7 | Execution specialists β deliverables & artifact output |
| Total | 16 | agents |
Given a company description, budget, and goals the system:
- Parses intent β Prompt Expert converts natural language into structured routing
- Builds strategy β CEO constructs a
dispatch_planacross relevant domains - Executes in parallel β Domain directors spawn execution agents concurrently
- Generates artifacts β Every agent persists reviewable output files:
- Branding: SVG logo proposals (4 directions), social avatars, dynamic brand palette CSS, moodboard SVG
- Web Dev: architecture diagram (Mermaid), homepage wireframe HTML, implementation timeline MD
- CFO: financial report JSON, action plan MD
- Security: audit report MD, vulnerability checklist MD, security report JSON
- Social Media: content calendar MD, campaign ideas MD, community playbook MD
- Legal / Martech / Content / Campaign: domain-specific MDs
- All agents:
metadata.json,result.json,summary.md,deliverables.md
- Renders in report UI β Every report shows a π artifact grid with clickable file links
- Live Feed β animated progress/success/error cards as agents run
- Agents Tab β run any of the 14 specialists individually
- Reports Tab β full agent report with π artifact preview panel
- Tasks Tab β execution task tracker
- Log Tab β raw execution log
- Scenario builder: company info, budget, objectives
- Run individual agents and view structured output
- Artifact browser β browse and open all generated files
- Real-time LangGraph execution view
- Node state inspector
- Approval / human-in-the-loop controls
- Per-agent conversational memory
- SocketIO
ai_chat_request/response+ REST/api/chat/message - Strategic Debate Mode β devil's advocate persona toggle
Every agent run persists files at:
static/generated_outputs/
βββ <agent_slug>/
βββ <run_id>_<company_slug>/
βββ metadata.json
βββ result.json
βββ summary.md
βββ deliverables.md
βββ <domain-specific filesβ¦>
from services.artifact_service import artifact_service
bundle = artifact_service.persist_agent_execution(
agent_type="branding",
agent_name="Branding Agent",
task="Visual identity for ACME Corp",
company_info={"company_name": "ACME Corp", "industry": "Technology"},
result=agent_result_dict,
)
# bundle["artifacts"] β [{title, url, type, mime_type}, β¦]
# bundle["directory"] β relative path in static/| Layer | Technology |
|---|---|
| Agent Orchestration | LangGraph |
| LLM Backend | OpenAI GPT-4 / Anthropic Claude (configurable) |
| Web Framework | Flask + Flask-SocketIO |
| State Management | TypedDict + LangGraph checkpointing |
| Frontend | Vanilla JS ES6, SocketIO client |
| Artifact Storage | Filesystem (static/generated_outputs/) |
| Testing | pytest Β· 56 tests |
ceo-agent-system/
βββ app.py # Flask app β all routes + SocketIO
βββ config.py # Settings, env, scenario defaults
βββ services/
β βββ artifact_service.py # Artifact persistence + domain file generation
β βββ agent_service.py
β βββ orchestration_service.py
β βββ report_service.py
βββ agents/
β βββ base_agent.py
β βββ ceo_agent.py
β βββ cto_agent.py
β βββ specialized_agents.py # Branding, WebDev, Legal, Martech, Content, Campaign, Social
β βββ security_blockchain_agent.py
βββ graph_architecture/
β βββ main_graph.py # Root LangGraph graph
β βββ llm_nodes.py # All LLM node functions (Tier 1/2/3)
β βββ tools.py # Role-gated tool registry
β βββ schemas.py
β βββ subgraphs/
βββ static/
β βββ js/app.js # Dashboard logic + report rendering
β βββ js/admin.js
β βββ generated_outputs/ # Agent artifact output (git-ignored)
βββ templates/
βββ utils/
β βββ validators.py # Input validation + company_info allowlist
βββ tests/ # 56 pytest tests
make test # full pytest suite (56 tests)
make smoke # fast dashboard render smoke check
make check # lint + smoke + tests| Version | Highlights |
|---|---|
| v0.5 | Dynamic artifact pipeline Β· Brand palette from live colors Β· Security & Social domain artifacts Β· Scenario defaults v2 Β· Payload validation hardening |
| v0.4 | CTO Agent (Tier 1) Β· Real-time LLM chat Β· 3-panel dashboard Β· Live feed cards Β· SocketIO |
| v0.3 | Prompt Expert (Node 0) Β· Conditional dispatch loop Β· 6 Tier-2 directors Β· 7 Tier-3 specialists Β· Centralised llm_nodes.py |
| v0.2 | CFO orchestrator Β· Multi-agent graph Β· LangGraph checkpointing |
| v0.1 | Single-domain marketing agent |
| Doc | Purpose |
|---|---|
| docs/ARCHITECTURE.md | Full system design, data flow, API reference |
| docs/QUICK_START.md | Day-to-day runbook and commands |
| docs/CEO_AGENT_README.md | CEO-mode deep guide |
| graph_architecture/README.md | LangGraph subgraph guide |
| docs/ARTIFACT_WORKFLOW.md | Artifact pipeline walkthrough |
| docs/SECURITY.md | Security posture and audit notes |
- Fork the repo β create branch
feat/<name> - Add tests for new agent behavior in
tests/ - Run
make checkβ all 56 tests + smoke must stay green - Open a PR
MIT β built by @0xwaya / Waya Labs
Built with LangGraph Β· Flask Β· OpenAI Β· Python 3.10+ Domains Branding Β· Web Dev Β· Legal Β· Finance Β· Security Β· Martech Β· Content Β· Campaigns Β· Social Media