# joshhhhhan/vista architecture

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

- Interactive diagram: https://gitdiagram.com/joshhhhhan/vista
- Repository: https://github.com/joshhhhhan/vista

## Overview

VISTA is a visual harness for multimodal agents completing interactive-game and image-question tasks. Users select a benchmark, backend, model, and task; the benchmark supplies task inputs, while the shared runtime exposes tools, records visual evidence, and enforces task state before a provider returns results. The README documents ARC-AGI-3, GameWorld, AI GameStore, and BabyVision as product capabilities. Source excerpts clarify the runtime and backend links; benchmark internals are mostly unsampled, so those branches show only documented entry points.

Main entry points: [`src/vista/cli.py`](https://github.com/joshhhhhan/vista/blob/main/src/vista/cli.py) (VISTA CLI), [`src/vista/core/runtime.py`](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/runtime.py) (Task runtime), [`src/vista/backends/claude/runner.py`](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/runner.py) (Claude runner), [`src/vista/backends/session.py`](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/session.py) (Backend session)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_benchmarks["Benchmarks"]
  node_arc3["ARC-AGI-3"]
  node_gameworld["GameWorld"]
  node_aigamestore["AI GameStore"]
  node_babyvision["BabyVision"]
end

subgraph group_runtime["Task runtime"]
  node_profiles["Profiles<br/>[profiles.py]"]
  node_contracts["Tool contracts<br/>[contracts.py]"]
  node_runtime_engine["Task runtime<br/>[runtime.py]"]
  node_dispatcher["Tool dispatcher<br/>[dispatcher.py]"]
  node_task_context["Task context<br/>[support.py]"]
end

subgraph group_backends["Model backends"]
  node_binding["Backend binding<br/>[binding.py]"]
  node_backend_session["Backend session<br/>[session.py]"]
  node_codex["Codex runner<br/>[runner.py]"]
  node_codex_lifecycle["Codex lifecycle<br/>[lifecycle.py]"]
  node_claude["Claude runner<br/>[runner.py]"]
  node_claude_provider["Claude provider<br/>[provider.py]"]
  node_claude_quota["Claude quota<br/>[quota.py]"]
end

subgraph group_evidence["Visual evidence"]
  node_evidence_store["Visual memory<br/>[session.py]"]
end

subgraph group_results["Results"]
  node_artifacts[("Run artifacts<br/>[artifacts.py]")]
end

node_user(("Task operator"))
node_cli["VISTA CLI<br/>[cli.py]"]
node_external_env["Benchmark environments"]
node_model_services["Model CLIs"]

node_user -->|"selects run"| node_cli
node_cli -->|"routes command"| node_arc3
node_cli -->|"routes command"| node_gameworld
node_cli -->|"routes command"| node_aigamestore
node_cli -->|"routes command"| node_babyvision
node_arc3 -->|"plays games"| node_external_env
node_gameworld -->|"runs tasks"| node_external_env
node_aigamestore -->|"loads games"| node_external_env
node_babyvision -->|"loads dataset"| node_external_env
node_cli -.->|"configures profile"| node_profiles
node_profiles -->|"validates tools"| node_contracts
node_binding -->|"uses runtime"| node_runtime_engine
node_binding -->|"builds dispatcher"| node_dispatcher
node_runtime_engine -->|"creates context"| node_task_context
node_runtime_engine -->|"uses contracts"| node_contracts
node_runtime_engine -->|"records evidence"| node_evidence_store
node_dispatcher -->|"dispatches tools"| node_task_context
node_backend_session -->|"runs task"| node_runtime_engine
node_backend_session -->|"uses lifecycle"| node_codex_lifecycle
node_codex_lifecycle -->|"calls runner"| node_codex
node_backend_session -.->|"runs provider"| node_claude
node_claude -->|"uses provider"| node_claude_provider
node_claude -->|"checks quota"| node_claude_quota
node_codex -->|"uses Codex CLI"| node_model_services
node_claude -->|"uses Claude Code"| node_model_services
node_runtime_engine -->|"writes records"| node_artifacts
node_evidence_store -.->|"persists evidence"| node_artifacts

click node_cli "https://github.com/joshhhhhan/vista/blob/main/src/vista/cli.py"
click node_arc3 "https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/arc3"
click node_gameworld "https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/gameworld"
click node_aigamestore "https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/aigamestore"
click node_babyvision "https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/babyvision"
click node_profiles "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/profiles.py"
click node_contracts "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/contracts.py"
click node_runtime_engine "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/runtime.py"
click node_dispatcher "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/dispatcher.py"
click node_task_context "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/support.py"
click node_binding "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/binding.py"
click node_backend_session "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/session.py"
click node_codex "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/codex/runner.py"
click node_codex_lifecycle "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/codex/lifecycle.py"
click node_claude "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/runner.py"
click node_claude_provider "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/provider.py"
click node_claude_quota "https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/quota.py"
click node_evidence_store "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/session.py"
click node_artifacts "https://github.com/joshhhhhan/vista/blob/main/src/vista/core/artifacts.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_arc3,node_gameworld,node_aigamestore,node_babyvision toneBlue
class node_profiles,node_contracts,node_runtime_engine,node_dispatcher,node_task_context toneAmber
class node_binding,node_backend_session,node_codex,node_codex_lifecycle,node_claude,node_claude_provider,node_claude_quota toneMint
class node_evidence_store,node_user toneRose
class node_artifacts,node_external_env,node_model_services toneIndigo
class node_cli toneTeal
```

## Components

### Benchmarks

- [ARC-AGI-3](https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/arc3): `src/vista/benchmarks/arc3`
- [GameWorld](https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/gameworld): `src/vista/benchmarks/gameworld`
- [AI GameStore](https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/aigamestore): `src/vista/benchmarks/aigamestore`
- [BabyVision](https://github.com/joshhhhhan/vista/tree/main/src/vista/benchmarks/babyvision): `src/vista/benchmarks/babyvision`

### Task runtime

- [Profiles](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/profiles.py): `src/vista/core/profiles.py`
- [Tool contracts](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/contracts.py): `src/vista/core/contracts.py`
- [Task runtime](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/runtime.py): `src/vista/core/runtime.py`
- [Tool dispatcher](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/dispatcher.py): `src/vista/core/dispatcher.py`
- [Task context](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/support.py): `src/vista/core/support.py`

### Model backends

- [Backend binding](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/binding.py): `src/vista/backends/binding.py`
- [Backend session](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/session.py): `src/vista/backends/session.py`
- [Codex runner](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/codex/runner.py): `src/vista/backends/codex/runner.py`
- [Codex lifecycle](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/codex/lifecycle.py): `src/vista/backends/codex/lifecycle.py`
- [Claude runner](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/runner.py): `src/vista/backends/claude/runner.py`
- [Claude provider](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/provider.py): `src/vista/backends/claude/provider.py`
- [Claude quota](https://github.com/joshhhhhan/vista/blob/main/src/vista/backends/claude/quota.py): `src/vista/backends/claude/quota.py`

### Visual evidence

- [Visual memory](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/session.py): `src/vista/core/session.py`

### Results

- [Run artifacts](https://github.com/joshhhhhan/vista/blob/main/src/vista/core/artifacts.py): `src/vista/core/artifacts.py`

### Other components

- **Task operator**
- [VISTA CLI](https://github.com/joshhhhhan/vista/blob/main/src/vista/cli.py): `src/vista/cli.py`
- **Benchmark environments**
- **Model CLIs**

## Connections

- Task operator → VISTA CLI: selects run (evidence: `README.md`)
- VISTA CLI → ARC-AGI-3: routes command (evidence: `src/vista/cli.py`)
- VISTA CLI → GameWorld: routes command (evidence: `src/vista/cli.py`)
- VISTA CLI → AI GameStore: routes command (evidence: `src/vista/cli.py`)
- VISTA CLI → BabyVision: routes command (evidence: `src/vista/cli.py`)
- ARC-AGI-3 → Benchmark environments: plays games (evidence: `README.md`)
- GameWorld → Benchmark environments: runs tasks (evidence: `README.md`)
- AI GameStore → Benchmark environments: loads games (evidence: `README.md`)
- BabyVision → Benchmark environments: loads dataset (evidence: `README.md`)
- VISTA CLI → Profiles: configures profile (evidence: `src/vista/cli.py`)
- Profiles → Tool contracts: validates tools (evidence: `src/vista/core/profiles.py`)
- Backend binding → Task runtime: uses runtime (evidence: `src/vista/backends/binding.py`)
- Backend binding → Tool dispatcher: builds dispatcher (evidence: `src/vista/backends/binding.py`)
- Task runtime → Task context: creates context (evidence: `src/vista/core/runtime.py`)
- Task runtime → Tool contracts: uses contracts (evidence: `src/vista/core/runtime.py`)
- Task runtime → Visual memory: records evidence (evidence: `src/vista/core/runtime.py`)
- Tool dispatcher → Task context: dispatches tools (evidence: `src/vista/core/dispatcher.py`)
- Backend session → Task runtime: runs task (evidence: `src/vista/backends/session.py`)
- Backend session → Codex lifecycle: uses lifecycle (evidence: `src/vista/backends/session.py`)
- Codex lifecycle → Codex runner: calls runner (evidence: `src/vista/backends/codex/lifecycle.py`)
- Backend session → Claude runner: runs provider
- Claude runner → Claude provider: uses provider (evidence: `src/vista/backends/claude/runner.py`)
- Claude runner → Claude quota: checks quota (evidence: `src/vista/backends/claude/runner.py`)
- Codex runner → Model CLIs: uses Codex CLI (evidence: `README.md`)
- Claude runner → Model CLIs: uses Claude Code (evidence: `README.md`)
- Task runtime → Run artifacts: writes records (evidence: `src/vista/core/runtime.py`)
- Visual memory → Run artifacts: persists evidence
