sphica
Version:
Records Claude Code and Codex sessions on your machine and keeps past implementation and decisions, with their sources, for your agent to find.
142 lines (141 loc) • 2.91 kB
JSON
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/capture.js"
],
"timeout": 10
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/deliver.js"
],
"timeout": 5
}
]
}
],
"SubagentStart": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/deliver.js"
],
"timeout": 5
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/capture.js"
],
"timeout": 30
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/deliver.js"
],
"timeout": 5
}
]
}
],
"PostToolUse": [
{
"matcher": "Edit|Write|MultiEdit|NotebookEdit|AskUserQuestion",
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/capture.js"
],
"async": true
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/capture.js"
],
"timeout": 30
}
]
}
],
"PreToolUse": [
{
"matcher": "mcp__plugin_sphica_record__.*",
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/capture.js"
],
"timeout": 10
}
]
},
{
"matcher": "Edit|Write|MultiEdit|NotebookEdit|Read|Skill|Bash|PowerShell",
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/deliver.js"
],
"timeout": 5
}
]
}
],
"UserPromptExpansion": [
{
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/dist/deliver.js"
],
"timeout": 5
}
]
}
]
}
}