Skip to content

Instantly share code, notes, and snippets.

@laiso
Last active January 7, 2026 05:01
Show Gist options
  • Select an option

  • Save laiso/6b229ac7a64ec1b75d2cd309cbb7c63d to your computer and use it in GitHub Desktop.

Select an option

Save laiso/6b229ac7a64ec1b75d2cd309cbb7c63d to your computer and use it in GitHub Desktop.
.claude/settings.local.json: To automatically open plan files in VS Code whenever they are created or updated by the Write tool. Claude Code
{
"hooks": {
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "code \"$(ls -t ~/.claude/plans/*.md | head -1)\"",
"timeout": 5
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment