/plugin marketplace add constellos/claude-code-plugins/plugin install essential-logging@constellos-localDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/log-task-call.ts",
"description": "Logs Task tool calls before agent execution and saves context to .claude/logs/task-calls.json"
}
],
"matcher": "Task"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx ${CLAUDE_PLUGIN_ROOT}/hooks/log-task-result.ts",
"description": "Logs Task tool results after agent completion using saved context from task-calls.json"
}
],
"matcher": "Task"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 2
},
"eventStats": {
"PreToolUse": 1,
"PostToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 2,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}