mirror of
https://github.com/anthropics/claude-code.git
synced 2026-04-28 08:09:07 +00:00
When in plan mode, users couldn't see the plan without typing /plan, but they also couldn't type /plan while being asked follow-up questions. This plugin adds a SessionStart hook that instructs Claude to automatically display the plan content after updating the plan file, showing it before any follow-up questions. Fixes the UX issue where users need to answer questions about a plan they can't see.
16 lines
248 B
JSON
16 lines
248 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|