{"version":"2.1.337","anchor":"agent-definitions-with-a-non-active-source-are-filtered-and","canonical_anchor":"agent-definitions-with-a-non-active-source-are-filtered-and","heading":"Some agent definitions are now left out at startup, with clearer --agent errors","tier":"notice","area":"Agents","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/agent-definitions-with-a-non-active-source-are-filtered-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Some agent definitions are now left out at startup, with clearer --agent errors\n\nClaude Code now drops some agent definitions at startup, shows a notice for shadowed or untrusted ones, and explains when --agent names an unusable agent\n\n**Unclear.** The exact rule that decides whether an agent is trusted or usable is not known.\n\n**What**\n\nAn agent definition is a file that describes a custom agent, a separate assistant with its own instructions. At startup Claude Code now checks each one and leaves out those that fail the check, so they are not in the list of active agents. Specifically:\n\n- Shadowed or untrusted agent files now produce a notice at startup.\n\n- An agent's opening prompt is held back until onboarding finishes when the agent fails the trust check.\n\n- The `--agent` error now gives a separate message when the agent exists but cannot be used, instead of always saying it was not found.\n\nPreviously the not-found error simply listed the available agents, and an agent's opening prompt was always applied.\n\n**Why**\n\nThis changes how agents defined inside a project behave when Claude Code starts, and may act as a trust check on them. If an agent you expect is missing, the startup notice or the `--agent` error should now tell you more.\n\n- Area: Agents\n- Names: `--agent`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}