Claude Code Code Mode Now Works With Agent Teams Turned On
Claude Code now lets users turn on Code Mode while agent teams are enabled. Sessions where Code Mode was already on now start in Code Mode even with teams on, and the messages shown when Code Mode cannot be turned on now explain what to do.
Key Takeaways
- Code Mode and agent teams can now be enabled together, removing a previous either-or choice.
- Existing Code Mode users get it automatically in sessions that have teams on.
- Error messages now say what to do when Code Mode cannot be turned on.
- Skills with inline
!commands now load in Code Mode under auto mode. - Background subagents that preload such skills no longer fail.
- Mods can call Bash and Read through
$.tool.callin Code Mode.
Code Mode and agent teams together
Code Mode, the experimental way for Claude to call its tools with JavaScript, previously could not be combined with agent teams. Claude Code 2.1.326 removes that restriction. Users can now turn on Code Mode while agent teams are enabled, and anyone who had already turned Code Mode on will find that sessions with teams on start in Code Mode.
Clearer messages
When Code Mode cannot be turned on, the messages now say what the user can do about it rather than only reporting the failure. The release also fixes several Code Mode problems: skills and slash commands with an inline ! command no longer fail to load under auto mode (Claude is asked to run the command instead), background subagents that preload such a skill no longer fail, and mods can use Bash, Read and other tools through $.tool.call and $.tool.check. Code Mode permission checks were also tightened, so more sandboxed commands ask or are refused.