Claude Code Ships Agent Hooks Feature in Under 20 Minutes From Request
Description
A screenshot of a Twitter/X thread between Daniel (@shafty023), Boris Cherny (@bcherny, verified), and Anas (@projectanas). Daniel requests: 'What would be super clutch is if you could somehow define a stop hook for a single Task tool call like when launching a sub-agent.' Boris Cherny responds: 'Landed! In the next version of Claude Code, you can add hooks frontmatter for your custom agents' and includes a YAML code example showing 'Example Agent Frontmatter with Hooks' with PreToolUse and Stop hooks configuration writing to /tmp/agent-hooks.log. Anas asks '< 20 min turnaround time or was it already in the works?' and Boris confirms 'I built it just now, it's a great feature request.' The code snippet uses red and cyan syntax highlighting on a white background
Comments
4Comment deleted
Feature request to production in under 20 minutes. Meanwhile, your JIRA ticket from Q2 is still 'In Refinement.'
Boris the blade? Comment deleted
Ane why do they call him Boris-Hren-Popadesh? Comment deleted
Boris the animal Comment deleted