# f8fvwgzc/texc-symphony architecture

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

- Interactive diagram: https://gitdiagram.com/f8fvwgzc/texc-symphony
- Repository: https://github.com/f8fvwgzc/texc-symphony

## Overview

Symphony is a long-running service that turns active tracker issues into isolated Codex implementation runs. Its principal flow is workflow configuration and tracker polling, through issue dispatch, workspace preparation and agent execution, with results and run history exposed through HTTP/SSE and the web and terminal dashboards. The README documents the major capabilities and crate boundaries; source excerpts clarify bootstrap, worker, Codex-session and server routing. Several runtime connections are therefore documented rather than verified from sampled call sites.

Main entry points: [`crates/symphony/src/app.rs`](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony/src/app.rs) (Service bootstrap), [`crates/symphony-runtime/src/runner.rs`](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/runner.rs) (Agent runner), [`crates/symphony-runtime/src/orchestrator/mod.rs`](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/orchestrator/mod.rs) (Issue orchestration), [`crates/symphony-server/src/app.rs`](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-server/src/app.rs) (API & SSE routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Configuration &amp; bootstrap"]
  node_workflow["Workflow file"]
  node_binary["Service bootstrap<br/>[app.rs]"]
  node_settings["Workflow settings<br/>[schema.rs]"]
  node_workflow_loader["Workflow loading<br/>[workflow_store.rs]"]
end

subgraph group_work["Issue execution"]
  node_scheduler["Issue orchestration<br/>[mod.rs]"]
  node_worker["Worker boundary<br/>[worker.rs]"]
  node_workspace["Workspace &amp; hooks<br/>[workspace.rs]"]
  node_runner["Agent runner<br/>[runner.rs]"]
end

subgraph group_integrations["External integrations"]
  node_tracker_adapters["Tracker adapters<br/>[linear.rs]"]
  node_tracker_service{{"Issue tracker"}}
  node_codex_session["Codex session<br/>[session.rs]"]
  node_codex_process{{"Codex app-server"}}
  node_tracker_tools["Agent tracker tools<br/>[tool.rs]"]
end

subgraph group_history["Run history"]
  node_store[("Run history store<br/>[store.rs]")]
end

subgraph group_observe["Monitoring"]
  node_http_server["HTTP server<br/>[server.rs]"]
  node_api_routes["API &amp; SSE routes<br/>[app.rs]"]
  node_web_app["Web dashboard<br/>[App.tsx]"]
  node_api_client["Dashboard API client<br/>[client.ts]"]
  node_terminal_dashboard["Terminal dashboard<br/>[mod.rs]"]
end

node_operator(("Operator"))

node_operator -->|"configures"| node_workflow
node_operator -->|"starts"| node_binary
node_workflow -->|"loads"| node_workflow_loader
node_workflow_loader -->|"validates"| node_settings
node_binary -->|"starts"| node_workflow_loader
node_settings -->|"selects"| node_tracker_adapters
node_tracker_adapters -->|"polls"| node_tracker_service
node_scheduler -->|"fetches issues"| node_tracker_adapters
node_scheduler -->|"dispatches"| node_worker
node_worker -->|"starts"| node_runner
node_runner -->|"prepares"| node_workspace
node_runner -->|"runs turns"| node_codex_session
node_codex_session -->|"communicates"| node_codex_process
node_runner -->|"provides tools"| node_tracker_tools
node_tracker_tools -->|"uses credentials"| node_tracker_service
node_binary -.->|"runs"| node_scheduler
node_binary -->|"opens"| node_store
node_scheduler -.->|"records runs"| node_store
node_binary -->|"starts"| node_http_server
node_http_server -->|"serves"| node_api_routes
node_api_routes -->|"reads history"| node_store
node_web_app -->|"requests data"| node_api_client
node_api_client -->|"calls"| node_api_routes
node_api_routes -->|"streams updates"| node_web_app
node_binary -->|"enables"| node_terminal_dashboard

click node_binary "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony/src/app.rs"
click node_settings "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-core/src/config/schema.rs"
click node_workflow_loader "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-core/src/workflow_store.rs"
click node_tracker_adapters "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-trackers/src/linear.rs"
click node_scheduler "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/orchestrator/mod.rs"
click node_worker "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/worker.rs"
click node_workspace "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/workspace.rs"
click node_runner "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/runner.rs"
click node_codex_session "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-codex/src/session.rs"
click node_tracker_tools "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-trackers/src/tool.rs"
click node_store "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-store/src/store.rs"
click node_http_server "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-server/src/server.rs"
click node_api_routes "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-server/src/app.rs"
click node_web_app "https://github.com/f8fvwgzc/texc-symphony/blob/main/web/src/App.tsx"
click node_api_client "https://github.com/f8fvwgzc/texc-symphony/blob/main/web/src/api/client.ts"
click node_terminal_dashboard "https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony/src/dashboard/mod.rs"

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_workflow,node_binary,node_settings,node_workflow_loader toneBlue
class node_scheduler,node_worker,node_workspace,node_runner toneAmber
class node_tracker_adapters,node_tracker_service,node_codex_session,node_codex_process,node_tracker_tools toneMint
class node_store toneRose
class node_http_server,node_api_routes,node_web_app,node_api_client,node_terminal_dashboard,node_operator toneIndigo
```

## Components

### Configuration & bootstrap

- **Workflow file**
- [Service bootstrap](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony/src/app.rs): `crates/symphony/src/app.rs`
- [Workflow settings](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-core/src/config/schema.rs): `crates/symphony-core/src/config/schema.rs`
- [Workflow loading](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-core/src/workflow_store.rs): `crates/symphony-core/src/workflow_store.rs`

### Issue execution

- [Issue orchestration](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/orchestrator/mod.rs): `crates/symphony-runtime/src/orchestrator/mod.rs`
- [Worker boundary](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/worker.rs): `crates/symphony-runtime/src/worker.rs`
- [Workspace & hooks](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/workspace.rs): `crates/symphony-runtime/src/workspace.rs`
- [Agent runner](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-runtime/src/runner.rs): `crates/symphony-runtime/src/runner.rs`

### External integrations

- [Tracker adapters](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-trackers/src/linear.rs): `crates/symphony-trackers/src/linear.rs`
- **Issue tracker**
- [Codex session](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-codex/src/session.rs): `crates/symphony-codex/src/session.rs`
- **Codex app-server**
- [Agent tracker tools](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-trackers/src/tool.rs): `crates/symphony-trackers/src/tool.rs`

### Run history

- [Run history store](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-store/src/store.rs): `crates/symphony-store/src/store.rs`

### Monitoring

- [HTTP server](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-server/src/server.rs): `crates/symphony-server/src/server.rs`
- [API & SSE routes](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony-server/src/app.rs): `crates/symphony-server/src/app.rs`
- [Web dashboard](https://github.com/f8fvwgzc/texc-symphony/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [Dashboard API client](https://github.com/f8fvwgzc/texc-symphony/blob/main/web/src/api/client.ts): `web/src/api/client.ts`
- [Terminal dashboard](https://github.com/f8fvwgzc/texc-symphony/blob/main/crates/symphony/src/dashboard/mod.rs): `crates/symphony/src/dashboard/mod.rs`

### Other components

- **Operator**

## Connections

- Operator → Workflow file: configures (evidence: `README.md`)
- Operator → Service bootstrap: starts (evidence: `README.md`)
- Workflow file → Workflow loading: loads (evidence: `README.md`)
- Workflow loading → Workflow settings: validates
- Service bootstrap → Workflow loading: starts (evidence: `README.md`)
- Workflow settings → Tracker adapters: selects (evidence: `README.md`)
- Tracker adapters → Issue tracker: polls (evidence: `README.md`)
- Issue orchestration → Tracker adapters: fetches issues
- Issue orchestration → Worker boundary: dispatches (evidence: `crates/symphony-runtime/src/worker.rs`)
- Worker boundary → Agent runner: starts (evidence: `crates/symphony-runtime/src/worker.rs`)
- Agent runner → Workspace & hooks: prepares (evidence: `README.md`)
- Agent runner → Codex session: runs turns (evidence: `crates/symphony-codex/src/session.rs`)
- Codex session → Codex app-server: communicates (evidence: `README.md`)
- Agent runner → Agent tracker tools: provides tools (evidence: `README.md`)
- Agent tracker tools → Issue tracker: uses credentials (evidence: `README.md`)
- Service bootstrap → Issue orchestration: runs
- Service bootstrap → Run history store: opens (evidence: `crates/symphony/src/app.rs`)
- Issue orchestration → Run history store: records runs
- Service bootstrap → HTTP server: starts (evidence: `README.md`)
- HTTP server → API & SSE routes: serves (evidence: `crates/symphony-server/src/server.rs`)
- API & SSE routes → Run history store: reads history (evidence: `README.md`)
- Web dashboard → Dashboard API client: requests data (evidence: `web/src/App.tsx`)
- Dashboard API client → API & SSE routes: calls (evidence: `README.md`)
- API & SSE routes → Web dashboard: streams updates (evidence: `README.md`)
- Service bootstrap → Terminal dashboard: enables (evidence: `README.md`)
