{"version":"2.1.309","anchor":"teammate-spawn-replays-cli-deny-rules-and-typed-tools-flag","canonical_anchor":"teammate-spawn-replays-cli-deny-rules-and-typed-tools-flag","heading":"Teammates now inherit tool restrictions given on the command line","tier":"notice","area":"Agent Teams","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309\/e\/teammate-spawn-replays-cli-deny-rules-and-typed-tools-flag","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309","markdown":"### Teammates now inherit tool restrictions given on the command line\n\nA teammate started by Claude Code now gets the same `--disallowed-tools` and `--tools` limits you gave the lead, or it is not started\n\n**What**\n\nWith agent teams, a lead Claude Code session can start teammates, which are further Claude Code sessions working on the same task. When it starts one, it now passes on the tool limits you gave it on the command line:\n\n- Deny rules are passed on as `--disallowed-tools`.\n\n- Lists of allowed built-in tools are passed on as `--tools`.\n\nIf a deny rule cannot be passed to the teammate without changing it, the teammate is not started at all, with a message saying the teammate would not enforce the rule. Before, teammates received settings such as the model and effort but none of these tool limits.\n\n**Why**\n\nA teammate can no longer use tools that you told the lead session not to use.\n\n- Area: Agent Teams\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}