Documentation
¶
Overview ¶
CogOS kernel — continuous process daemon for AI agents.
Usage:
cogos serve [--workspace PATH] [--port PORT] cogos start [--workspace PATH] [--port PORT] cogos stop [--workspace PATH] cogos status [--workspace PATH] cogos health [--workspace PATH] cogos version
providers_wire.go — wires Reconcilable provider registration, workspace context, and MCP tool extensions into the kernel daemon at boot.
A named import of internal/providers/daemon triggers that package's init(), which registers all 9 production providers ("agent", "component", "discord", "eval", "mcp-tools", "openclaw-agents", "openclaw-cron", "openclaw-gateway", "service") with pkg/reconcile before engine.Main() starts the HTTP server.
engine.RegisterProviders is set here so the registration call happens inside runServe() (after the logger is up) rather than in a file-level init() that might fire before tracing/logging infrastructure is ready.
engine.SetProvidersWorkspace is set here so that after LoadConfig resolves cfg.WorkspaceRoot, the daemon-side providers receive the workspace path and can perform real filesystem Health() checks rather than reporting "workspace not yet configured".
engine.RegisterMCPExtensions wires the four eval MCP tools (cog_run_experiment, cog_list_experiments, cog_get_experiment_status, cog_pin_baseline) onto the kernel's MCP server so they are accessible from both the cog CLI binary and the daemon.