Notes on building software.

A personal blog of technical articles about software development.

Controlling Claude with Hook Exit Codes and JSON

September 8, 2026· 2 min read·claude-codehooksautomation

Exit codes give hooks blunt control; JSON on stdout gives them structured decisions like denying a tool call with a reason.

Running Checks When a Session Starts

September 8, 2026· 2 min read·claude-codehooksconfiguration

A SessionStart hook can load fresh project context into every session so Claude begins with the state that matters.

Notifying Yourself with Notification Hooks

September 8, 2026· 2 min read·claude-codehooksautomation

A Notification hook can send a desktop alert or sound when Claude needs your attention, so you can step away and still stay in the loop.

Debugging Hooks That Don't Fire

September 8, 2026· 2 min read·claude-codehooksconfiguration

A checklist for when a hook stays silent: verify the config, the event, the matcher, the exit code, and the command itself.