Skip to main content

Architecture

This is the centerpiece. The diagram below is the whole system — and every component is clickable. Click a node to drill into its deep-dive page; each of those pages has its own diagram that drills further, down to the source on GitHub.

System overview (click any node)​

Underlined nodes are clickable; dashed boxes are groupings. (Adapted from website/docs/reference/diagrams/architecture.md.)

Component map​

ComponentWhat it doesDeep dive
OrchestratorFastAPI control plane: lifecycle, state, forwardingOrchestrator →
Image Builder / KanikoCompose images from plugins, build in-clusterImage builder →
Server PodSandboxed FastAPI environment + MCP gatewayServer →
ClientsPython client library + MCP access for agentsClient →
PluginsImage / server / client extension pointsPlugins →
WatcherCleanup / reconcile loopWatcher →
Rewards & ToolsWhat agents do & how they're scoredRewards & tools →
PostgreSQLClients, servers, jobs, snapshotsOrchestrator →
Registry & ObservabilityImage storage, metrics & tracesDeployment →

The key flows​

  1. Build image — orchestrator compiles an Image (plugins) → build spec → Kaniko job → image pushed to the registry.
  2. Provision — orchestrator creates a Kubernetes Deployment; the pod pulls the image and boots Supervisor → FastAPI server (and any in-pod IDE).
  3. Use — client/agent requests are forwarded by the orchestrator into the server pod's HTTP / MCP endpoints; tools execute inside the sandbox.
  4. Clean up — the watcher reconciles database state with the cluster and tears down stale resources.

New to IdeGYM? Read the core concepts first, then the end-to-end data flow.