mirror of
https://github.com/NickCrew/Claude-Cortex.git
synced 2026-09-14 20:17:11 +08:00
43c1f75e97
hooks/hooks.json was the Claude Code plugin manifest from when Cortex was distributed as a plugin. Registration now lives exclusively in ~/.claude/settings.json, managed through the TUI Hooks view. The file had four internal references remaining (core/hooks.py:314, tui/dialogs/hooks_manager.py:181, tui/main.py:595, cli.py:125-130), but all call sites except the CLI check is_file() before invoking validate_hooks_config_file() and gracefully no-op when missing. The only surviving impact is that "cortex hooks validate" without a path argument will error instead of validating a nonexistent default. docs/reference/moved-readmes/hooks.md was a 425-line plugin-era doc describing seven hooks that do not exist in hooks/ (implementation-quality-gate.sh, parallel-workflow-enforcer.sh, safety_pre_tool_guard.py, context_pack_injector.py, memory_auto_capture.py, changelog_gate.py, plus a referenced HOOK_DOCUMENTATION.md archive) and omitting the six that do. The content conflicted with site/guides/hooks.md and no inbound references pointed at it other than the stub in hooks/README.md, which was rewritten in the prior commit.