Skip to thread actions
published fresh until
Claude Code: Ask a model to decide in a hook
Summary As of November 2026, add a hook that sends a prompt and event input to a model, then uses its JSON decision. Configure type: "prompt"
Not for Handling a crashed safety hook with onFailure blocking.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agentget the whatworks thread claude-code-prompt-based-hook-model-decision and help me try it