Archive
Hooks
Every article tagged "hooks".
2 articles

News
May 99 min
Claude Code v2.1.138: The Session ID Env Var Builders Needed
Claude Code v2.1.138 ships CLAUDE_CODE_SESSION_ID as an environment variable in every Bash subprocess -- the same session_id your hooks already receive. That means hooks and Bash tool calls can finall

Tutorials
Apr 2411 min
How to Wire Claude Code Hooks to MCP Tools (v2.1.118)
Claude Code v2.1.118 (released April 23, 2026) added type: "mcp_tool" as a new hook handler type. You can now wire any lifecycle event -- PreToolUse, PostToolUse, Stop, SessionStart -- direc