piagent_
← /news
Aug 11, 2026community

pi subagent extension now inherits the current session's model and thinking level

Pi’s bundled subagent extension, shipped as an example under packages/coding-agent/examples/extensions/subagent, previously read its model and thinking level from the most recently modified session-wide config. In a workflow with several open sessions, that meant a subagent would silently pick up whichever session last touched the settings rather than the session that actually called it.

Pull request #7897, opened by external contributor Dustin Spicuzza (virtuald) and merged by Mario Zechner (badlogic) on August 11, 2026, fixes the precedence so subagents inherit the model and thinking level of the current session. The PR body captures the rationale: “I prefer the subagents to follow the current model/thinking instead of specifying them explicitly. Currently, if I have several sessions open the subagent will follow whatever the last model/thinking level that an arbitrary session set, which isn’t very intuitive.”

The patch adds 21 lines and removes 3 in subagent/index.ts, plus a 2-line README update that documents the new precedence. The author disclosed AI assistance in the PR body: “My clanker wrote this, but it seems straightforward enough, and I tested it and it seemed to work.” The merge landed on main as commit e3798ca on August 11, 2026.

It is not the first external contribution through pi’s auto-close approval workflow — the public PR record shows multiple non-maintainer merges between August 7 and August 11, 2026 (including the trailing-newline fix by distributedlock in PR #7887 on August 10, plus work by terrorobe, Maximo-Guk, midastruth, mitsuhiko, yearth, muyiyr, and others). PR #7897 is noteworthy not as a milestone but because it is the first example we have seen of the auto-close loop resolving on a behavioral change to a bundled extension rather than a string-formatting or documentation fix.

No public release has yet shipped the change; users running v0.84.1 still see the old behavior, and the fix will arrive in the next pi release that includes it.

source: https://github.com/earendil-works/pi/pull/7897