# openadaptai/openadapt architecture

> Architecture diagram of the GitHub repository openadaptai/openadapt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openadaptai/openadapt
- Repository: https://github.com/openadaptai/openadapt

## Overview

OpenAdapt is the installer and command-line launcher for desktop-workflow automation; the README explicitly places the compiler and runtime in the separate openadapt-flow project. The main path is a person invoking the CLI, using its tutorial or workflow commands, and receiving a run outcome. The graph preserves the documented demonstration, admission, execution, and verification stages, plus optional capture and agent integrations. The legacy tree contains a separate older application; it is not treated as the current runtime. Relationships to external components are based on README statements, not sampled implementation.

Main entry points: [`openadapt/cli.py`](https://github.com/openadaptai/openadapt/blob/main/openadapt/cli.py) (OpenAdapt CLI), [`openadapt/version.py`](https://github.com/openadaptai/openadapt/blob/main/openadapt/version.py) (Version metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launcher["Launcher"]
  node_cli["OpenAdapt CLI<br/>[cli.py]"]
  node_version["Version metadata<br/>[version.py]"]
end

subgraph group_workflow["Workflow lifecycle"]
  node_demo["Demonstration"]
  node_compiler["Flow compiler"]
  node_admission["Program admission"]
  node_runtime["Flow runtime"]
  node_verification["Effect verification"]
  node_run_result["Run report"]
end

subgraph group_integrations["Optional integrations"]
  node_capture["Desktop capture"]
  node_agent["Agent bridge"]
end

node_person(("Person"))

node_person -->|"invokes"| node_cli
node_cli -->|"reads version"| node_version
node_person -->|"records task"| node_demo
node_demo -->|"compiles"| node_compiler
node_person -->|"approves program"| node_admission
node_cli -->|"launches workflow"| node_runtime
node_runtime -->|"checks effects"| node_verification
node_runtime -->|"reports outcome"| node_run_result
node_verification -->|"confirms result"| node_run_result
node_cli -.->|"offers capture"| node_capture
node_agent -.->|"uses programs"| node_runtime

click node_cli "https://github.com/openadaptai/openadapt/blob/main/openadapt/cli.py"
click node_version "https://github.com/openadaptai/openadapt/blob/main/openadapt/version.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_cli,node_version toneBlue
class node_demo,node_compiler,node_admission,node_runtime,node_verification,node_run_result toneAmber
class node_capture,node_agent toneMint
class node_person toneIndigo
```

## Components

### Launcher

- [OpenAdapt CLI](https://github.com/openadaptai/openadapt/blob/main/openadapt/cli.py): `openadapt/cli.py`
- [Version metadata](https://github.com/openadaptai/openadapt/blob/main/openadapt/version.py): `openadapt/version.py`

### Workflow lifecycle

- **Demonstration**
- **Flow compiler**
- **Program admission**
- **Flow runtime**
- **Effect verification**
- **Run report**

### Optional integrations

- **Desktop capture**
- **Agent bridge**

### Other components

- **Person**

## Connections

- Person → OpenAdapt CLI: invokes (evidence: `README.md`)
- OpenAdapt CLI → Version metadata: reads version (evidence: `openadapt/cli.py`)
- Person → Demonstration: records task (evidence: `README.md`)
- Demonstration → Flow compiler: compiles (evidence: `README.md`)
- Person → Program admission: approves program (evidence: `README.md`)
- OpenAdapt CLI → Flow runtime: launches workflow (evidence: `README.md`)
- Flow runtime → Effect verification: checks effects (evidence: `README.md`)
- Flow runtime → Run report: reports outcome (evidence: `README.md`)
- Effect verification → Run report: confirms result (evidence: `README.md`)
- OpenAdapt CLI → Desktop capture: offers capture
- Agent bridge → Flow runtime: uses programs (evidence: `README.md`)
