Repository navigation
[Agents] Move Code Mode to a concept and a Runtime section - #34745
Draft
mattzcarey wants to merge 1 commit into
Draft
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit into
Conversation
Contributor
|
This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:
|
Contributor
|
CI run failed: build logs |
Contributor
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-agents-codemode-concepts.previews.developers.cloudflare.com (commit 9850590)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
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.
Code Mode moves out of Tools. A new concept page,
/agents/concepts/code-mode/, explains why we let models write code. A new Runtime section,/agents/runtime/code-mode/, lists the ways to run that code. The ninetools/codemode/*guides and the Code Mode MCP server guide are removed, with redirects.flowchart LR Model["Model writes code"] -->|"exec"| Computer["@cloudflare/computer<br/>Workspace, codemode:* modules"] Computer --> Exec["@cloudflare/codemode<br/>WorkerJavaScriptBackend"] Exec --> DW["Dynamic Worker"]@cloudflare/codemodenow holds only the executor, and the old API is frozen (cloudflare/agents#2609). Computer runs code on that executor, and tools reach the code ascodemode:*modules (cloudflare/computer#283). The docs now follow that split:search/execute, linking tocloudflare/mcpand thecodemode-mcp-openapiexample.skills/execution), and a legacy page that maps each frozen export to its replacement.ws:becomescodemode:in the Computer and Think pages. The human-in-the-loop Code Mode section now usesctx.interrupt()in place of the legacy durable runtime. Links in Sandbox, Dynamic Workers, Worker Loader, MCP portals and AI Search now point to the new pages.Merge this after cloudflare/agents#2609 and cloudflare/computer#283 are released. The legacy page links to
docs/codemode/legacy*.md, which only exist once #2609 lands.astro buildpasses,bin/validate-redirects.tspasses, and every internal link and anchor in the changed files resolves indist.