Back to directory

Code-Mode

A library that lets AI agents call MCP and UTCP tools by writing and executing code instead of making individual tool calls, reducing the round trips needed for multi-step tasks.

Code-Mode

Code-Mode gives an AI agent one tool that executes TypeScript code with access to a registered toolkit, instead of exposing many individual tools directly. An agent can register a tool manual, such as an MCP server, discover relevant tools by searching rather than loading every definition, and then call a chain of tools from a single generated code block.

Generated code runs inside a Node.js VM sandbox with timeout protection, and TypeScript interfaces for each tool's inputs are generated automatically. The library is written in TypeScript and licensed under MPL-2.0.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.