Repository navigation
The third release of Pithagoras, a self-hosted web portal for the pi coding agent. In 0.3.0 subagents are an extension that works in child chats: each subagent is a chat of its own under the chat that asked, under the guard and in the chat's mode, and the agent can list, message, stop and continue them. Extensions can make and run chats of their own, Docker for extensions gives an extension a network with no way out, Voice servers speaks with voices of your own, Media makes new pictures from reference pictures, and voice mode can show an extension's avatar. MCP servers run on pi's own MCP support as tool groups, tool_search replaces the tools gateway, the agent can read its old chats, a mode can set the temperature, a new portal starts with fewer extensions and asks which more you want, and the Sessions page deletes several chats at once. It covers everything from v0.2.0 on 23 October 2026 up to #388 merged on 23 November 2026, with this release's own pull request: 41 commits and 41 merged pull requests, 6 by @thecodacus, 33 by @Piggidragon, 1 by @andrewmk and 1 by @interested-user123.
Upgrade notes
Read these before deploying over an existing install. The Upgrading guide has a section for a portal at 0.2.0, one for each step below, and the steps for going back to 0.2.0.
The database and the first start
- The database goes from schema 11 to 16 in one start. It is checked, backed up as
backups/portal-v11-<date>-<time>.db, and upgraded in one transaction, behind the Upgrading page. 0.2.0 does not open the upgraded database: going back is putting that backup back, with the steps in the guide. A portal at 0.1.0 goes from schema 3 to 16 in one start, with 0.2.0's notes as well. - The subagent's settings move to its extension (#322, #326):
subagentMode,subagentMaxParallelandsubagentModelleave pi'ssettings.json(kept beside it assettings.json.bak), and what each chat said its subagents run on leaves the database. The extension takes both up as it starts. A subagent tool that was on stays on. - Chats can have a parent (#323, #327, #339): every existing chat stays one of its own, listed and attended. Nothing needs doing.
Things to change
- Reload open tabs after the upgrade.
- The subagent tool is an extension: switch it in Settings → Extensions and set it up under Extension settings → Subagents.
GET/PUT /api/features/subagentand/api/sessions/:id/subagent-modelanswer with a 307 to the extension's routes;PUT /api/features/subagentwithenabledandsubagentinGET /api/features/flagsare gone. A copy of the tool installed by hand from an old clone keeps its settings in pi's file, and the log says so: replace it with the one that comes with the portal. PI_SUBAGENT_BINandPI_SUBAGENT_GRACE_MSare no longer read (#328). One variable is new and optional:ROUTINE_RUN_TIMEOUT_MIN(#319).- MCP servers move to pi's own support, once, on the first start (#387):
pi-mcp-adapterleaves pi's packages, and the portal does not install it again. Every server inmcp.jsoncomes over on or off as it was, as an Auto tool group; the old file is kept asmcp.json.adapter(-2where one is there; readable only by you). Then:- Where the adapter was not installed, nothing read
mcp.jsonbefore, so its servers come over off: switch on the ones you want in Settings → MCP. Mark a server Direct (Settings → Tools) where you had its tools registered directly. - Tools are named
mcp__<server>__<tool>; switches on the old names, a bearer token (now anAuthorizationheader),includeTools/excludeTools(nowtoolExposure) andapproveTools(now the server's "calls that ask you first") are carried over. Where a list had the adapter'smcptool off, every server's tools are off by name instead, and a server whose tools were never listed comes over off, named in the log (Settings → Logs). - A server pi cannot take (a Unix socket,
$env:NAME,$or a leading!!inenvorheaders, a name with a dot,exposeResources: false, anoauthblock, an address ending in/sse) stays in the file, switched off and named in the log, until you write it in pi's words. pi speaks streamable HTTP only. imports,~/.config/mcp/mcp.json,~/.agents/mcp.jsonand a project's.mcp.jsonare not read any more: add those servers in Settings → MCP. A project's own.pi/mcp.jsonis read by pi in a trusted project.- If
mcp.jsoncannot be read (a comment, a trailing comma) nothing changes and the adapter stays until it can. - Going back to 0.2.0 needs the adapter installed again and
mcp.json.adapterput back. - The database schema does not change for it. See MCP runs on pi's own support.
- Where the adapter was not installed, nothing read
- Existing portals keep their extensions (#363): the shorter default list (Terminal, Files and the theme pack) uninstalls nothing, and a portal at 0.2.0 keeps Git, Canvases and Media. A portal coming straight from 0.1.0 starts with the three only: install Git, Canvases and Media from Settings → Extensions → Discover, or pick Developer or Creative in the setup assistant. The extensions a portal starts with says more.
What behaves differently
- Subagents run as child chats (#328), under the guard (and the sandbox, where it is on), held to the chat's tool switches and, by default, in the chat's mode (#330). Something a subagent could do before may now be refused or wait for you. A heartbeat has no
subagenttool any more. - The Subagents panel lists subagents only (#320): code mode, web search, fetch, deep research and MCP calls are no longer listed there. A dock side or width given to the panel starts at the default once.
- Lazy tools (#370): the model's lazy-tool tool is
tool_search, no longertools. What you had marked lazy stays lazy and everything else is Auto: where the model's list is over 3,000 tokens or 20 tools, the largest unmarked groups go behindtool_search(the browser and the subagent tool alone are over the limit). Settings → Tools says which, once; mark a group Direct to keep it, or set "Lazy above" to 0 to turn the limit off. A running chat keeps its tools until it starts again. The guard no longer takes a name startingmcp_for an MCP server's: a pi package that returns outside text under such a name needsguard: { outside: true }on the tool. See Lazy tools have three values and a threshold. - New tools in every chat (#385):
chat_list,chat_readandchat_searchshow in Settings → Tools and count in the tool-text size. A setup that pinned an exact tool list sees three more. - A Stop waits (#349) for the stopped run to settle, at most 10 seconds.
- pi-web-access (#388): the portal sets
toolActivationtoeagerin pi'sweb-search.jsononce (the rest of the file stays, and a value you set afterwards stands); it leaves a file withtoolExposure: "deferred"ortoolActivation: "none"and an unreadable one alone, and pi-web-access before 0.33.0 waits for an update. - A Voice container made before (#356, #360) keeps the CUDA 12.4.1 image: Settings → Docker warns about it, and Update moves it to 12.9.1 with its settings and models kept. The host driver must be recent enough for CUDA 12.9.
- Native installs with
BIN_DIRoutsideDATA_DIR: on the first start the sandbox writes its wrappers intoBIN_DIR(#379), and a chat that has read outside content is asked or refused when it writes there (#377). Docker installs are unchanged. - Docker for extensions 1.4.0 (#360; 1.3.0 in #315) refuses a container on another extension's network or on one nobody made, and one sharing the network of a container that is neither the extension's nor the portal's. Browser, Voice and Understory are not affected.
Known issues
- 0.2.0's known issues still hold, #43's macOS part among them.
- Nextcloud 0.1.1 cannot rewrite its MCP entries on 0.3.0: its
approveToolskey is refused now. The entries it made before keep working, with their approve migrated; Nextcloud 0.2.0 fixes it. - MCP:
portal.mcp.set(name, entry, { direct: true })sets Direct where the person chose Auto, and a server in a project's own.pi/mcp.jsonthat the adapter never listed is on where a list had MCP off (logged). - MCP OAuth is not supported (#372).
Subagents
- An extension of its own (#322, #326): its settings page, the Subagents panel, a chip in the running tray for each one at work, Watch on the call that started one, and the row in the model menu are all the
pithagoras-subagentextension's. - Child chats (#328): each subagent works in a chat of its own with its own transcript, shown in the panel, with Open as chat. With Keep subagent chats on, they are listed as sub-chats and the agent continues one by its id.
- The agent and its subagents (#321, #329): the tool says how many may run at once, and results say how many run and wait. The agent can message a subagent at work, and list and stop them with the new
subagentstool. - The chat's mode (#330): a subagent works in the mode of the chat it works for, code mode and your own modes included; Subagents work in the chat's mode switches it to Standard, which still never gets a tool the chat's mode switched off.
- Sub-chats (#327): listed under their chat in the sidebar, on the Sessions page and on the Agents page, folded until opened, with the chat marked when one of them works or waits for you. Deleting a chat deletes its sub-chats.
Tools and MCP
tool_searchreplaces thetoolsgateway (#370): one tool with search, describe and call reaches the lazy tools, and calls still go through the guard, approvals and switches. Every group is Auto, Lazy or Direct, and Auto turns a group lazy above 3,000 tokens or 20 tools. The tools and the system prompt do not change after a search or a call, so the prompt cache holds.- MCP on pi's own support (#387, #361): each server is a tool group like any other (on or off; Auto, Lazy or Direct in Settings → Tools), named
mcp__<server>__<tool>, and Settings → MCP writes pi's ownmcp.json. The guard attributes a call to its server, and an extension can have calls confirmed withportal.mcp.set(name, entry, { approve: [...] }). See the upgrade notes above. - Old chats for the agent (#385):
chat_list,chat_readandchat_searchread the chats in the agent's own home and projects, never another agent's. What they read is outside content for the guard. Switch them on per agent, project or chat; a colleague's or a heartbeat's chat does not get them by default. - Tools an extension no longer registers leave Settings → Tools (#388, #383): a chat that starts or reloads drops the remembered tools of extensions it loaded that they no longer register; switches are kept. pi-web-access's tools are made eager once (see the upgrade notes).
Chats and Sessions
- Delete several chats at once (#355, #286): Sessions → Select adds a checkbox to each chat, with Select all, Select none and Select older than 7, 30 or 90 days. Pinned and running chats are never taken by "older than"; sub-chats go with their parent.
- Temperature per mode (#362, #348): a mode you made can set the temperature (0 to 2, Settings → Modes); every request of a chat in that mode carries it, subagent chats included. Standard, Code and extension modes send none.
- Big questions fold (#366): a big question card folds down to its heading, and what you picked or typed is kept.
- A Stop settles (#349): a prompt sent right after a Stop, by a person or through
chats.abortandchats.prompt, gets its own answer.
Routines
- A run time limit per routine (#319, thanks to @interested-user123): a "Run time limit (minutes)" field on the routine's page, empty for the default, also in the API (
timeoutMin) and inroutine_create/routine_update.ROUTINE_RUN_TIMEOUT_MINsets the portal's default (60 minutes where unset).
Setup and extensions
- A new portal starts with Terminal, Files and the theme pack (#363, #304): Git, Canvases and Media are opt-in. The setup assistant has an Extensions step with presets (Minimal, Developer, Creative, Everything) or a choice by hand.
PORTAL_DEFAULT_EXTENSIONStakesoff, a preset or a list; a value that is none of these is refused whole and the default set is installed. - Official extensions in Discover (#368): Blender, Godot, Inline UI, Nextcloud, Office and Flair avatar install from npm in one click; the list is
extensions/official.json, so it works offline. - Docker for extensions 1.4.0 (#360, #357): its page warns when a container runs an older image than its extension wants, and Update moves it onto the wanted image, keeping volumes and network. Extension authors state it with
containers.wantImage. - Folder uploads and file sources in Files (#367): a folder button and dropped folders upload a whole tree. An extension that lists
pithagoras-filesinrequiresoroptionalcan register a file source (depend on Files^0.2.0).
Extensions and the extension API
- Chats from a server half (#323, #328, #339):
chats.createfor child chats,prompt,abort,removeandchildren;chats.startfor a chat of its own in an agent's home or a project;unattendedchats that ask nobody anything;tools: "defaults";chats.lastAnswer,chats.ownerandportal.http.person(req);newChatsonfolders.list();portal.chats.useEventsin the browser half. - New slots and pieces (#308, #326):
voice.avatar,chat.tray,chat.model.menu,headonchat.tool.action,ui.Transcript,ui.TrayChip,ui.Ring,ui.Shimmerandformat.elapsed. The subagent protocol is typed in@pithagoras/extension-api/server(#322). @pithagoras/extension-api0.3.0 is published with this release. Nothing of 0.2.0's interface was removed, andportal.versionstays 1.- Subagent protocol: an extension that runs subagents over it is drawn only while Subagents is on, and
subagent:v1:configis answered with{}, so the chat's choice of model is the extension's own to keep (#322, #326). - Docker for extensions 1.3.0 (#315):
networks.create,get,reachandremovegive an extension an internal network with no way out, which only the portal reaches. Needs Docker Engine 28.0 or later.
Voice and media
- Avatars from extensions (#308): an extension can draw the agent in voice mode in place of the orb, chosen per agent under Shown as in the Avatar dialog; the orb comes back wherever the avatar cannot be drawn.
- Custom voices in Voice servers (#317): designed voices and clones for a self-hosted Breeze-TTS-2 or Chatterbox, through audio.cpp or their own servers. Off until switched on; while off, requests are what they were.
- Reference pictures in Media (#334):
generate_imageand the Media page make a new picture with 1–8 reference pictures, through the editing endpoint, starting from noise where Stable Diffusion extra settings are on.
Fixes
- Chat (#351, #353): a running command's output preview fills from the top, and the copy and download buttons on a code block work again, with line numbers back.
- Files (#354): the open file shows a change made outside the panel within about 3 seconds.
- Scrolling (#352, #310): text no longer wobbles while scrolling at a fractional display scale such as 125 %. A scrolling box of an extension's own needs an opaque background or the
scroll-steadyclass. - Providers (#381): the check mark beside a provider's key stays centred.
- Guard and sandbox (#377, #379): on native installs the bin folder rules follow
BIN_DIR, not alwaysDATA_DIR/bin. - Documents (#340): the markers in a document's margin are placed again when the window's width changes, and a deletion that was cut off no longer takes a new file of the same name for the old one.
- Newer GPUs for Voice (#356, thanks to @andrewmk): the voice service runs on CUDA 12.9.1, so it builds for RTX 50-series cards.
- Browser (#335): in voice mode the browser's window opens at the side when it is the only one, and in the middle when the conversation or the pictures have the side.
Deploying
- Pin this release with
PITHAGORAS_VERSION=0.3.0in the Portainer stack,git checkout v0.3.0for docker-compose.yml, or the imageghcr.io/thecodacus/pithagoras:0.3.0.
Contributors
Thanks to @andrewmk for newer GPUs in Voice (#356) and to @interested-user123 for the routine run time limit (#319), and to @thecodacus for avatars from extensions (#308), Docker for extensions' own networks (#315), custom voices (#317), reference pictures in Media (#334), the browser's voice window (#335) and releases that run on their own when a version is merged (#342), and to @Piggidragon, who wrote 33 of the 41 pull requests in this release: the subagents series (#320 to #330), the extension API for chats nobody attends (#339), MCP on pi's own support and tool_search (#370, #387), the old-chats tools (#385), the setup presets (#363), the fixes and steadier tests, and this release.