Skip to main content
Watch: Claude Code Just Killed After Effects

HOOKS

15 items

5 posts, 10 guides

Blog
Do Your Agent Hooks Fail Open? Claude Code vs Codex vs Cursor vs Gemini CLI

A guard hook that crashes, times out or points at a missing script lets the tool call through by default in Claude Code. v2.1.295 adds onFailure: block. Here is what each coding agent does when your policy hook breaks, with real test runs.

Blog
Claude Code Mods: What They Are and How to Write One

Claude Code mods are plugins whose JavaScript handlers run inside Claude Code. What they do that hooks and skills cannot, a first mod, and the trust question.

Blog
An Agent SDK Triage Bot for Commercial Insurance Submissions

Commercial underwriters drown in PDF submissions. Here is how to build a Claude Agent SDK triage bot with skills, hooks, and a clean audit trail.

Blog
Hookyard Shows Why Claude Code Hooks Need a Package Manager

Claude Code hooks still install by hand-editing JSON. The Hookyard prototype shows what a hook package manager should look like, from manifest to safe install.

Blog
Codex CLI Hooks for PLC and IoT Firmware Review on the Factory Floor

Manufacturing teams ship ladder logic and ESP32 firmware without code review. Here is a Codex CLI setup with hooks that catches the dangerous patterns first.

Guide
Environment Variable Persistence - Claude Code

SessionStart hooks can persist env vars across Bash tool calls.

Guide
Hooks System - Claude Code

Event-driven automation with 20+ lifecycle events.

Guide
SubagentStart and SubagentStop Hooks - Claude Code

Fire when subagents spawn and finish.

Guide
TaskCreated and TaskCompleted Hooks - Claude Code

Fire on task lifecycle events.

Guide
ConfigChange and InstructionsLoaded Hooks - Claude Code

Fire when settings or CLAUDE.md files change during a session.

Guide
PreCompact and PostCompact Hooks - Claude Code

Fire before and after context compaction.

Guide
Command Hooks - Claude Code

Run shell scripts on events with environment variable passing.

Guide
Prompt-Based Hooks - Claude Code

Use Claude itself to handle hook logic instead of shell scripts.

Guide
Agent-Based Hooks - Claude Code

Spawn subagents to handle complex hook logic.

Guide
Async Hooks - Claude Code

Run hooks in the background without blocking the session.

AI Development Stack

Get Smarter About AI Dev

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.

One email per weekReal code, not theoryFree forever