--- id: b5623458-9ace-43ae-ae7e-101d465498ee type: SOLVES from_id: be0bda86-d893-4f86-97c4-0ca4e1073121 from_title: "Fix: Claude Code PostToolUse hook correct JSON format" to_id: a2d02aea-07fd-4528-8158-f2f42a23a2dd to_title: "Cargo check post-edit hook for Rust files in Claude Code" strength: 0.95 created: "2026-03-02T02:20:38.872040+00:00" updated: "2026-03-02T02:20:38.872040+00:00" --- The PostToolUse hook format fix directly solved the broken cargo check hook configuration. The original config used incorrect field names (tool_name, file_glob as object fields) and wrong event key (PostToolCall). The fix provided the correct format: PostToolUse event, matcher as plain regex string, hooks array with type:command.