Repository navigation
[Agents] Think works in a @cloudflare/computer Workspace #34297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
Changes from all commits
f7030f8
f782612
5d5b441
0e02e1b
fa33b00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||
| --- | ||||||
| title: Think agents now use a @cloudflare/computer Workspace | ||||||
| description: Think and Agent Skills now work in a Workspace from @cloudflare/computer. @cloudflare/shell is deprecated. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| products: | ||||||
| - agents | ||||||
| - workers | ||||||
| date: 2026-10-14 | ||||||
| --- | ||||||
|
|
||||||
| import { TypeScriptExample } from "~/components"; | ||||||
|
|
||||||
| [Think](/agents/harnesses/think/) and [Agent Skills](/agents/runtime/execution/agent-skills/) now work in a `Workspace` from [`@cloudflare/computer`](https://github.com/cloudflare/computer). Think's built-in workspace tools are now Computer's tools. Add an execution backend to the Workspace and the model gets an `exec` tool. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| `@cloudflare/shell` is deprecated, and so is Think's `createExecuteTool`. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move this below the example to tie it in with the migration information. What's the maintainance status and timeline until it's unsupported? |
||||||
|
|
||||||
| <TypeScriptExample> | ||||||
|
|
||||||
| ```ts | ||||||
| import { Think } from "@cloudflare/think"; | ||||||
| import { Workspace } from "@cloudflare/computer"; | ||||||
| import { WorkerJavaScriptBackend } from "@cloudflare/computer/backends/worker-javascript"; | ||||||
|
|
||||||
| export class MyAgent extends Think<Env> { | ||||||
| override workspace = new Workspace({ | ||||||
| storage: this.ctx.storage, | ||||||
| backends: [ | ||||||
| new WorkerJavaScriptBackend({ id: "js", loader: this.env.LOADER }), | ||||||
| ], | ||||||
| }); | ||||||
| } | ||||||
| ``` | ||||||
|
|
||||||
| </TypeScriptExample> | ||||||
|
|
||||||
| ## Migrate your workspace data | ||||||
|
|
||||||
| This is a breaking change. Computer stores files in different tables from Shell, and there is no automatic data migration between workspace formats. To keep an existing workspace, copy its files with the script in [Migrating from `@cloudflare/shell` to `@cloudflare/computer`](https://github.com/cloudflare/agents/blob/main/docs/shell/migrating-to-computer.md). If you do not, your agent starts with an empty workspace. | ||||||
|
|
||||||
| For more information, refer to [Think tools](/agents/harnesses/think/tools/#built-in-workspace-tools). | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too much?