Tinker AI
Read reviews

#hooks

4 items tagged #hooks.

GUIDE 2026-05-11

PostToolUse hooks: the after-the-fact watchdog pattern

PostToolUse fires after every Claude Code tool call and can inject context, run formatters, and build audit trails — without blocking the agent mid-task.

GUIDE 2026-05-11

SessionStart hooks: injecting context the model would otherwise miss

SessionStart fires once before any tool calls, letting you inject real-time context—git state, sprint focus, oncall rotation—directly into the model's system prompt for that session.

GUIDE 2026-05-11

Claude Code hooks: where they fire, what they can read, and what they can't

Claude Code hooks run shell commands at deterministic lifecycle points. This guide covers all five events, the JSON contracts each one uses, and which hooks can block versus only observe.

GUIDE 2026-05-11

Skill or hook? Two extension points and how to choose

Claude Code has two extension points: skills run inside the model's loop, hooks run in the harness around it. Knowing which to reach for determines whether your automation is reliable or just suggestive.