The Pi 1.0 coding agent makes Codemode less expensive in prompt tokens: Earendil’s official launch notes, dated October 1, 2026, report about 40% fewer prompt tokens, with a GPT-5.6 request falling from about 5,300 to 3,300 tokens when the default tools and Codemode are active. The release also makes the terminal interface fullscreen by default and adds image generation inside Codemode. Its clearest benefit is a smaller tool-description overhead, rather than a demonstrated reduction in the total cost of completing a coding task.
Don't miss new tech stories on Google
Add Tech Insider once in the Google app and our stories appear in your news suggestions.
The prompt reduction comes from leaner tool descriptions
According to the launch notes, Pi shortened the descriptions that accompany Codemode requests. Script globals receive compact descriptions, and the model reads the models API reference when it needs that detail. Tool descriptions explain the call and its return value without repeating the full declaration. The system prompt’s Codemode guidance and MCP server section are shorter too.
| Published request configuration | Before the change | Pi 1.0 |
|---|---|---|
| GPT-5.6, default tools, Codemode active | About 5,300 prompt tokens | About 3,300 prompt tokens |
| Reported prompt-token reduction | Baseline | About 40% |
This is a useful optimization because it targets material that explains how the agent should operate. We think the change gives developers a concrete reason to examine the agent software as well as the model: an integration can carry unnecessary descriptive overhead even before the model starts solving the task. The published result supports that narrower efficiency claim, not a universal discount on every session.
MCP and virtual models were already in the preview
The preview release notes date Codemode, tool search and built-in Model Context Protocol support to September 29, 2026, in Pi 0.99.0. Codemode runs model-written JavaScript in a QuickJS sandbox and uses it to call Pi tools. Tool search finds capabilities that have not yet been declared to the model and makes them available.
That distinction matters for understanding the release. Codemode changes how the model composes calls; tool search changes when it learns about available tools. The launch’s shorter descriptions refine that machinery. They are separate from the initial addition of MCP connectivity.
| Capability | Release documented by Pi | Behavior |
|---|---|---|
| Codemode and MCP | 0.99.0 | JavaScript tool orchestration and built-in MCP connections |
| Virtual models | 0.99.0 | Experimental per-request choice of physical model and thinking level |
| Leaner Codemode | 1.0.0 | Shorter prompt descriptions and recovery guidance |
| Fullscreen interface | 1.0.0 | Fullscreen becomes the default terminal mode |
| Image generation in Codemode | 1.0.0 | Scripts call image models using session credentials |
The preview notes describe MCP servers using stdio or streamable HTTP, with OAuth support. Configuration can be global or project-specific once the project is trusted. Experimental virtual models let an extension choose the underlying model and thinking level for each request. Pi displays the routed model in the footer and lists spending by physical model in /session. For developers building routing logic, that gives the selection policy a visible cost trail.
Fullscreen and image generation change the session
Pi’s launch notes make fullscreen the default, but retain the terminal’s normal scrollback through tuiMode: "regular" or --tui-mode regular. The regular mode preserves a familiar terminal workflow. For a comparison of alternative terminal assistants, see our Codex and Claude Code comparison.
The same notes add models.generateImages() to Codemode. Image requests use the session’s credentials, return image blocks that scripts can attach to results, and contribute usage to the session cost. This extends what a script can produce within the session; image generation is an additional operation to account for when assessing spending.
Recovery behavior also received attention. The launch notes describe errors that suggest nearby tool names and show the expected argument shape for malformed model calls. They also record a fix for deferred MCP tools disappearing after resume or reload, plus separation of MCP OAuth credentials by server name and URL. Those changes address practical continuity: retaining the connected tools and choosing the intended server account.
The open harness and the durable runtime
Earendil’s launch announcement confirms that Pi and Pi Durable are MIT-licensed. It introduces Pi Durable as a separate experimental package for long-running agentic applications, extending the project beyond the coding agent and terminal. The official repository lists it as a runtime for conversations, tasks and documents. Developers evaluating a terminal assistant and developers embedding a durable runtime should therefore start with the relevant package rather than treating the names as interchangeable.
The Pi project homepage advertises more than 15 providers, including Anthropic, OpenAI, Google, Bedrock, OpenRouter and Ollama. It supports API-key or OAuth authentication and model switching during a session through /model. That provider choice is a different decision from choosing an open coding model such as JetBrains Mellum: Pi supplies the surrounding agent workflow.
Tech Insider sees that separation as the release’s broader value. A team can make decisions about tool exposure, routing and session behavior in the agent software. The smaller prompt example is a tangible result of changing the orchestration, while the model choice remains explicit.
Embedding Pi requires an explicit tool setup
For a terminal installation, the repository documents npm install -g --ignore-scripts @earendil-works/pi-coding-agent. Its current requirements specify Node.js 22.19 or newer. Start pi in the intended project directory, then use /login inside Pi to configure the provider subscription or API key.
For applications, the official SDK documentation describes embedding Pi in Node.js or Bun. It exposes sessions, models and tools through TypeScript, but the SDK does not automatically load the CLI’s Codemode, tool-search and MCP extensions. The documented integration sequence is:
- Add
createCodemodeExtension(),createToolSearchExtension()andcreateMcpExtension()to theDefaultResourceLoaderextension factories. - Activate Codemode and tool search through
defaultTools, or let the MCP extension activate them for the corresponding server exposure settings. - Call
session.bindExtensions()so MCP servers connect through the session-start lifecycle. - Dispose of the session with
session.dispose()when finished, which aborts active work and removes its event listeners.
The SDK reference says sessions persist by default and retain branches in the session tree. That is useful for application history, but the choice to use the separately listed Pi Durable package is still an architectural decision.
The repository also explicitly says Pi has no built-in permission system restricting filesystem, process, network or credential access: it runs with the permissions of its launching user and process. Its recommendation is containerization or sandboxing when stronger boundaries are needed. Codemode’s JavaScript sandbox should therefore be evaluated separately from the permissions granted to the Pi process. Readers comparing editor-based alternatives can consult our Copilot agent sandbox guide for that product’s setup.
Where the release earns its place
We think Pi’s launch is most persuasive as an improvement to controllable agent infrastructure. The release provides a concrete prompt-size example, while its preceding preview supplies tool discovery and per-request model routing. Together, those features give developers specific parts of the agent workflow to inspect and configure.
When judging whether to adopt it, prioritize a useful completed change alongside the session’s usage record. Our coverage of coding-agent output and software delivery addresses that distinction. Pi’s leaner prompt is worth having; whether it improves a particular development workflow depends on the work the resulting agent completes.



