How thefullgc/opensuperagent works
OpenSuperAgent is a self-hosted, message-driven agent system: users configure model providers and Router/Worker models, submit requests through the console or connected channels, and follow task progress and results. The runtime accepts and routes incoming work, manages persistent sessions, and coordinates workers and operations; delivery sends outbound updates. The web console exposes task, connection, skills, system, and Router views. Edges are limited to relationships visible in excerpts or the SOURCE INDEX; unshown internal routing details are omitted.
Main entry points: app.ts Application Runtime · manager.ts Session Manager · index.ts Domain Store · loop.ts Worker Loop
Components 22
Console and API
- Web Console
web/src/App.tsx - Web API Client
web/src/api.ts - HTTP API
src/api/server.ts
Request Runtime
- Message Ingress
src/ingress/index.ts - Application Runtime
src/app.ts
Agent Execution
- Request Router
src/router/loop.ts - Worker Loop
src/worker/loop.ts - Session Manager
src/session/manager.ts - Agent Runtime
src/session/pizza-agent.ts - Operation Runner
src/execution/runner.ts - Task Supervisor
src/supervisor/index.ts - Runtime Watchdog
src/watchdog/index.ts - Worker Definitions
src/worker/definition.ts - Skill Catalog
src/catalog/import.ts
State and Delivery
- Runtime Settings
src/settings/store.ts - Domain Store
src/storage/index.ts - SQLite State
src/storage/db.ts - Event Bus
src/events/bus.ts
Channels and Models
- Model Client
src/llm/client.ts - Channel Adapters
src/channels/adapters/index.ts - Delivery Service
src/delivery/index.ts
Other components
- Operator
Connections 31
- Operator → Web Console: submits requests
README.md - Web Console → Web API Client: calls API
web/src/App.tsx - Web API Client → HTTP API: sends HTTP requests
web/src/api.ts - HTTP API → Application Runtime: uses runtime
src/api/server.ts - Application Runtime → Message Ingress: initializes
src/app.ts - Application Runtime → Domain Store: opens state
src/app.ts - Application Runtime → Delivery Service: constructs
src/app.ts - Application Runtime → Channel Adapters: configures adapters
src/app.ts - Application Runtime → Session Manager: coordinates
src/app.ts - Application Runtime → Request Router: uses router
src/app.ts - Application Runtime → Worker Loop: starts worker loop
src/app.ts - Application Runtime → Task Supervisor: starts supervisor
src/app.ts - Application Runtime → Runtime Watchdog: starts watchdog
src/app.ts - Application Runtime → Event Bus: emits events
src/app.ts - Session Manager → Domain Store: reads and writes
src/session/manager.ts - Session Manager → Agent Runtime: creates facade
- Worker Loop → Session Manager: uses sessions
src/worker/loop.ts - Worker Loop → Domain Store: reads and writes
src/worker/loop.ts - Operation Runner → Domain Store: records operations
src/execution/runner.ts - Task Supervisor → Session Manager: coordinates sessions
src/supervisor/index.ts - Runtime Watchdog → Session Manager: checks sessions
src/watchdog/index.ts - Runtime Watchdog → Event Bus: uses event bus
src/watchdog/index.ts - Domain Store → SQLite State: opens database
src/storage/index.ts - Delivery Service → Domain Store: queues and updates
src/delivery/index.ts - Channel Adapters → Runtime Settings: reads adapter config
- HTTP API → Runtime Settings: uses settings
src/api/server.ts - Request Router → Model Client: requests model decisions
- Worker Loop → Model Client: runs agent turns
- Operator → Channel Adapters: sends messages
README.md - Worker Loop → Worker Definitions: uses definitions
- Request Router → Skill Catalog: accesses skills