Skip to content

codemode sdk rewrite#879

Draft
mattzcarey wants to merge 3 commits intomainfrom
feat-remove-llm-codemode
Draft

codemode sdk rewrite#879
mattzcarey wants to merge 3 commits intomainfrom
feat-remove-llm-codemode

Conversation

@mattzcarey
Copy link
Contributor

WIP:

  • remove LLM call in codemode
  • Moving from using a separate service to using globalOutbound to intercept tool calls.
  • TODO: executor interface to allow other forms of sandbox execution.

- Rename createCodeTool to experimental_createCodeTool
- Add proxy-based architecture for tool execution in sandbox
- globalOutbound must be WorkerEntrypoint for service binding
- Tools now use ToolDescriptors with execute functions
- Deprecate experimental_codemode (internal LLM call) in /ai subpath
- Add tests for proxy-based implementation
- Update example to use new API
…ai.ts

- Remove proxy pattern entirely - tool calls now use codemode:// protocol
  intercepted via globalOutbound created internally by experimental_createCodeTool
- Delete ai.ts (experimental_codemode) - no longer needed
- Delete proxy.ts - replaced by simpler globalOutbound approach
- Add optional onFetch callback for filtering non-tool network requests
- Simplify example: no more service bindings, globalOutbound class, or callTool method
- Remove @ai-sdk/openai peer dependency and /ai export path
@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2026

⚠️ No Changeset found

Latest commit: 5b47726

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant