Artifact 76599a5c832ad943010639211ca2467b0ca02226878236aa63809026f39c84e6:
- File
plugin/hooks/hooks.json
— part of check-in
[1ec6241dca]
at
2026-11-11 00:07:46
on branch rules-offer-hook
— Install the rules offer hook: it helped on Claude and DeepSeek
On 90 questions about past work, Claude with the SessionStart hook scored 73.5 against 66.5 without it (better on 16, worse on 6, p=0.052), with the same wrong answers, half the don't-knows and 7% fewer tokens. On DeepSeek, agents used ctx in 89 answers instead of 66, needed half the tool calls and time, and none timed out.
The plugin now runs ctx rules offer at session start, and the how-to says so. (user: dmestas, size: 1195) [annotate] [blame] [check-ins using] [more...]
{ "hooks": { "SessionStart": [ { "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" hook", "async": true }, { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" ticket offer", "timeout": 3 }, { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" rules offer", "timeout": 3 } ] } ], "Stop": [ { "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" hook", "async": true } ] } ], "PreCompact": [ { "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" hook", "async": true } ] } ], "SessionEnd": [ { "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/bin/ctx\" hook", "async": true } ] } ] } }