How oc8-ai/oc8 works
oc8 is a self-hosted business-agent orchestration platform. Members configure agents with models, knowledge, tools, and autonomy boundaries; runs start from schedules, events, or chat, execute through governed tool calls, and pause for human approval when required. Results and actions are auditable and surfaced live. The graph emphasizes that run-and-govern workflow while retaining knowledge ingestion, agent/runtime isolation, extensible integrations, collaboration flows, and realtime visibility. Edges cite README statements or shown source references; unsampled subsystem wiring is omitted or marked unverified.
Main entry points: engine.py Agent loop · runtime Run lifecycle · router.tsx Web interface · manager.py Live updates
Components 23
Product entry
- Web interface
frontend/src/router.tsx - Control API
backend/src/oc8/main.py - Agent setup
backend/src/oc8/agents - Run triggers
backend/src/oc8/triggers
Agent execution
- Run lifecycle
backend/src/oc8/runtime - Agent loop
backend/src/oc8/agent/engine.py - Control tools
backend/src/oc8/agent/control_tools.py - MCP client
backend/src/oc8/agent/mcp_client.py - MCP gateway
backend/src/oc8/api/mcp_gateway.py - Model routing
backend/src/oc8/modelrouter/router.py - Department flows
backend/src/oc8/collab/flow_engine.py
Governance
- Safety harness
backend/src/oc8/agent/harness/pipeline.py - Human approvals
backend/src/oc8/approvals/service.py - Audit trail
backend/src/oc8/audit/chain.py
Knowledge and integrations
- Knowledge ingestion
backend/src/oc8/knowledge/ingest.py - Knowledge retrieval
backend/src/oc8/knowledge/retrieval.py - Capa integrations
backend/src/oc8/knowledge/connectors/base.py
Platform services
- Live updates
backend/src/oc8/realtime/manager.py - Tenant data
backend/src/oc8/models/knowledge.py - Isolated runtime
backend/src/oc8/sandbox/reaper.py
Other components
- Member
- Business systems
- Approver
Connections 24
- Member → Web interface: configures
README.md - Web interface → Control API: uses REST/WS
README.md - Control API → Agent setup: manages agents
- Member → Run triggers: starts runs
README.md - Run triggers → Run lifecycle: dispatches
- Run lifecycle → Agent loop: executes
- Agent loop → Model routing: requests completion
backend/src/oc8/agent/engine.py - Agent loop → Safety harness: applies checks
backend/src/oc8/agent/engine.py - Agent loop → Control tools: offers tools
backend/src/oc8/agent/engine.py - Agent loop → MCP client: opens sessions
backend/src/oc8/agent/engine.py - MCP client → MCP gateway: calls gateway
- MCP gateway → Business systems: dispatches tools
README.md - Safety harness → Human approvals: requests approval
- Approver → Human approvals: reviews
README.md - Agent loop → Audit trail: audits actions
backend/src/oc8/agent/engine.py - Knowledge ingestion → Capa integrations: syncs sources
backend/src/oc8/knowledge/ingest.py - Knowledge ingestion → Tenant data: stores chunks
backend/src/oc8/knowledge/ingest.py - Agent loop → Knowledge retrieval: retrieves context
backend/src/oc8/agent/engine.py - Knowledge retrieval → Tenant data: reads knowledge
- Department flows → Run lifecycle: hands off work
backend/src/oc8/collab/flow_engine.py - Department flows → Live updates: publishes events
backend/src/oc8/collab/flow_engine.py - Run lifecycle → Isolated runtime: runs isolated
- Run lifecycle → Live updates: streams status
- Live updates → Web interface: delivers updates
README.md