{"version":"2.1.318","anchor":"repl-poll-tool-sub-agent-polling-hook-message-limits-and-s","canonical_anchor":"repl-poll-tool-sub-agent-polling-hook-message-limits-and-s","heading":"The code-mode Poll tool works for sub-agents and handles hooks more strictly","tier":"internal","area":"Code Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318\/e\/repl-poll-tool-sub-agent-polling-hook-message-limits-and-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318","markdown":"### The code-mode Poll tool works for sub-agents and handles hooks more strictly\n\nThe Poll tool in code mode can now be called by sub-agents, drops repeated hook messages, and refuses tool calls when a PreToolUse hook hangs\n\n**Unclear.** It is not clear which condition makes this code mode and its Poll tool available.\n\n**What**\n\nClaude Code has a code mode in which Claude writes small pieces of code that call tools, and a Poll tool for checking on that code while it runs. Poll used to work only in the main conversation. It can now also be called by a sub-agent, which is a separate helper Claude starts to handle part of a task.\n\nOther changes in the same area:\n\n- Repeated messages from hooks are dropped, and there is a limit on how many hook messages one run can produce. A hook is a command you configure to run at set points.\n\n- Status text now shows while code is still waiting to be evaluated.\n\n- A tool call made from the code is refused when a matching `PreToolUse` hook, which runs before a tool call and can block it, does not finish.\n\n**Why**\n\nThis changes how code mode treats your hooks. A hook that hangs now stops the tool call it was meant to check instead of letting it go through.\n\n- Area: Code Mode\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}