hooks
30 articles about hooks in AI news
Build a Self-Improving Memory Layer for Claude Code with Hooks and RAG
Implement automatic hooks to capture Claude Code's work into a ChromaDB vector store and a CLAUDE.md file, creating a persistent, searchable memory for your project.
Stop Writing More Rules: Use Hooks to Enforce Your CLAUDE.md
Critical CLAUDE.md rules fail because Claude prioritizes helpfulness. The solution is to use session hooks to automate enforcement, making rules impossible to skip.
Claude Code Hooks: How to Auto-Format, Lint, and Test on Every Save
Configure hooks in .claude/settings.json to run prettier, eslint, and tests automatically, ensuring clean code without manual intervention.
How to Build a Custom AI Agent with Claude Code's Skills, SubAgents, and Hooks
A developer's deep dive into customizing Claude Code with 7 skills, 5 subagents, and quality-check hooks—showing how to move beyond basic prompting to create a truly autonomous coding assistant.
How to Auto-Approve Safe WebFetches While Blocking Suspicious URLs with Hooks
Use Claude Code's PreToolUse hooks to automatically allow clean documentation URLs while forcing manual review for any URL containing query parameters, eliminating repetitive prompts without sacrificing security.
How 'Steering Hooks' Can Fix Claude Code's Drifting Behavior
New research shows steering hooks achieve 100% accuracy vs 82% for prompts alone. Apply this to your CLAUDE.md to stop unpredictable outputs.
7 Production-Ready Agent Hooks You Can Copy Into Your CLAUDE.md Today
Agent hooks in CLAUDE.md automate context management, testing, and deployment, turning Claude Code from a chat tool into a proactive development partner.
Why Claude Code's 'Tool Calls' Aren't Hooks — And How to Design for Its
Understanding Claude's 8-step tool pipeline—from edge routing to result injection—is critical for structuring error handling, timeouts, and debugging in production applications.
Claude Code Routines: Automate Code Reviews
Automate Claude Code tasks like scheduled code reviews or deployment hooks using the new Routines feature, which runs on Anthropic's infrastructure.
How Telemetry Settings Are Silently Costing You Cache Tiers (And How To Fix It)
A confirmed bug links telemetry settings to cache TTL; disabling telemetry defaults you to 5-minute cache, increasing costs. Use environment variables and hooks to mitigate.
Anthropic's Silent Cache TTL Cut
Claude Code's default cache TTL was silently reduced to 5 minutes on April 2, drastically increasing token costs. Use hooks and settings to mitigate the impact.
Block Compromised NPM/PyPI Packages Automatically with attach-guard
A new Claude Code plugin uses PreToolUse hooks to automatically block compromised packages like the recent axios hijack before they install.
Claude Code Introduces Interactive /init Command to Automate Project Configuration
Anthropic's Claude Code has launched a new interactive /init command that interviews developers to automatically configure CLAUDE.md files, Git hooks, and skills. This reduces manual setup time for AI-assisted coding workflows.
How to Structure Your Claude Code Project So It Scales Beyond Demos
A battle-tested project structure that separates skills by intent, leverages hooks, and integrates MCP servers to keep Claude Code reliable across real projects.
Stop Bloating Your CLAUDE.md: The Infrastructure-First Workflow That Cuts Review Time in Half
Replace verbose CLAUDE.md rules with automated hooks and modular skills to enforce quality and prevent context degradation.
Single Pane: The Terminal-First Workspace Built for Claude Code
A new macOS app consolidates your terminal, file manager, and markdown editor into one window, with native hooks for Claude Code audio notifications.
Stop Using Claude Code Like a Chatbot: The 4 Mental Models That Actually Work
Claude Code isn't a smarter chatbot—it's a reasoning engine. Treat it like one by mastering Context, Skills, Hooks, and Subagents.
pixcli: The First MCP Server for Brazil's Pix Payments (Install It Now)
A new Rust CLI with built-in MCP server lets Claude Code agents create Pix charges, check payments, and manage webhooks—automating Brazilian payment workflows.
Cua Driver Open-Sourced: macOS Agent Control for Any App
Cua released Cua Driver as open-source, allowing agents like Claude Code and Codex to drive any macOS app through visual understanding and direct UI interaction.
From CI Fire to 9% Interruption
Learn the four guardrail patterns and three-phase CLAUDE.md strategy that turns auto-approve from a CI-breaking risk into a productivity superpower.
Distillery 0.4.0 Stabilizes Its MCP API
Distillery 0.4.0 stabilizes its MCP API surface, enabling reliable agent memory and team knowledge bases for Claude Code workflows.
Clerk: Auto-Summarize Every Claude Code Session into Searchable Markdown
Install Clerk to automatically generate Markdown summaries of every Claude Code session, making your debugging, research, and architecture decisions searchable across projects.
Claude Code's Architecture Revealed
An analysis of Claude Code's source code shows its core is a simple loop, but its power comes from systems like a 5-layer compaction pipeline and a 7-mode permission system, which developers can leverage for better performance.
Stop Rewriting CLAUDE.md: The 4-Stage Evolution That Cuts Context Waste 40%
Your CLAUDE.md should grow with your project through four intentional stages, adding rejected alternatives and 'never do this' rules to prevent Claude from re-litigating settled decisions.
Claude Code Reverse-Engineered: 98.4% of Codebase is Operational Harness
A reverse-engineering analysis of Claude Code reveals only 1.6% of its codebase is AI decision logic, with the rest being operational infrastructure. This challenges current agent design paradigms by prioritizing a robust deterministic harness over complex model routing.
Claude Code's Model Chooser: How to Pick the Right Model for Every Task
A developer built a web interface that replicates Claude Code's model selection algorithm, letting you preview recommendations before executing commands.
Replace Karpathy's Agent Memory Automation with This 30-Line /close-day Hook
Background automation fails on laptops; use a simple /close-day skill and date tags in MEMORY.md instead.
Build Your First MCP Server in 15 Minutes with Python's FastMCP
Learn to build MCP servers that give Claude Code direct access to your systems, eliminating copy-paste workflows.
AgentPulse: The Open-Source Dashboard That Solves Claude Code's
Install AgentPulse to gain visibility into all your active Claude Code and Codex CLI sessions from a single web dashboard, with live updates, session naming, and prompt history.
How Claude Routines Could Automate Your Dev Workflow (And What's Still Missing)
Claude Routines are cloud-based AI automations that run on triggers/schedules. While not directly in Claude Code yet, they hint at future workflow automation possibilities developers should prepare for.