How nimbus-agent/nimbus works
Nimbus is a local-first on-call intelligence and DevOps agent. The principal workflow starts with an engineer querying through the CLI, passes through the local Gateway to indexed cross-tool context and domain agents, then returns an answer; any outbound or destructive action is consent-gated. Other documented capabilities include connector synchronization, incident assembly, scheduled workflows and watchers, MCP access, and desktop/admin interfaces. Some subsystem paths and connections are based on README statements rather than sampled implementation, so those links cite the README.
Main entry points: src Gateway · with-gateway-ipc.ts Gateway IPC · index Local index · index.ts Nimbus CLI
Components 20
User interfaces
- Nimbus CLI
packages/cli/src/index.ts - Terminal UI
packages/cli/src/tui/App.tsx - Desktop UI
packages/ui/src/App.tsx - Admin console
packages/admin-console/src/main.ts
Gateway runtime
- Gateway IPC
packages/cli/src/lib/with-gateway-ipc.ts - Gateway
packages/gateway/src
Indexed context
- Local index
packages/gateway/src/index - Tool connectors
packages/gateway/src/connectors - Embedding pipeline
packages/gateway/src/embedding/pipeline.ts - Index query
packages/cli/src/commands/query.ts
Agents and automation
- Domain agents
packages/gateway/src/agents - Incident engine
packages/gateway/src/incident/incident-engine.ts - Workflow automation
packages/gateway/src/automation - Watchers
packages/gateway/src/automation/watcher-engine.ts
Consent and integrations
- Approval gate
packages/gateway/src - Audit ledger
packages/gateway/src/audit - MCP surfaces
packages/cli/src/mcp
Other components
- Engineer
- Connected services
- Remote model
Connections 25
- Engineer → Nimbus CLI: queries
- Nimbus CLI → Gateway IPC: calls
- Gateway IPC → Gateway: requests
packages/cli/src/lib/with-gateway-ipc.ts - Gateway → Local index: maintains
packages/gateway/src/automation/watcher-engine.ts - Tool connectors → Connected services: syncs from
- Gateway → Tool connectors: drives
packages/gateway/src/connectors/_lib/gitlab/pipelines.ts - Nimbus CLI → Index query: dispatches
packages/cli/src/commands/query.ts - Index query → Gateway IPC: requests rows
packages/cli/src/commands/query.ts - Domain agents → Local index: uses context
- Gateway → Domain agents: hosts
- Gateway → Incident engine: runs
packages/gateway/src/incident/__fixtures__/test-engine.ts - Incident engine → Local index: assembles incidents
packages/gateway/src/incident/incident-engine.ts - Gateway → Workflow automation: executes plans
packages/gateway/src/automation/watcher-engine.ts - Workflow automation → Approval gate: requests approval
packages/gateway/src/automation/watcher-engine.ts - Gateway → Watchers: evaluates
packages/gateway/src/automation/watcher-engine.ts - Watchers → Local index: reads items
packages/gateway/src/automation/watcher-engine.ts - Gateway → Embedding pipeline: builds vectors
packages/gateway/src/embedding/pipeline.ts - Embedding pipeline → Local index: writes vectors
packages/gateway/src/embedding/pipeline.ts - Approval gate → Audit ledger: records actions
- Gateway → MCP surfaces: exposes tools
- MCP surfaces → Engineer: serves agents
- Desktop UI → Gateway IPC: queries gateway
- Terminal UI → Gateway IPC: uses IPC
- Admin console → Gateway: loads status
- Domain agents → Remote model: may invoke