Repository navigation
0.5.0
What's new
ConfigChangeguard: a new hook that refuses a settings change which would switch damage control off or redirect it (disableAllHooks, anenvthat moves the hooks' policy, or our own registration removed or rewritten). Managed-policy changes are audited as observed.- Settings writes, at the tool call: a
WriteorEditthat setsdisableAllHooksor drops the registration is blocked; other changes to thehookskey, and shell writes to project or local settings, ask. - Nested
clauderuns: command lines that startclaudewithout hooks (--safe-mode,--bare,--settingscarryingdisableAllHooks,--setting-sourceswithout the user scope) are blocked; ones that only redirect config ask (--plugin-dir,--settings <file>,CLAUDE_CONFIG_DIR). - Tool coverage:
MonitorandLSPare judged; every other Claude Code tool has a recorded decision, held to the registration list by a test. - Hooks research report (
docs/hooks-research.md): all 33 hook events, the handler types and their failure behaviour, every place hooks are registered, and observed payloads.
Improved
- A
Monitorcall is judged once, and written to the audit log once, on Claude Code versions that also route it throughBash. - The coverage docs agree with the observed payloads (
Agenttool name,agent_id). - The corpus now replays 213 cases.
Looking ahead
Mentions of files in prompts, and the events the report could not observe.
Feedback and reports welcome: https://github.com/dotdevdotdev/damage-control-dev/issues