aiagent.club
中文
GitHub

code-mode

#648 of 964 in the AI Agent Index

9 Score
Real usage
Momentum
Attention
37

About

🤖 Code-Mode Library: First library for tool calls via code execution

Transform your AI agents from clunky tool callers into efficient code executors — in just 3 lines.

LLMs excel at writing code but struggle with tool calls. Instead of exposing hundreds of tools directly, give them ONE tool that executes TypeScript code with access to your entire toolkit.

Apple, Cloudflare, and Anthropic say that Code-Mode is a more efficient way to approach tool calling compared to the traditional dump function information and then extract a JSON for function calling.

Independent Python benchmark study validates the performance claims with $9,536/year cost savings at 1,000 scenarios/day:

Batching…

Across sources

1.5k Stars
  • Stars 1.5k
  • Forks 98
  • Commits 85
  • Releases 2