Unclear It is not clear which sessions offer agent() and workflow(), or whether ordinary users can reach them.
What
Claude Code has a scripted way to start agents (separate helper sessions that each work on a task) by calling agent(). When the input given to agent() is not valid, it now stops with an error that spells out what the session accepts:
disallowedTools: tool names only, 512 at mostmodel: a model id- a schema: 262,144 characters at most
- an agent type: 4,096 characters at most
- a bash command clamp: not accepted in this session
A call to workflow() in the same session is turned away with: "workflow() can't be used in this session. Start the agents with agent()."
Why
When a scripted agent fails to start, the error now says which limit was broken.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear which sessions offer agent() and workflow(), or whether ordinary users can reach them.