Files
Charlie Egan b2043cb45b Wrap agent startup hook commands with bash -c (#8189)
Updated sessionStart hook commands to explicitly use bash -c wrapper.
This improves compatibility across different environments where default
shell may vary.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2026-01-07 10:27:35 +00:00

20 lines
521 B
JSON

{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{
"type": "command",
"command": "bash -c 'if [ -f \"$CLAUDE_PROJECT_DIR/AGENTS.md\" ]; then cat \"$CLAUDE_PROJECT_DIR/AGENTS.md\"; fi'"
},
{
"type": "command",
"command": "bash -c 'if [ -f \"$CLAUDE_PROJECT_DIR/docs/docs/contrib-code.md\" ]; then cat \"$CLAUDE_PROJECT_DIR/docs/docs/contrib-code.md\"; fi'"
}
]
}
]
}
}