Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
/*
* host.h — Lifecycle owner for the mandatory per-account CBM daemon.
*/
#ifndef CBM_DAEMON_HOST_H
#define CBM_DAEMON_HOST_H
#include "daemon/ipc.h"
#include "daemon/service.h"
#include <stdatomic.h>
typedef struct {
const cbm_daemon_ipc_endpoint_t *endpoint;
cbm_daemon_build_identity_t identity;
const char *executable_path;
atomic_int *stop_requested;
/* Born via `daemon start`: the generation survives its last client
* disconnect and the no-client initial window; it stops only through the
* stop/drain ops or an explicit process kill. */
bool permanent;
} cbm_daemon_host_config_t;
/* Blocks for the complete daemon generation. The first admitted frontend owns
* startup; the final disconnect triggers terminal shutdown of operations,
* watcher, UI, and runtime in that order. */
int cbm_daemon_host_run(const cbm_daemon_host_config_t *config);
#endif /* CBM_DAEMON_HOST_H */