| 2238 | } |
| 2239 | |
| 2240 | int 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. */ |
no test coverage detected