code-mode
Code-Mode is a library from the Universal Tool Calling Protocol project that replaces direct tool calls with code execution. Its argument is that LLMs are better at writing code than at making many tool calls, so instead of exposing hundreds of tools you give the model one tool that runs TypeScript with access to your whole toolkit. The README cites Apple, Cloudflare and Anthropic writing about the same pattern and presents a benchmark table (67% faster on simple scenarios, 75% on medium) from an independent Python benchmark study, with a claimed annual cost saving at 1,000 scenarios a day. Those figures come from that study and depend on workload.
Usage is three lines: create a `CodeModeUtcpClient`, register a tool manual (for example an MCP config for GitHub), and call `callToolChain` with a TypeScript snippet that chains several operations, such as fetching a pull request, its comments and reviews, and returning a summary. It offers progressive tool discovery with `searchTools` so the agent loads only what it needs, and auto-generates TypeScript interfaces for each tool. The README lists secure Node.js VM sandboxing and timeout protection. The package is `@utcp/code-mode` on npm and the license is MPL-2.0.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-08-25
- Commits, last 90 days
- 4
- Releases, last 90 days
- 0
- Latest release
- v1.0.6 (2025-11-23)
- Open issues
- 5
- Recent issues with at least one comment
- 26/29
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Most discussed open issues
- #8 JSON schema issue4 comments · 2025-11-19
- #19 How to integrate Serena MCP tools?2 comments · 2025-12-01
- #17 Claude Code recently released this beta features, what's your thought about it?2 comments · 2025-11-30
- #49 register_manual returns resolved secrets (substituted variables) to the MCP client0 comments · 2026-10-23
- #48 Allow isolated-vm 7.0.1+ for Node 26 support0 comments · 2026-09-18
Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.
Compatibility
Quick start
Use cases
Alternatives
Comments
No comments yet. Be the first!