Snowflake will give every Cortex AI agent request code-running tools by default
The scheduled change gives CoWork agents broader file access than API agents by default. Administrators can delay the switch until February 20, 2027.
Listen to this story
The audio brief
Story brief
3 key pointsSnowflake plans to make sandboxed code and file tools available to Cortex Agents requests by default on December 9, 2026, including agents that never declared `code_execution`. The rollout is not uniform: CoWork also gains read/write access to the user's default workspace, while API agents do not unless developers explicitly mount it and include a thread ID. Administrators can temporarily opt out, but Snowflake will remove that option on February 20, 2027, making agent audits and configuration checks time-sensitive.
- 01
The new sandbox includes bash, Python, file reading and writing, and search; agents already using `code_toolset_all` are unaffected.
- 02
CoWork calls through Agent Studio and Slack gain workspace access, while API agents need `mount_user_default_workspace: true` and a thread ID.
- 03
Top-level `sandbox_config` values override equivalent `code_execution` settings, including `artifact_repositories`; even an empty list takes precedence.
Snowflake has scheduled a December 9, 2026 change that gives every Cortex Agents request a sandbox—an environment with tools for running code and handling files. The pending change covers CoWork and the Cortex Agents API, including agents whose settings do not explicitly enable code execution.
Previously, an agent needed the code_execution tool in its specification to receive a sandbox. Without it, the agent could not run code, read or write files, or install packages. The new default supplies bash, a command shell, alongside file reading and writing, search, and Python. Agents using the code_toolset_all tool type already had a sandbox and are unaffected.
Same tools, different access to user files
Getting a sandbox does not always mean getting access to the user’s default workspace. For CoWork agents without code_execution, the change grants both a sandbox and read/write access to that workspace. This includes calls through Agent Studio and Slack. Snowflake says those agents can generate files and use user skills without any change to the agent specification.
The API takes a narrower approach for agents without code_execution: they receive the sandbox, but not the user’s workspace by default. Developers can enable workspace access by setting mount_user_default_workspace to true inside sandbox_config. The API behavior also covers MCP and SQL function calls. For API agents that already have code_execution, sandbox and workspace access remain the default.
An explicit setting overrides the old tool choice
For API calls, the workspace setting takes precedence over whether code_execution is present. Setting it to false removes workspace access; setting it to true enables mounting, with one further requirement: the request must include a thread ID. Without that ID, the workspace is not mounted, even when the configuration asks for it.
Snowflake is also moving sandbox settings into a new top-level sandbox_config section of the agent specification. Each field set there overrides the equivalent field under code_execution. That includes artifact_repositories, the list of repositories used for package installation: even an empty list takes precedence. The older code_execution tool remains supported for backward compatibility, but Snowflake directs new sandbox settings into sandbox_config.
A temporary pause, with configuration consequences
Accounts that have not opted out switch on December 9. Administrators can retain the previous behavior while validating agents, but Snowflake will remove the opt-out on February 20, 2027. Its opt-out instructions give administrators this account-level command:
ALTER ACCOUNT SET CORTEX_AGENT_SANDBOX_DEFAULT_ON = FALSE;While the parameter is false, Snowflake ignores sandbox_config, and creating or altering an agent with that section fails. Existing agents retain saved sandbox_config settings, which apply again when the account opts back in. Agents with code_execution use its artifact repositories during the opt-out. Parameter changes take effect on the next request, so switching back changes which saved settings govern subsequent calls.
Snowflake’s immediate instruction is to review agents that omit code_execution and check whether their instructions and tool choices still behave as intended. Those are the agents gaining tools without a specification change; existing sandbox limitations still apply.
Sources
- docs.snowflake.comCortex Agents get a sandbox by default (Pending) - Snowflake Documentation
Reader comments
Newest comments first. Replies stay oldest first.