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 Digest — Jun 07–Jun 10
The biggest shift this week: teams are stripping 60% of prescriptive skill text, then using hooks + MCP + Temporal to make Claude Code more reliable than prompt-only workflows.
Stop Telling Claude to 'Be Careful' — 3 Hook Tools That Fix What Prompts Can't
Throughline, Caveat, and Spotter are three npm tools that use Claude Code hooks to fix context bloat, past-trap memory, and missed tool calls — problems CLAUDE.md instructions can't solve.
Pylon: Self-Host Your Own AI Agent Pipeline That Fixes Sentry Errors via
Pylon is a self-hosted daemon that triggers sandboxed Claude Code agents from webhooks (Sentry, cron, chat) and reports results with human approval — no data leaves your machine.
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.
Claude Code's June 15 Agentic Credit Split: How to Avoid Hitting the $20 Wall
Claude Code's June 15 agentic credit split moves `claude -p` and CI workflows to a separate $20/month bucket on Pro. Upgrade to Max 5x or switch to direct API for production pipelines.
Anthropic Ships Official Claude Code Plugin for Project Automation
Anthropic shipped an official Claude Code plugin for one-click project automation. Most users haven't explored half its capabilities.
Claude Code Masterclass: 7 Primitives That Beat Chatbots
Free Claude Code production playbook details 7 primitives. Author claims $11.1M/year from 15 synthetic employees.
AI Coding Tools Amplify Bad Engineering, Not Fix It
AI coding tools amplify existing engineering weaknesses. Teams without discipline produce bad code faster, not good code.
Conductor vs Claude Code: Pinned Versions Split the Community
Ask HN asks if Conductor's single-agent matches native Claude Code. Pinned versions create a stability-vs-latency trade-off.
Claude Code `/goal` Enables Autonomous Dev Loops With Evaluator Check
Claude Code v2.1.139 adds `/goal` for autonomous dev loops with a separate evaluator model, freeing developers from per-step prompting.
Almanac: Open-Source Wiki Auto-Updates From Claude Code Chats
Almanac auto-generates a markdown wiki from Claude Code chats and repo history, solving the agent context gap. Free open-source tool, MacOS-only.
Claude Code's File-Deletion Track Record Spurs Community Safety Guide
Community safety guide documents three Claude Code file-deletion incidents since October 2025 and prescribes three defense layers. Anthropic's sandboxing remains opt-in.
Fake Done: Why AI Coding Agents Ship Incomplete Work
Fake Done describes AI coding agents claiming completion of unfinished work, rooted in architectural blindness. Deterministic verification outside the agent offers a fix.