Repository navigation
think: deprecate createExecuteTool in favour of the Workspace exec tool - #2565
Merged
mattzcarey merged 1 commit intoOct 14, 2026
Merged
mattzcarey merged 1 commit into
mattzcarey merged 1 commit into
Conversation
🦋 Changeset detectedLatest commit: d0b8a85 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This was referenced Oct 12, 2026
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
added this pull request to stack #2566
October 12, 2026 11:52
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
2 times, most recently
from
October 12, 2026 12:32
b256f5b to
084a4aa
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 12, 2026 14:09
084a4aa to
a1dea6d
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 12, 2026 14:11
a1dea6d to
19a8f42
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 12, 2026 16:16
19a8f42 to
5cf18bf
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 13, 2026 16:12
5cf18bf to
b8f7bdf
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 14, 2026 13:09
b8f7bdf to
03d82de
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 14, 2026 13:12
03d82de to
a26ba1b
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
2 times, most recently
from
October 14, 2026 15:22
df6b933 to
156fea8
Compare
mattzcarey
force-pushed
the
deprecate-shell/7-think-exec-tools
branch
from
October 14, 2026 15:54
156fea8 to
d0b8a85
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecates Think's codemode
executetool (createExecuteToolandcreateExecuteRuntime). The replacement is theexectool Think already gets from@cloudflare/computeronce the Workspace has a JavaScript backend.Both tools do the same job: the model writes code, and the tool runs it in a Dynamic Worker. They differ in what the code can reach.
execute(codemode): the agent's tools are globals (tools.*,cdp.*).exec(Computer): the code is an ordinary module. It reads files throughnode:fs, and it can import the agent's tools from aws:toolsmodule if you add one to the backend:There's no loop here.
execis never exported fromws:tools, and neither are the workspace file tools, so code can't start another run.ws:toolsonly carries the agent's own tools (getTools()). Tools that need approval or run in the browser are left out too.Codemode is on its way out, so this marks the old tool deprecated. It keeps working until it's removed along with codemode. Think gets no new API: wiring
ws:toolsis plain@cloudflare/computersetup on the Workspace.Tests ran: think workers suite, including new tests where
execcode imports agetTools()tool fromws:tools, fails to importread, and reads files throughnode:fs.ws:toolsandforAISDKToolsshipped in@cloudflare/computer@0.5.1(cloudflare/computer#216 and cloudflare/computer#229), and the tests run against that release.Stacked on #2564.
Stack (merge in order, or merge the top to land them all together):