AI Tools Kit
Token ToolsNewsAgentsEarnPromptsRAGLearn
Tutorial

Claude Code Hooks: Automate Pre- and Post-Tool Execution

Claude Code hooks run shell commands before or after any tool call. Lint on file write, notify on task completion, or block dangerous paths — all configured in settings.json without touching prompts.

Published May 6, 2026
8 min read
AI

AI Tools Kit

AI Tools Kit provides free developer tools for working with AI language models. Built by developers, for developers.

Learn more about us →

Related Articles

Tutorial

Streaming Claude Responses in Python: Async, Tokens, and Error Handling

Step-by-step Python tutorial for streaming Claude responses with the Anthropic SDK — covers sync vs async streaming, partial token handling, retry logic, and token counting in real agent loops.

Tutorial

LangGraph 0.4 + MCP: Persistent Memory Agent Tutorial

Build a LangGraph 0.4 agent with McpToolNode for live tool calls and SharedStore for persistent memory across sessions — copy-paste code for each step.

Tutorial

How to Write Provider-Neutral Agent Skills in 2026

How to write agent skills that run on Claude Code, Codex, and OpenClaw without modification. Real code examples and the skill-file patterns that transfer across every major agent runtime.

AI Tools Kit

Free tools to calculate tokens, estimate costs, and understand how AI models process your text.

Tools

Token CalculatorToken VisualizerTOON ConverterPricing Calculator

Resources

Learn & BlogNewsAI AgentsPrompt LibraryRAG ToolsAbout Us

Legal

Privacy PolicyTerms of ServiceContact Us

Pricing last updated: February 2026

© 2026 AI Tools Kit. All rights reserved.

Token calculations are estimates. For precise counts, use official tokenizers.