Skip to content

Instantly share code, notes, and snippets.

@possibilities
Created March 16, 2026 20:18
Show Gist options
  • Select an option

  • Save possibilities/0607083ce3d70f1415bb29bf2a27892d to your computer and use it in GitHub Desktop.

Select an option

Save possibilities/0607083ce3d70f1415bb29bf2a27892d to your computer and use it in GitHub Desktop.
{
"description": "contextctl hooks — inject codebase context via codectl",
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.py"
},
{
"matcher": "clear",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.py"
}
],
"UserPromptSubmit": [
{
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.py"
}
],
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use.py"
}
],
"PostToolUse": [
{
"matcher": "ExitPlanMode",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use.py"
}
]
}
}
{
"name": "contextctl",
"description": "Automatic codebase context injection via codectl",
"version": "1.0.0",
"author": {"name": "arthack"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment