An agent is a helper with its own instructions that Claude Code can run, and a project can define agents in its settings folders. Claude Code now holds back agents defined in a project's or local settings folder when that folder is not trusted. This covers:
- the agent a session is set to run as, and its
initialPrompt, the prompt that agent starts with - agents whose name is similar to that agent's
You get a warning instead, such as "Ignoring the agent setting from ...: its folder is not trusted", or a message that an agent was not started because its folder is not trusted and another agent has a similar name.
The check is controlled by a remote setting. When the server sends nothing for it, the code falls back to holding these agents back.
Opening a folder you have not trusted no longer runs an agent file, or its starting prompt, that came with that folder.
tengu_curious_wand Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.337: not a boolean we can read
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.337. It isn't a statement about your account. What a flag value here can and cannot tell you