Pi Agent Harness

Lightweight extensible coding agent harness (Pi) supporting custom tools and multiple model providers.

2026.11.25

pi 1.6.1 expands codemode decision models and fixes session and tool reliability

pi 1.6.1 lets codemode models.classify() call GitHub Copilot's gpt-6-luna-decisions and Radius decision models and return responseId; OpenRouter System One supplies its generation ID and replaces the catalog estimate with billed cost. The release splits notice settings, extends Gemini strict-tool and provider-error hooks, and fixes large-session loading, Windows child-process shutdown, MCP requests and several model compatibility issues.

  • codemode models.classify() adds GitHub Copilot gpt-6-luna-decisions and Radius decision models, with responseId in the result.
  • OpenRouter System One sets responseId to its generation ID and replaces the catalog estimate with billed cost.
  • showCacheMissNotices splits into notices.cacheMisses, notices.cacheWarming, notices.compactionCosts and notices.reasoningDrops; the old getter/setter are removed in favor of getNotices() and setNotice().
  • Adds compat.supportsStrictMode for google-generative-ai and google-vertex models and fixes strict tools, tool-call IDs and images in function responses for vendor-prefixed Gemini 3+ model IDs.
  • after_provider_response now fires for HTTP 4xx/5xx responses and every retried attempt, extending to OpenAI, Azure OpenAI, Anthropic and Google models.
  • Key fixes cover sessions with about 120,000 or more entries after compaction, Windows SIGHUP/taskkill handling, MCP string request IDs and large events, GPT-6.2 prefix_mismatch, and retries for temporary provider failures.
New featureAPICompatibilityCritical fix
2026.11.20

Pi 1.6.0 makes GPT-6.2 Sol the default and expands Qwen Token Plan models

Pi 1.6.0 adds GPT-6.2 Astra and GPT-6.2 Sol to the openai, azure, and openai-codex providers, with Sol now the default for all three. Azure serves a 1.05M context window; Codex serves GPT-6.2 Sol with 500K and Astra with 272K. Both models reject reasoning effort none and minimal, so thinking level off is unavailable. The Qwen Token Plan Individual providers gain qwen4-max-preview and deepseek-v4.1-flash (plus the 1017 snapshot) with per-plan key variables. Extension components' render() now returns readonly string[], a breaking change requiring extensions to copy before mutating output.

  • GPT-6.2 Astra and Sol join the openai, azure, and openai-codex providers, with Sol as the default.
  • Azure serves a 1.05M context window; Codex serves Sol with 500K and Astra with 272K.
  • Both models reject none/minimal reasoning effort; thinking level off is unavailable.
  • Qwen Token Plan Individual gains qwen4-max-preview and deepseek-v4.1-flash (plus the 1017 snapshot).
  • Breaking change: extension render() returns readonly string[]; in-place mutation requires copying first.
AvailabilityCompatibility
2026.11.09

Pi 1.5.1 adds idle cache warming and Anthropic message threads

Pi 1.5.1 adds pi auth login/logout for signing in without starting a session, idle prompt cache warming that keeps eligible caches warm for up to 30 minutes when a refresh is expected to pay for itself, and Anthropic message threads that send only new messages with a full-request fallback. It also adds richer Mermaid diagrams and GitHub Copilot classifier calls. Breaking changes: custom GrepOperations.readFile callbacks no longer handle context lines, and disabled tools no longer send an empty tools array.

  • pi auth login/logout works without starting a session.
  • Idle cache warming lasts up to 30 minutes, timed from the model's cache TTL.
  • GitHub Copilot classifiers are callable for typed decisions.
New featureCompatibilityCapabilities
2026.11.02

Pi 1.5.0 adds GPT-6.1 Terra and faster streaming

Pi 1.5.0 shows changelogs after extension updates, incrementally parses large tool calls for faster streaming, supports custom self-update commands, and adds GPT-6.1 Terra through OpenAI, Azure OpenAI Responses and OpenAI Codex, where Codex offers a 500K context window. Tool argument validation now runs on pi-schema, a breaking change.

  • Extension update changelogs are shown after updates.
  • Large tool calls are parsed incrementally and rendering work is reused.
  • GPT-6.1 Terra support; tool validation moves to pi-schema.
New featureCompatibility
2026.10.21

Pi 1.4.0 adds image classification and fixes summaries and concurrency

codemode models.classify() accepts images for TypeSafe Jev and Cloudflare Clef. Compaction and branch summaries now use the model output limit rather than a fixed cap, and concurrent scripts wait for a free worker.

  • Adds MiniMax M3.1 Flash and updates defaults affected by retired models.
  • PI_CODEMODE_MAX_WORKERS adjusts worker capacity; default is two, with up to 60 seconds waiting.
New featureCompatibilityCritical fix
2026.10.15

Pi 1.3.0 preserves thinking-change caches and updates provider protocols

