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

Function cbm_remove_claude_subagent_hooks

src/cli/cli.c:2240–2246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2238}
2239
2240int cbm_remove_claude_subagent_hooks(const char *settings_path) {
2241 return remove_hooks_json(
2242 (hooks_remove_args_t){.settings_path = settings_path,
2243 .hook_event = "SubagentStart",
2244 .matcher_str = "*",
2245 .match_command_substr = CMM_SUBAGENT_REMINDER_SCRIPT});
2246}
2247
2248/* Matcher excludes read_file for consistency with the Claude fix: the hook
2249 * is an advisory reminder, not a gate over the agent's file reads. */

Callers 2

uninstall_claude_codeFunction · 0.85
test_cli.cFile · 0.85

Calls 1

remove_hooks_jsonFunction · 0.85

Tested by

no test coverage detected