{"version":"2.1.305","anchor":"claude-api-ant-command-refusal-now-also-blocks-local-ids","canonical_anchor":"managed-agents-id-guard-for-ant-commands","heading":"Claude Code refuses ant commands holding certain agent IDs","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305\/e\/claude-api-ant-command-refusal-now-also-blocks-local-ids","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305","markdown":"### Claude Code refuses `ant` commands holding certain agent IDs\n\nA safety guard now blocks Bash `ant` commands containing staging, Vertex, Bedrock or local agent, environment and vault IDs, with tailored messages\n\n**What**\n\n`ant` is a command-line tool for Anthropic's managed agents. Claude Code now checks Bash commands that run `ant` and refuses some of them before they run. This supports the `\/claude-api` managed-agents-secure skill.\n\n- Prefixed IDs: commands containing `agent_`, `env_` or `vlt_` IDs followed by `staging_`, `vrtx_` or `bdrk_` are refused with \"Claude Code did not run this command: it holds an ID starting agent_, env_ or vlt_ then staging_, vrtx_ or bdrk_\".\n\n- Local IDs: local-server IDs such as `agent_local_` are accepted only in a strict form. A second refusal path blocks arguments holding a locally derived ID (`id_with_local_part`), or one written as a plain literal (`local_id`).\n\n- Split IDs: IDs broken across a line continuation (a backslash that carries a command onto the next line) are now caught too.\n\n- Messages: each case returns its own refusal message. Before, only the `id_with_second_part` and `managed_agents_secure_command_changed` causes existed.\n\n**Why**\n\nIf you use the managed-agents-secure skill, some `ant beta:` commands that used to run may now be stopped, with a message saying which kind of ID caused it. Nothing has been read about the gate `tengu_claude_api_ant_command_refused`.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}