Model Context Protocol19 min read
Hooks in the Claude Agent SDK: every event, measured
The programmatic hooks you pass in options.hooks, not the shell hooks in settings.json — and the difference matters, because by default both fire in the same run. We registered a callback on all 31 events and ran it until we had the thing nobody publishes: the measured firing order.
By Andrew MercerBackgrind Blog

Read the full story
Originally published by Backgrind Blog on Aug 10, 2026.
Comments
Sign in to join the discussion.