PostToolUse
PulseAugur coverage of PostToolUse — every cluster mentioning PostToolUse across labs, papers, and developer communities, ranked by signal.
- instance of PreToolUse 90%
- used by .claude/settings.json 90%
- used by Prettier 90%
- used by PreToolUse 70%
- used by Bash 70%
- used by Edit 70%
- used by settings.json 70%
- other PreToolUse 60%
- developed by PreToolUse 50%
- affiliated with .claude/settings.json 50%
- affiliated with Prettier 50%
- developed by Bash 50%
4 day(s) with sentiment data
-
Claude Code vulnerability bypasses content moderation for files
A security researcher discovered a vulnerability in Claude Code that bypasses content moderation policies when handling image, PDF, and notebook file types. Despite audit logs indicating a "blocked" status due to a "den…
-
Claude Code integrates auto-formatting via PostToolUse hooks
Developers can now automatically format code edited by Claude Code using a PostToolUse hook. This hook, configured in `.claude/settings.json`, runs shell commands after code edits to apply formatters like Prettier, ruff…
-
Claude Code hooks merge unexpectedly, requiring careful management
The Claude Code tool allows users to define custom hooks that execute at various points during a session, such as when a prompt is submitted or before a tool is used. These hooks can be configured in multiple locations,…
-
Claude Code enhanced with security hooks to block dangerous commands
Developers using Claude Code can enhance its safety by implementing shell hooks that automatically block dangerous commands and prevent access to sensitive files. These hooks, executed before or after specific tool uses…
-
Claude Code enhanced with automated test execution via PostToolUse hooks
A developer has created a method to automatically run tests after code edits within Claude Code, an AI coding assistant. This is achieved by implementing a PostToolUse hook, which triggers a Python script to execute tes…
-
Claude Code hook matching fails on exact server prefix, documentation mismatch found
A technical deep-dive reveals a significant discrepancy in how Claude Code handles tool matching for hooks. While documentation and permission rules suggest that a server prefix like 'mcp__lab' should match all tools fr…
-
Claude Code's secret-printing vulnerability poses exfiltration risks
Claude Code, an AI coding assistant, has a recurring issue where it inadvertently prints sensitive API keys and secrets directly into its output or tool calls. This vulnerability, documented in multiple reports on the C…
-
AI agent details common CLAUDE.md configuration mistakes
This article details common mistakes made when configuring CLAUDE.md files for the Claude Code agent, emphasizing that these files are context rather than configuration. The author, an AI agent named Claude, highlights …
-
Claude Code Hooks Automate Formatting and Block Dangerous Commands
Developers can now implement custom hooks for Claude Code to automate tasks and enforce safety rules. These hooks, configured in `.claude/settings.json`, can automatically format code after edits or block dangerous comm…
-
Developer creates Claude Hookbook for automated Claude Code tasks
A developer has created "Claude Hookbook," a library of pre-written hooks designed to automate common tasks and add guardrails to Anthropic's Claude Code. The tool addresses the setup friction of manually configuring ho…
-
Claude Code enhances AI agent security with multi-layer permissions
Claude Code offers a robust permission system for AI agents, moving beyond simple yes/no prompts. It utilizes a three-layer architecture involving interactive approvals, static deny/allow lists in settings.json, and dyn…
-
LLM development tool forces self-auditing to prevent false completion claims
A developer has created a Bash script system to ensure Large Language Models (LLMs) do not falsely claim completion of tasks. This system uses a combination of 'Stop' and 'PostToolUse' hooks to structurally enforce self…
-
Claude Code hooks fail silently due to unobservable errors
This article details several ways Claude Code hooks can fail without producing errors, leading to silent malfunctions. Issues include event types that ignore matchers, 'if' conditions only evaluating on tool events, dep…
-
Developer enforces AI coding rules with deterministic hooks
A developer has found that AI models like Claude Code, Sonnet, and Haiku often fail to consistently adhere to rules, especially with longer contexts or smaller models. To address this, the developer implemented a system…
-
Developer shares method to measure Claude Code hook latency
A developer has detailed a method for measuring the latency of custom scripts, known as "hooks," integrated into Claude Code. These hooks, used for tasks like automatic git commits or project categorization, can signifi…
-
Claude Code hooks: troubleshooting guide for custom script execution
This guide explains how to troubleshoot issues with Claude Code hooks, which are custom scripts designed to automate actions or enforce policies within the Claude Code environment. It details steps to verify if a hook i…
-
Developer cuts Anthropic Claude Code costs with custom bash hooks
A developer significantly reduced their AI costs by implementing custom hooks for Anthropic's Claude Code. By adding a PostToolUse bash hook, they prevented Claude Code from entering costly retry loops after migration f…
-
Anthropic Claude Code hooks automate workflows and enhance safety
Anthropic's Claude Code offers developers powerful hooks to automate workflows and enhance safety. The `PreToolUse` hook acts as a guard against destructive commands like `rm -rf` or `git push --force`, preventing unint…
-
Claude Code production audit logs use PostToolUse hook
This article details how to implement audit logs for Claude Code using the PostToolUse hook, a crucial component for production environments. It explains that this hook runs after a tool call has completed, allowing dev…