think: Use Computer as the default workspace - #2074
Draft
aron-cf wants to merge 5 commits into
Draft
Conversation
🦋 Changeset detectedLatest commit: 97e9eee 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 |
agents
@cloudflare/ai-chat
@cloudflare/codemode
create-think
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
added 5 commits
August 11, 2026 15:24
Introduce @cloudflare/computer behind the opt-in workspace entrypoint. Turn tools, skill runners, and codemode keep their existing interfaces while using the provider's fs surface.
Use a reproducible package tarball built from cloudflare/computer commit 5bac080 until the corresponding npm release is available.
Replace the temporary package built from Computer main with the published 0.2.0 release.
aron-cf
force-pushed
the
think-computer/02-computer-default
branch
from
August 11, 2026 17:15
b2ef8ed to
97e9eee
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.
This PR introduces
@cloudflare/computeras a dependency and makes its backend-freeWorkspacethe default.Think continues to use its own
fsandruntimecontract for now, so custom and shared workspaces do not need to extend a concrete Computer class. The legacy@cloudflare/shell-based workspace remains available through@cloudflare/think/workspace-shell-legacy.The default workspace requires no additional configuration:
Agent methods can access Computer’s filesystem through
workspace.fs:The codemode interface uses Computer’s file tools directly under
workspace.*. It exposesread,list,write, andedit, renaming Computer’slstool tolist. Read-only tools are re-executed after a durable resume, while mutations remain in the replay log.createExecuteTool(this)automatically exposes the selected Computer workspace:Generated codemode programs can then work with the durable filesystem:
The backend-free workspace does not expose
workspace.execorworkspace.bash. Code outside thecreateExecuteTool(this)convenience path can pass a Computer-shaped workspace explicitly:Legacy workspaces continue to provide their richer
state.*connector. Agents that need existing Shell storage, R2 data, snapshot-based Bash, or the legacy codemode interface can select it explicitly:This intentionally keeps Computer tools under
workspace.*and the richer legacy interface understate.*. Whether those interfaces should converge can be evaluated separately.A following pull request adds the opt-in Computer Worker Shell backend and exposes command execution as
bash.