← Wednesday, October 7, 2026AgentsDeep dive

Pi adds MCP support through its code-first Codemode approach

lucumr.pocoo.org 16 min read Editor score 7/10

The author contrasts supplied tool definitions with composing calls through scripts and CLI, and says Pi 1.0 adds MCP support via Codemode. The design choices matter to engineers shaping agent tool interfaces and context use.

What
Pi adds MCP support through Codemode, a code-first way for an LLM to orchestrate complex operations on the harness side.
How
Codemode runs in the harness in QuickJS within a WASM runtime, with no network or file system and limited RAM; it can call tools.
Why it matters
Separating harness-side orchestration from the execution environment matters when tools and the harness run on different file systems and have different trust levels.
expresses ope… runs in contains calls LLM Codemode harness tools WASM runtime
Codemode runs within the harness and calls tools on behalf of the LLM. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.