MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / uninstall_kimi_durable_context

Function uninstall_kimi_durable_context

src/cli/cli.c:11968–11988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11966}
11967
11968static void uninstall_kimi_durable_context(const cbm_agent_registry_context_t *registry,
11969 bool dry_run) {
11970 const char *kimi_home = registry->options.kimi_code_home;
11971 char default_home[CLI_BUF_1K];
11972 if (!kimi_home || !kimi_home[0]) {
11973 snprintf(default_home, sizeof(default_home), "%s/.kimi-code", registry->options.home_dir);
11974 kimi_home = default_home;
11975 }
11976 char instructions_path[CLI_BUF_1K];
11977 char skills_dir[CLI_BUF_1K];
11978 char config_path[CLI_BUF_1K];
11979 snprintf(instructions_path, sizeof(instructions_path), "%s/AGENTS.md", kimi_home);
11980 snprintf(skills_dir, sizeof(skills_dir), "%s/skills", kimi_home);
11981 snprintf(config_path, sizeof(config_path), "%s/config.toml", kimi_home);
11982 if (!dry_run && cbm_remove_kimi_context_hook(config_path) != CLI_OK) {
11983 record_agent_config_error(true, "Kimi Code CLI", "prompt_hook_uninstall", config_path);
11984 }
11985 printf(" hook: removed managed UserPromptSubmit entry\n");
11986 uninstall_managed_agent_instructions("Kimi Code CLI", instructions_path, dry_run);
11987 uninstall_agent_skill("Kimi Code CLI", skills_dir, dry_run);
11988}
11989
11990static void uninstall_rovo_durable_context(const char *home, bool dry_run) {
11991 char instructions_path[CLI_BUF_1K];

Callers 1

Tested by

no test coverage detected