{"version":"2.1.326","anchor":"new-telemetry-field-and-new-errorcompact-reason-codes","canonical_anchor":"new-telemetry-field-and-new-errorcompact-reason-codes","heading":"New tool hook stages and new reasons for review, environment and compaction outcomes","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/new-telemetry-field-and-new-errorcompact-reason-codes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### New tool hook stages and new reasons for review, environment and compaction outcomes\n\nClaude Code adds two tool hook stages, tool.judge and tool.run, plus new reasons for refused compaction and disabled features\n\n**Unclear.** It is not clear whether hooks can already be set up for the tool.judge and tool.run stages.\n\n**What**\n\nHooks are your own commands that Claude Code runs at set points. Two new stages for tool hooks appear: `tool.judge` and `tool.run`.\n\nNew reason codes also appear, covering these cases:\n\n- `ultrareview_off_for_organization`: the ultrareview feature is turned off for the organization.\n\n- `session_env_vars_disabled`: session environment variables are disabled.\n\n- `compact_prompt_round_kept`: a prompt round was kept during compaction, which is when Claude Code summarizes the conversation to free up space.\n\n- `compact_reply_refused`: the reply to a compaction request was refused.\n\nA new field about results being placed beside running tool calls is also recorded in usage data.\n\n**Why**\n\nThese point to a rework of when tool hooks run and to new handling for a compaction summary that is refused.\n\n- Area: Hooks\n- Names: `tool.judge`, `tool.run`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}