hooks/hooks.json used ${PLUGIN_ROOT}, which Claude Code never defines, so the literal resolved against the hook process cwd and SessionStart/UserPromptSubmit failed with 'Cannot find module'. Switch to ${CLAUDE_PLUGIN_ROOT} (and %CLAUDE_PLUGIN_ROOT% for the Codex commandWindows variant); Codex aliases CLAUDE_PLUGIN_ROOT so both hosts resolve. Drop the duplicate inline hooks block from .claude-plugin/plugin.json so hooks load from a single canonical source.
10 lines
296 B
JSON
10 lines
296 B
JSON
{
|
|
"name": "ponytail",
|
|
"version": "4.1.0",
|
|
"description": "Lazy senior dev mode. Forces the simplest, shortest solution that actually works: YAGNI, stdlib first, no unrequested abstractions.",
|
|
"author": {
|
|
"name": "Dietrich Gebert",
|
|
"url": "https://github.com/DietrichGebert"
|
|
}
|
|
}
|