Middleware names to strip from every stack this profile applies to.
Strings match AgentMiddleware.name exactly. Entries are grammar-checked
at construction: empty/whitespace strings, colon-containing strings, and
underscore-prefixed names all raise ValueError immediately.
Class-path (module:Class) entries are not currently supported and may
be added in a future revision. Until then, expose a stable public alias
via serialized_name on the middleware class and exclude by that alias.
This is the canonical on-disk representation used by to_dict /
from_dict.
task toolexcluded_middleware won't drop "SubAgentMiddleware" (or
"FilesystemMiddleware") — they're required scaffolding. To run
without the task tool, set general_purpose_subagent.enabled
to false on this config and pass no synchronous subagents via
subagents= on create_deep_agent. Async subagents are
unaffected.