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
Merge pull request #1802 from rarepops/fix/install-clients-registry-1798
Martin Vogel4d8ac9e1cea0
diff --cc src/cli/cli.cindex 56af212d1,3d2405610..88d4c7a14--- a/src/cli/cli.c+++ b/src/cli/cli.c@@@ -9511,47 -9375,8 +9523,40 @@@ static void install_additional_agent_coinstall_tiered_profile_prompts("Mistral Vibe", prompt_path, CBM_GRAPH_DIALECT_VIBE,legacy_vibe_verify_prompt_content, dry_run);}+ if (agents->grok) {+ char config_dir[CLI_BUF_1K];+ char cp[CLI_BUF_1K];+ char ip[CLI_BUF_1K];+ char skills_dir[CLI_BUF_1K];+ char ap[CLI_BUF_1K];+ cbm_grok_config_dir(home, config_dir, sizeof(config_dir));+ snprintf(cp, sizeof(cp), "%s/config.toml", config_dir);+ /* Every .md under $GROK_HOME/rules/ is always scanned and applies to+ * every project; an owned file there never touches a user AGENTS.md. */+ snprintf(ip, sizeof(ip), "%s/rules/codebase-memory.md", config_dir);+ snprintf(skills_dir, sizeof(skills_dir), "%s/skills", config_dir);+ snprintf(ap, sizeof(ap), "%s/agents/codebase-memory.md", config_dir);+ install_generic_agent_config("Grok Build", binary_path, cp, ip, dry_run,+ cbm_upsert_grok_mcp);+ install_agent_skill("Grok Build", skills_dir, force, dry_run);+ install_tiered_agent_profiles(+ (cbm_tiered_profile_set_t){+ .label = "Grok Build",+ .verify_path = ap,+ .binary_path = binary_path,+ .dialect = CBM_GRAPH_DIALECT_GROK,+ },+ dry_run);+ /* Grok's passive hook events (SessionStart, SubagentStart, PostToolUse)+ * discard stdout and PreToolUse honors only decision/updatedInput, so+ * the context augmenter would run for nothing: no hook is installed. */+ if (!g_install_plan) {+ printf(" hooks: withheld (Grok passive hook events discard stdout; no context "+ "contract)\n");+ }+ }}- /* #1558: set by `install --clients=...` after validation, consumed at the one- * place detection happens. Validation runs in cbm_cmd_install so an unknown- * token fails before anything is written, not midway through configuring. */- static const char *g_client_selection = NULL;- static bool cli_clients_apply_selection(const char *spec, cbm_detected_agents_t *detected);- static void cli_clients_print_list(FILE *out);-int cbm_install_agent_configs(const char *home, const char *binary_path, bool force, bool dry_run) {g_agent_install_errors = 0;cbm_detected_agents_t agents = cbm_detect_agents(home);