Skip to content

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.

Merge branch 'main' into feat/codex-skill-location-compat

Martin Vogelfd2456316e7b
diff --cc tests/test_cli.c
index 3a48ebe2e,4ec96be53..af45ec735
--- a/tests/test_cli.c
+++ b/tests/test_cli.c
@@@ -9380,21 -9382,12 +9380,21 @@@ TEST(cli_codex_respects_codex_home)
char *json = cbm_build_install_plan_json(tmpdir, "/usr/local/bin/codebase-memory-mcp");
char expected_config[640];
snprintf(expected_config, sizeof(expected_config), "%s/config.toml", codex_home);
+ char expected_skill[640];
+ char legacy_skill[640];
+ snprintf(expected_skill, sizeof(expected_skill), "%s/.agents/skills/codebase-memory/SKILL.md",
+ tmpdir);
+ snprintf(legacy_skill, sizeof(legacy_skill), "%s/skills/codebase-memory/SKILL.md", codex_home);
yyjson_doc *plan_doc = json ? yyjson_read(json, strlen(json), 0) : NULL;
yyjson_val *plan_root = plan_doc ? yyjson_doc_get_root(plan_doc) : NULL;
- bool plans_config = test_json_string_array_contains(plan_root, "config_files_planned",
- expected_config);
+ bool plans_config =
+ test_json_string_array_contains(plan_root, "config_files_planned", expected_config);
bool plans_instructions = test_json_string_array_contains(
plan_root, "instruction_files_planned", expected_instructions);
+ bool plans_canonical_skill =
+ test_json_string_array_contains(plan_root, "skill_files_planned", expected_skill);
+ bool plans_legacy_skill =
+ test_json_string_array_contains(plan_root, "skill_files_planned", legacy_skill);
bool plans_cleanup = json && strstr(json, "remove_managed_block_if_present") != NULL;
char *instructions_after = read_test_file_alloc(expected_instructions);
bool plan_preserved_user_file =