{"type":"analysis","id":"analysis:guide-claude-code-hooks-in-practice","slug":"guide-claude-code-hooks-in-practice","title":"Claude Code hooks in practice","description":"Claude Code hooks are user-defined handlers (shell commands, HTTP POSTs, MCP tool calls, single-turn prompt evaluations, or experimental agent subagents) that Claude Code runs at fixed lifecycle points in terminal, IDE, Desktop, and cloud sessions. Practitioners use them to format after Edit/Write,","published_at":"2026-11-06T11:00:00.000Z","updated_at":"2026-11-06T11:00:00.000Z","record_date":"2026-11-06","topics":["tools","developer_tools"],"source_urls":["https://code.claude.com/docs/en/hooks","https://code.claude.com/docs/en/hooks-guide","https://claude.com/pricing?mode=code","https://code.claude.com/docs/en/permissions","https://github.com/anthropics/claude-code/releases/tag/v2.1.317","https://github.com/anthropics/claude-code/releases/tag/v2.1.314","https://github.com/anthropics/claude-code/releases/tag/v2.1.310","https://github.com/anthropics/claude-code/releases/tag/v2.1.309","https://code.claude.com/docs/en/plugins/security","https://code.claude.com/docs/en/best-practices","https://github.com/anthropics/claude-code/issues/80697","https://github.com/anthropics/claude-code/issues/85904"],"language":"en","routes":{"html":"https://newruntime.com/analysis/guide-claude-code-hooks-in-practice/","markdown":"https://newruntime.com/analysis/guide-claude-code-hooks-in-practice.md","json":"https://newruntime.com/analysis/guide-claude-code-hooks-in-practice.json"},"author":{"role":"author","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]},"editorial_provenance":{"desk":"authorial","target_ref":"practical:6c396c11-784a-498e-a34b-a4c35b2141f8","authorial_article_id":null},"markdown_url":"https://newruntime.com/analysis/guide-claude-code-hooks-in-practice.md","retrieval_nugget":"Claude Code hooks are user-defined handlers (shell commands, HTTP POSTs, MCP tool calls, single-turn prompt evaluations, or experimental agent subagents) that Claude Code runs at fixed lifecycle points in terminal, IDE, Desktop, and cloud sessions.","next_reads":[{"type":"topic","path":"/topics/tools/","url":"https://newruntime.com/topics/tools/","title":"Tools","reason":"Explore the tools topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/tools.md","json_url":"https://newruntime.com/topics/tools.json"},{"type":"topic","path":"/topics/developer-tools/","url":"https://newruntime.com/topics/developer-tools/","title":"Developer Tools","reason":"Explore the developer_tools topic hub.","media_type":"text/html","markdown_url":"https://newruntime.com/topics/developer-tools.md","json_url":"https://newruntime.com/topics/developer-tools.json"},{"type":"collection","path":"/analysis/","url":"https://newruntime.com/analysis/","title":"Analysis","reason":"Open the latest authorial analysis.","media_type":"text/html","json_url":"https://newruntime.com/analysis.json"},{"type":"collection","path":"/sources/","url":"https://newruntime.com/sources/","title":"Sources","reason":"See the original sources this archive cites.","media_type":"text/html"}]}
