# ultrathink-art/ai-ceo architecture

> Architecture diagram of the GitHub repository ultrathink-art/ai-ceo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ultrathink-art/ai-ceo
- Repository: https://github.com/ultrathink-art/ai-ceo

## Overview

AI CEO is a repository-installed business-advisor workflow for Codex or Claude Code. A founder starts a full or quick review; the selected advisor reads project context and optional metrics, uses prior state and review guidance, then produces tailored recommendations and a strategic decision. The optional launcher adds invocation locking and verifies fresh review and decision artifacts. README documents these capabilities and runtime paths; only the verifier source was sampled, so other implementation details and internal calls are not inferred.

Main entry points: [`SKILL.md`](https://github.com/ultrathink-art/ai-ceo/blob/main/SKILL.md) (Codex advisor skill), [`claude-agents/business-advisor.md`](https://github.com/ultrathink-art/ai-ceo/blob/main/claude-agents/business-advisor.md) (Claude advisor), [`bin/business-review`](https://github.com/ultrathink-art/ai-ceo/blob/main/bin/business-review) (Review launcher), [`lib/verified_review.py`](https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py) (Evidence verifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Review entry"]
  node_review_cli["Review launcher"]
  node_verified["Evidence verifier<br/>[verified_review.py]"]
end

subgraph group_advisor["Advisor workflow"]
  node_codex_skill["Codex advisor skill<br/>[SKILL.md]"]
  node_claude_advisor["Claude advisor"]
end

subgraph group_context["Context and guidance"]
  node_project_context["Project context"]
  node_metrics["Business metrics"]
  node_context_template["Context template"]
  node_decision_guide["Decision framework"]
  node_review_checklist["Review checklist"]
end

subgraph group_continuity["Persistent records"]
  node_business_state[("Business state")]
  node_ceo_memory["Advisor memory<br/>[ceo.md.template]"]
  node_review_output["Review record<br/>[verified_review.py]"]
  node_decision_log[("Decision log<br/>[verified_review.py]")]
end

node_founder(("Founder"))
node_codex["Codex runtime"]
node_claude["Claude Code runtime"]

node_founder -->|"starts review"| node_review_cli
node_founder -->|"invokes skill"| node_codex_skill
node_founder -->|"starts session"| node_claude_advisor
node_review_cli -.->|"runs verifier"| node_verified
node_review_cli -->|"launches runtime"| node_codex
node_review_cli -->|"launches runtime"| node_claude
node_codex_skill -->|"reads context"| node_project_context
node_claude_advisor -->|"reads context"| node_project_context
node_codex_skill -->|"analyzes data"| node_metrics
node_claude_advisor -->|"analyzes data"| node_metrics
node_codex_skill -->|"tracks state"| node_business_state
node_claude_advisor -->|"tracks state"| node_business_state
node_codex_skill -->|"builds memory"| node_ceo_memory
node_claude_advisor -->|"builds memory"| node_ceo_memory
node_codex_skill -->|"uses guidance"| node_context_template
node_claude_advisor -->|"uses guidance"| node_context_template
node_codex_skill -->|"scores choices"| node_decision_guide
node_claude_advisor -->|"scores choices"| node_decision_guide
node_codex_skill -.->|"structures review"| node_review_checklist
node_claude_advisor -.->|"structures review"| node_review_checklist
node_verified -->|"verifies record"| node_review_output
node_verified -->|"validates append"| node_decision_log

click node_review_cli "https://github.com/ultrathink-art/ai-ceo/blob/main/bin/business-review"
click node_verified "https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py"
click node_codex_skill "https://github.com/ultrathink-art/ai-ceo/blob/main/SKILL.md"
click node_claude_advisor "https://github.com/ultrathink-art/ai-ceo/blob/main/claude-agents/business-advisor.md"
click node_context_template "https://github.com/ultrathink-art/ai-ceo/blob/main/references/business_context_template.md"
click node_decision_guide "https://github.com/ultrathink-art/ai-ceo/blob/main/references/decision_framework.md"
click node_review_checklist "https://github.com/ultrathink-art/ai-ceo/blob/main/references/review_checklist.md"
click node_business_state "https://github.com/ultrathink-art/ai-ceo/blob/main/state/business_state.yml.template"
click node_ceo_memory "https://github.com/ultrathink-art/ai-ceo/blob/main/state/memory/ceo.md.template"
click node_review_output "https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py"
click node_decision_log "https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_review_cli,node_verified toneBlue
class node_codex_skill,node_claude_advisor toneAmber
class node_project_context,node_metrics,node_context_template,node_decision_guide,node_review_checklist toneMint
class node_business_state,node_ceo_memory,node_review_output,node_decision_log toneRose
class node_founder,node_codex,node_claude toneIndigo
```

## Components

### Review entry

- [Review launcher](https://github.com/ultrathink-art/ai-ceo/blob/main/bin/business-review): `bin/business-review`
- [Evidence verifier](https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py): `lib/verified_review.py`

### Advisor workflow

- [Codex advisor skill](https://github.com/ultrathink-art/ai-ceo/blob/main/SKILL.md): `SKILL.md`
- [Claude advisor](https://github.com/ultrathink-art/ai-ceo/blob/main/claude-agents/business-advisor.md): `claude-agents/business-advisor.md`

### Context and guidance

- **Project context**
- **Business metrics**
- [Context template](https://github.com/ultrathink-art/ai-ceo/blob/main/references/business_context_template.md): `references/business_context_template.md`
- [Decision framework](https://github.com/ultrathink-art/ai-ceo/blob/main/references/decision_framework.md): `references/decision_framework.md`
- [Review checklist](https://github.com/ultrathink-art/ai-ceo/blob/main/references/review_checklist.md): `references/review_checklist.md`

### Persistent records

- [Business state](https://github.com/ultrathink-art/ai-ceo/blob/main/state/business_state.yml.template): `state/business_state.yml.template`
- [Advisor memory](https://github.com/ultrathink-art/ai-ceo/blob/main/state/memory/ceo.md.template): `state/memory/ceo.md.template`
- [Review record](https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py): `lib/verified_review.py`
- [Decision log](https://github.com/ultrathink-art/ai-ceo/blob/main/lib/verified_review.py): `lib/verified_review.py`

### Other components

- **Founder**
- **Codex runtime**
- **Claude Code runtime**

## Connections

- Founder → Review launcher: starts review (evidence: `README.md`)
- Founder → Codex advisor skill: invokes skill (evidence: `README.md`)
- Founder → Claude advisor: starts session (evidence: `README.md`)
- Review launcher → Evidence verifier: runs verifier
- Review launcher → Codex runtime: launches runtime (evidence: `README.md`)
- Review launcher → Claude Code runtime: launches runtime (evidence: `README.md`)
- Codex advisor skill → Project context: reads context (evidence: `README.md`)
- Claude advisor → Project context: reads context (evidence: `README.md`)
- Codex advisor skill → Business metrics: analyzes data (evidence: `README.md`)
- Claude advisor → Business metrics: analyzes data (evidence: `README.md`)
- Codex advisor skill → Business state: tracks state (evidence: `README.md`)
- Claude advisor → Business state: tracks state (evidence: `README.md`)
- Codex advisor skill → Advisor memory: builds memory (evidence: `README.md`)
- Claude advisor → Advisor memory: builds memory (evidence: `README.md`)
- Codex advisor skill → Context template: uses guidance (evidence: `README.md`)
- Claude advisor → Context template: uses guidance (evidence: `README.md`)
- Codex advisor skill → Decision framework: scores choices (evidence: `README.md`)
- Claude advisor → Decision framework: scores choices (evidence: `README.md`)
- Codex advisor skill → Review checklist: structures review
- Claude advisor → Review checklist: structures review
- Evidence verifier → Review record: verifies record (evidence: `lib/verified_review.py`)
- Evidence verifier → Decision log: validates append (evidence: `lib/verified_review.py`)
