Pi 1.6.1 adds GitHub Copilot's gpt-6-luna-decisions model to codemode
Pi 1.6.1 lets codemode call GitHub Copilot's gpt-6-luna-decisions and Radius decision models through classify(), with a responseId in results.
Pi 1.6.1 lets codemode scripts call two new kinds of model that are not LLMs: GitHub Copilot's gpt-6-luna-decisions, and decision models on the Radius provider. Both are reached through models.classify(). The release notes say the Copilot model accepts text and images. Classify results now also carry a responseId, which the codemode documentation defines as a provider-specific response ID, such as OpenRouter's generation ID.
Codemode is the part of Pi that lets the model write a JavaScript script that calls Pi's tools and models. Only the script's output goes back to the model. Decision models, according to the codemode documentation, are classifier-type models that answer typed questions about JSON state. A call passes a state object and a set of questions. Each question is of type choice, score or bool and carries plain-language criteria. One call answers all the questions. The result holds answers keyed by question ID, along with stopReason, which can be stop, error or aborted, and an optional usage block with a cost in USD. The documentation says these calls do not throw on provider errors, so a script has to check stopReason and errorMessage itself.
The Copilot addition came out of an issue filed on November 22, 2026, by a user, dylbarne, who said codemode did not work with a business Copilot login. That user reported that models.getAvailableOfType("classifier", "github-copilot") returned microsoft-decision-1, but every call to it failed with HTTP 400. According to the issue, the Business account's /models catalog listed only gpt-6-luna-decisions, and that model worked with Pi's existing Copilot login. The issue also said earlier work adding microsoft-decision-1 appeared to have been tested only on Copilot Enterprise. The fix, merged as pull request 12495 and closed on November 24, makes gpt-6-luna-decisions a github-copilot classifier that accepts text and images. It also makes login and token refresh record only the decision models in the account's Copilot catalog.
The release notes list that catalog filter as a fix, but the issue thread shows its limits. The fixing collaborator wrote that credentials saved before the update keep listing both classifiers until the next token refresh. Setting COPILOT_GITHUB_TOKEN also keeps both listed. The change was verified on an Enterprise seat, where both models are in the catalog and both classify. It was not verified on a Business seat. The same comment flagged a separate failure: System One rejects a choice question with an empty criterion description with the same 400 error, which the collaborator labeled upstream_request_rejected. That comment is marked as AI-generated.
The release notes say OpenRouter's System One fills the field with its generation ID, and that its billed cost replaces the catalog estimate. The codemode documentation describes the field as provider-specific and present only when reported. The release also changes dialogs. ctx.ui.select(), ctx.ui.confirm() and ctx.ui.input() now accept a blockedKind option, which sets the program status kind reported to terminals, such as "permission" for a select that approves an action. This change is separate from the model support and is listed under New Features in the same release.
The release also carries a breaking change to settings. The showCacheMissNotices setting is replaced by four settings: notices.cacheMisses, notices.cacheWarming, notices.compactionCosts and notices.reasoningDrops. An existing value is migrated to all four. Pi's release notes also change the default Mistral model, from devstral-medium-latest to mistral-medium-latest, because Mistral retired Devstral and the catalog no longer lists it.
What changed
Pi 1.6.1 lets codemode call GitHub Copilot's gpt-6-luna-decisions and Radius decision models through models.classify().
Type: New capability · Applies to: gpt-6-luna-decisions, Radius decision models
Why it matters
Teams that route classification work through Pi can now use Copilot and Radius decision models, but availability depends on the plan attached to each account.
What you can do
If you use Pi with GitHub Copilot, check which decision models are listed for your account after updating, before building classification steps on them.
Original source
- github.comRelease v1.6.1 · earendil-works/pi · GitHub
- github.compi/packages/coding-agent/docs/codemode.md at v1.6.1 · earendil-works/pi · GitHub
- github.comAdd gpt-6-luna-decisions model to github-copilot login subscription, filter classifier models by account availability · Issue #12395 · earendil-works/pi · GitHu
Where we saw it
Pi releases
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works