# Pi 1.0 adds Codemode for composing AI tool calls

_Published Wednesday, October 7, 2026 at 6:18 AM EDT · AI · Latest · Tier 2 — Notable_

![Pi 1.0 adds Codemode for composing AI tool calls — Primary](https://lucumr.pocoo.org/social/2026-10-06-codemode-social.png)

Pi 1.0 has added MCP support through Codemode, which lets an AI agent compose tool calls in JavaScript, according to the developer's blog. Agents can run concurrent operations, process tool responses and save data for later calls without sending every intermediate result through the model's context.

Codemode also exposes internal APIs for image generation and text classification that are unavailable as regular tools. It runs within the agent's controlling software, separately from the environment where commands execute, using QuickJS inside a WASM runtime. Its sandbox has no network, file system or timers, and limits memory. Codemode is enabled by default only when MCP is enabled.

## Sources

- [lucumr.pocoo.org](https://lucumr.pocoo.org/2026/10/6/codemode/)

---
Canonical: https://techandbusiness.org/newswire/7-t4O6Ot6tiBi541eZuLel
Published: 2026-10-07T10:18:29.217Z
Story chronology: 2026-10-06T04:00:00.000Z
Retrieved: 2026-10-07T13:14:57.855Z
Publisher: Tech & Business (techandbusiness.org)
