2026-08-04 16:47:58 +08:00
|
|
|
{
|
|
|
|
|
"hooks": {
|
2026-09-07 11:23:15 +08:00
|
|
|
"SessionStart": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": "^(?:clear|compact)$",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "python3 -X utf8 .codex/hooks/inject-spec-context.py",
|
|
|
|
|
"timeout": 15
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-08-04 16:47:58 +08:00
|
|
|
"UserPromptSubmit": [
|
|
|
|
|
{
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "python3 -X utf8 .codex/hooks/inject-workflow-state.py",
|
|
|
|
|
"timeout": 15
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"SubagentStart": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": "^(?:trellis-implement|trellis-check|trellis-research)$",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "python3 -X utf8 .codex/hooks/inject-subagent-context.py",
|
|
|
|
|
"timeout": 15
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-09-07 11:23:15 +08:00
|
|
|
],
|
|
|
|
|
"PreToolUse": [
|
|
|
|
|
{
|
|
|
|
|
"matcher": "Edit|Write",
|
|
|
|
|
"hooks": [
|
|
|
|
|
{
|
|
|
|
|
"type": "command",
|
|
|
|
|
"command": "python3 -X utf8 .codex/hooks/inject-spec-context.py",
|
|
|
|
|
"timeout": 15,
|
|
|
|
|
"additionalContextLimit": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-08-04 16:47:58 +08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|