Skip to main content

Technical overview

The engineering view of each component — what it does, what stack it runs, and where the seams are. For the one-screen visual, see Architecture. For repository/library breakdown, see Repositories.

Components

ComponentTechRole
nexus-coreRust, axum, tokio, MongoDBOrchestration API + the only authority over state.
nexus-workerRust, tokio, async-nats, MongoDBScheduling, dispatch, retries, Plane sync, reconciliation.
nexus-agent-runnerRust, reqwest, ductGeneric runtime: one image becomes any agent from a config payload.
nexus-telegramRust, teloxideHigh-level command gateway.
nexus-uiNext.js 16, React 19, Tailwind v4, TanStackAdmin dashboard (separate repo).
cratesRustShared libraries with the trait seams.

What ties them together

nexus-ui (Next.js)
│ REST (via /api/nexus proxy)

nexus-core (axum)
┌───────────────┼───────────────┐
│ MongoDB │ NATS │ Kubernetes
▼ ▼ ▼
state (truth) events (durable) agent Jobs
▲ ▲ │
│ └───────────────┘ events back
│ from runner pods
nexus-worker ◀── consumes events, schedules, syncs to Plane

Nexus Core is the only component that writes the source of truth. The worker reacts to events and reconciles. The runner is stateless and ephemeral.

Reading order

Public vs internal documentation

Nexus publishes two views of these docs. The internal build adds implementation-detail pages (sprint plans, attack-surface analysis, runbooks with credential paths) under docs/_internal/**. Public docs reference them by name but do not link to them.