GPT-6 API-key sessions preserve prompt caches when thinking levels change. Kimi Code moves to Chat Completions so adding tools mid-conversation no longer invalidates the cache.

  • Kimi models.json base URL overrides must include /v1; OpenCode Go uses new inference endpoints and adds Google protocol support.
  • Resume restores active tools; fixes Code Mode cancellation and worker accumulation, and corrects Codex Sol context from 272K to 500K.
New featureCritical fix
2026.10.12

Pi 1.2.0: per-key OpenRouter catalogs and extension-run changes

Pi 1.2.0 loads OpenRouter catalogs according to key permissions, regions and limits, publishes configuration schemas, and runs before_agent_start for extension-triggered turns, requiring extension migration.

  • Catalogs use /models/user with key-specific context, output and pricing; saved lists work offline.
  • before_agent_start distinguishes user / custom messageType; the theme schema moves to pi.dev/schemas/theme.schema.json.
  • Fixes canceled MCP calls being sent after OAuth refresh, accepting unverifiable issuers, and interruptions during long generation.
New featureCompatibilityCritical fix
2026.10.07

Pi 1.1.0 adds Haiku 5.5, image classification and program status

Pi adds Claude Haiku 5.5, enables GPT-6 Luna image classification through the Decisions API, and reports run status to compatible terminals.

  • Adds native support for specified decision models on llama.cpp 0.6.0+; these models are listed only as classifiers.
  • Fixes MCP OAuth cancellation and timeouts, Bedrock reasoning levels and long-prompt cost accounting.
New featureCompatibilityCritical fix
2026.10.05

Pi 1.0.4 adds tool patterns and per-run MCP disabling, fixes images and OAuth

Pi 1.0.4 adds * patterns to --tools and --exclude-tools and --no-mcp to disable MCP for one run, while fixing --tools unexpectedly removing MCP tools. Codemode can obtain image blocks with tools.read(), and MCP OAuth compatibility is fixed for servers using OpenID Connect client registration.

  • --tools retains MCP tools unless an entry starts with mcp__.
  • Reading an image returns an image block that image() can display.
  • MCP OAuth registers as a native client; shutdown fixes prevent transports remaining open while connection is still pending.
New featureCompatibilityCritical fix

Pi 1.0.3 adds Azure Foundry Chat Completions and requires Azure config migration

Pi 1.0.3 adds Foundry Chat Completions deployments to its Azure provider, starting with azure/deepseek-v4-pro. The provider is renamed from azure-openai-responses to azure, requiring migration of authentication and model settings. It also fixes subscription logins failing when a request is cancelled during OAuth refresh.

  • Rename the provider in auth.json, models.json and settings.json, or run /login again; AZURE_OPENAI_* environment variables are unchanged.
  • Resumed sessions using the old provider fall back to another model without reusing their previous prompt cache.
  • Codemode image() also writes images to temporary files and returns their paths; generated output files are readable only by the user.
New featureCompatibilityCritical fix
2026.10.03

Pi 1.0.2 adds sampling parameters by thinking level

Pi adds samplingParamsByThinkingLevel in models.json, allowing sampling parameters such as temperature and top_p to be overridden by thinking level for OpenAI-compatible APIs.

  • Set sampling parameters separately for each thinking level.
  • The feature applies to OpenAI-compatible APIs.
New feature

Pi 1.0.1 adds project MCP overrides and OAuth registration support

Pi adds project overrides for user-level MCP servers through .pi/mcp.json and /mcp, CIMD OAuth client registration, and Nix installation. It also fixes turns ending on model-capacity errors, codemode output loops exhausting memory, and failures with several providers.

  • Projects can override MCP server enablement and tool exposure; CIMD identifies clients by their metadata document URL.
  • Adds Nix installation and custom tool renderers.
  • Fixes capacity-error retries, codemode output memory exhaustion, and Bedrock Claude signature failures.
New featureCompatibilityCritical fix
2026.10.01

Pi 1.0.0: a full-screen interface by default and stricter MCP OAuth checks

Pi’s stable 1.0 release enables a full-screen terminal interface by default and adds image generation in scripts, Radius login and stricter MCP OAuth verification.

  • The full-screen TUI becomes the default; the regular interface remains available.
  • Adds models.generateImages and support for Radius login and MCP.
  • MCP OAuth checks the issuer identifier defined in RFC 9207 and handles credentials and scopes according to server steps.
New featureCritical fix
2026.09.30

Pi 0.99.2: lazy MCP loading no longer blocks the first prompt

Pi improves MCP tool loading in the default codemode and expands authentication and provider compatibility.

  • MCP tools load lazily, so the first prompt does not have to wait for all tools to be ready.
  • Adds searchTools and describeNamespace for tool discovery.
  • Supports Anthropic workload identity federation configuration; improves MCP scopes and provider retries.
New featureCompatibility