# omnigent-ai/omnigent architecture

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

- Interactive diagram: https://gitdiagram.com/omnigent-ai/omnigent
- Repository: https://github.com/omnigent-ai/omnigent

## Overview

Omnigent is a multi-agent orchestration product: a user starts or joins a session through its CLI or web experience, the server coordinates a runner and selected harness, and agents act through models, tools, and optional sandboxes. Sessions can be governed by policies and shared across devices. The graph combines documented capabilities with sampled entry points; several subsystem links are documented at product level rather than verified call-by-call in the excerpts, so uncertain wiring is omitted.

Main entry points: [`omnigent/runner/app.py`](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runner/app.py) (Runner workflow), [`omnigent/server/app.py`](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/app.py) (HTTP server), [`web/src`](https://github.com/omnigent-ai/omnigent/tree/main/web/src) (Web interface), [`omnigent/server/routes/sessions/routes_core.py`](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/routes/sessions/routes_core.py) (Session routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_cli["CLI<br/>[cli.py]"]
  node_web["Web interface"]
end

subgraph group_coordination["Session coordination"]
  node_server["HTTP server<br/>[app.py]"]
  node_session_routes["Session routes<br/>[routes_core.py]"]
  node_runner["Runner workflow<br/>[app.py]"]
  node_harness_manager["Harness lifecycle<br/>[process_manager.py]"]
end

subgraph group_execution["Agent execution"]
  node_harnesses["Agent harnesses"]
  node_llm["Model routing<br/>[routing.py]"]
  node_tools["Tool dispatch<br/>[manager.py]"]
  node_mcp["MCP services<br/>[mcp_manager.py]"]
end

subgraph group_governance["Governance and integrations"]
  node_policies["Policy engine<br/>[engine.py]"]
  node_sandbox["Sandbox providers"]
  node_browser_relay["Browser relay"]
  node_slack["Slack integration<br/>[app.py]"]
end

subgraph group_state["Persistence"]
  node_conversation_store[("Conversation store")]
  node_extension_storage[("Extension storage<br/>[storage.ts]")]
end

node_user(("User"))
node_model_services{{"Model providers"}}
node_sandbox_services{{"Sandbox services"}}
node_slack_service{{"Slack"}}

node_user -->|"starts session"| node_cli
node_user -->|"uses interface"| node_web
node_cli -->|"requests"| node_server
node_web -->|"requests"| node_server
node_server -->|"routes sessions"| node_session_routes
node_session_routes -->|"reads and writes"| node_conversation_store
node_session_routes -->|"launches runner"| node_runner
node_runner -->|"manages process"| node_harness_manager
node_harness_manager -->|"starts harness"| node_harnesses
node_runner -->|"routes inference"| node_llm
node_llm -->|"sends requests"| node_model_services
node_runner -->|"dispatches tools"| node_tools
node_runner -->|"uses MCP tools"| node_mcp
node_runner -->|"evaluates policies"| node_policies
node_runner -.->|"runs in sandbox"| node_sandbox
node_sandbox -.->|"provisions runtime"| node_sandbox_services
node_web -->|"handles browser actions"| node_browser_relay
node_browser_relay -->|"claims and reports"| node_server
node_web -->|"stores extension data"| node_extension_storage
node_slack -.->|"connects sessions"| node_server
node_slack -.->|"receives events"| node_slack_service

click node_cli "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/cli.py"
click node_web "https://github.com/omnigent-ai/omnigent/tree/main/web/src"
click node_server "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/app.py"
click node_session_routes "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/routes/sessions/routes_core.py"
click node_runner "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runner/app.py"
click node_harness_manager "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runtime/harnesses/process_manager.py"
click node_harnesses "https://github.com/omnigent-ai/omnigent/tree/main/omnigent/inner"
click node_llm "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/llms/routing.py"
click node_tools "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/tools/manager.py"
click node_mcp "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runner/mcp_manager.py"
click node_policies "https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runtime/policies/engine.py"
click node_sandbox "https://github.com/omnigent-ai/omnigent/tree/main/omnigent/onboarding/sandboxes"
click node_browser_relay "https://github.com/omnigent-ai/omnigent/blob/main/web/src/hooks/useBrowserAgentRelay.ts"
click node_slack "https://github.com/omnigent-ai/omnigent/blob/main/integrations/slack/src/omnigent_slack/app.py"
click node_conversation_store "https://github.com/omnigent-ai/omnigent/tree/main/omnigent/db"
click node_extension_storage "https://github.com/omnigent-ai/omnigent/blob/main/web/src/extensions/services/storage.ts"

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_web,node_user toneBlue
class node_server,node_session_routes,node_runner,node_harness_manager toneAmber
class node_harnesses,node_llm,node_tools,node_mcp toneMint
class node_policies,node_sandbox,node_browser_relay,node_slack toneRose
class node_conversation_store,node_extension_storage,node_model_services,node_sandbox_services,node_slack_service toneIndigo
```

## Components

### User interfaces

- [CLI](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/cli.py): `omnigent/cli.py`
- [Web interface](https://github.com/omnigent-ai/omnigent/tree/main/web/src): `web/src`

### Session coordination

- [HTTP server](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/app.py): `omnigent/server/app.py`
- [Session routes](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/server/routes/sessions/routes_core.py): `omnigent/server/routes/sessions/routes_core.py`
- [Runner workflow](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runner/app.py): `omnigent/runner/app.py`
- [Harness lifecycle](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runtime/harnesses/process_manager.py): `omnigent/runtime/harnesses/process_manager.py`

### Agent execution

- [Agent harnesses](https://github.com/omnigent-ai/omnigent/tree/main/omnigent/inner): `omnigent/inner`
- [Model routing](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/llms/routing.py): `omnigent/llms/routing.py`
- [Tool dispatch](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/tools/manager.py): `omnigent/tools/manager.py`
- [MCP services](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runner/mcp_manager.py): `omnigent/runner/mcp_manager.py`

### Governance and integrations

- [Policy engine](https://github.com/omnigent-ai/omnigent/blob/main/omnigent/runtime/policies/engine.py): `omnigent/runtime/policies/engine.py`
- [Sandbox providers](https://github.com/omnigent-ai/omnigent/tree/main/omnigent/onboarding/sandboxes): `omnigent/onboarding/sandboxes`
- [Browser relay](https://github.com/omnigent-ai/omnigent/blob/main/web/src/hooks/useBrowserAgentRelay.ts): `web/src/hooks/useBrowserAgentRelay.ts`
- [Slack integration](https://github.com/omnigent-ai/omnigent/blob/main/integrations/slack/src/omnigent_slack/app.py): `integrations/slack/src/omnigent_slack/app.py`

### Persistence

- [Conversation store](https://github.com/omnigent-ai/omnigent/tree/main/omnigent/db): `omnigent/db`
- [Extension storage](https://github.com/omnigent-ai/omnigent/blob/main/web/src/extensions/services/storage.ts): `web/src/extensions/services/storage.ts`

### Other components

- **User**
- **Model providers**
- **Sandbox services**
- **Slack**

## Connections

- User → CLI: starts session
- User → Web interface: uses interface
- CLI → HTTP server: requests
- Web interface → HTTP server: requests
- HTTP server → Session routes: routes sessions
- Session routes → Conversation store: reads and writes
- Session routes → Runner workflow: launches runner
- Runner workflow → Harness lifecycle: manages process
- Harness lifecycle → Agent harnesses: starts harness
- Runner workflow → Model routing: routes inference
- Model routing → Model providers: sends requests
- Runner workflow → Tool dispatch: dispatches tools
- Runner workflow → MCP services: uses MCP tools
- Runner workflow → Policy engine: evaluates policies
- Runner workflow → Sandbox providers: runs in sandbox
- Sandbox providers → Sandbox services: provisions runtime
- Web interface → Browser relay: handles browser actions
- Browser relay → HTTP server: claims and reports
- Web interface → Extension storage: stores extension data
- Slack integration → HTTP server: connects sessions
- Slack integration → Slack: receives events
