Claude Code hooks
Shell commands that Claude Code runs automatically at lifecycle events such as before or after a tool call, so rules can be enforced by code rather than requested in prose.
- Part of
- Claude Code
- Events include
- PreToolUse, PostToolUse, UserPromptSubmit, Stop, SessionStart
Connected
More agent tooling & protocols
- agent-html-kitAn open-source template kit and Claude Code skill (kit.js) that lets agents emit content-only HTML components while design lives in one shared file, published with a 72-run HTML vs Markdown benchmark.
- Karpathy-inspired CLAUDE.md rulesA widely starred public CLAUDE.md with four behaviour rules: think before coding, simplicity first, surgical changes and goal-driven execution.
- AGENTS.mdAn open, tool-neutral Markdown convention for giving coding agents project instructions, introduced by OpenAI in August 2025 and now stewarded by the Linux Foundation's Agentic AI Foundation.
- Claude Code subagentsSpecialised agents with their own instructions, tools and context window that the main Claude Code session can delegate tasks to.
- Model Context Protocol (MCP)An open protocol, introduced by Anthropic in November 2024, that standardises how AI applications connect to external tools and data sources.
- Agent2Agent (A2A) protocolAn open protocol, launched by Google in April 2025, for agents from different vendors to discover each other and exchange tasks.