Repository navigation
Releases
1.10.2
Requirements unchanged (Node >= 22.19). Nothing breaks: this release fixes the status line after a model switch.
Fixes
- The status line no longer keeps the
rate_limitswindows of the previous provider after switching to a model of another provider. The 5-hour and 7-day windows come only from Anthropic response headers, so after a switch to, for example, an OpenAI Codex model the last Anthropic numbers stayed on screen for the rest of the session. A switch between models of the same provider keeps them. (#480, thanks @przadka-agents)
Internal
- @types/node follows the lowest supported Node, and Dependabot holds its major and minor updates until the engines floor moves. (#477, #481)
- Dependabot version updates wait 7 days;
dependabot.ymlis audited in CI. (#476) - CI workflow hardening, provenance verification on the Node 24 legs, and unified community files. (#473, #474, #475)
1.10.1
Requirements unchanged (Node >= 22.19). Nothing changes for you: this release only restructures code to resolve SonarCloud findings, with no change in behaviour.
Internal
- Nested ternaries and nested template literals rewritten as statements and locals; three helpers in the question form moved to module scope; two global-regex replacements now use
replaceAllwith a string literal. (#471)
1.10.0
Requirements unchanged (Node >= 22.19). Two discovery changes are visible; both now match Claude Code.
What changes for you
- Claude's account-synced skills are no longer listed as personal skills. pi-code handed the whole
~/.claude/skillsfolder to pi, which imported Claude's synced cache inskills/synced/recursively: every account bucket on the machine, under bare names. Claude Code skips that folder in its personal scan, and pi-code now does too; a personal skill that links into the cache still loads. Claude Code loads the current account's synced skills separately asanthropic-skills:<name>, which pi-code does not yet do. To keep one, add itsSKILL.mdto pi'sskillssetting. (#458) - Plugins from a local marketplace load from the marketplace itself. For a marketplace added with
claude plugin marketplace add <directory>or<path>/marketplace.json, a plugin with a relative./entry loaded from the copy cached at install time, so source edits stayed invisible untilclaude plugin update. It now loads from the source after/reload, as in Claude Code. The plugin must still be installed; when the marketplace is gone or no longer lists it, it does not load rather than falling back to the cached copy. Remote entries keep loading from the cache. (#465, #466)
Added
/todos-widget off|compact|full.compactshows the todo counts and the active task on one line,offhides the widget,full(the default) is the existing panel. The choice lasts until reload, new session, resume or fork. It needs the terminal UI. Claude Code collapses its list withCtrl+Tinstead. (#459, #468)
Fixed
- A met
/goalno longer stays active after a long verdict. The evaluator andtype: prompthooks requested at most 512 output tokens; a reason quoting the transcript at length was cut off mid-JSON, reported as an unreadable verdict, and left the session idle with the goal active. Both now get the model's own output limit, as in Claude Code. A model without a declared limit, such as a virtual model, gets the completion default instead of a cap of 0. (#464, #467) - The question form shows which answer is confirmed. Revisiting a question focuses its first row, and the confirmed option shows a green label and ✔ (kept on rows wider than the form); a confirmed typed answer keeps its ✔ while it is edited. Text typed in the free-text row stays when an option is confirmed and is not sent. (#461, #469)
Dependencies
- pi 1.5.0 → 1.5.2, Biome 2.6.8, knip 6.45.1, typebox 1.4.7. (#463)
1.9.0
Requirements unchanged (Node >= 22.19). Nothing breaks: no setting, payload or command changes meaning.
Added
- "Chat about this" in the question form. A row below the options on every question ends the call and sends the model Claude Code's clarify text, listing each question with the answer Submit would send. Down at the bottom of a question now stops on this row. Claude Code returns the text as a rejected tool call behind its rejection preamble; pi-code sends the clarify text alone. The RPC fallback has no such row. (#454)
Fixed
- The context of a SessionStart hook with matcher
compactreaches the model at the compaction, as in Claude Code: a run that continues past an automatic compaction reads it on its next request, and a compaction while idle stores it right after the summary. Before, it waited for the next user prompt and was lost in print mode. (#455)
1.8.0
Requirements unchanged (Node >= 22.19). Five changes alter what an existing setup does; each now matches Claude Code, and each entry says what to do. Read the behavior changes before upgrading.
Behavior changes
CLAUDE_PROJECT_DIRis the directory the session started in, not the git checkout root. This applies to hook commands, stdio MCP server env,${CLAUDE_PROJECT_DIR}in plugin MCP config and in command and skill bodies, and the status line. In a session started in a subdirectory, a script that needs the repository root should askgit rev-parse --show-toplevel. A hook from the repository root'ssettings.local.jsonstill gets the checkout root. (#428)- A PostToolUse hook's
updatedToolOutputis read only underhookSpecificOutput. At the top level of the hook output it is now ignored, as in Claude Code. Move the field underhookSpecificOutput. For an MCP tool,updatedToolOutputwins overupdatedMCPToolOutput. (#448) - Plugin skills keep their plugin namespace:
/kit:deployinstead of/skill:deploy. The bare/skill:nameform still runs a plugin skill when exactly one enabled plugin ships that name, with a one-time notice; it is deprecated and will be removed in the next major version. Personal and project skills keep/skill:name. (#433) - A bash command that reaches its timeout is no longer always killed. With a UI it moves to the background and keeps running; stop it with
task_stop. In print and json modes and in subagents it is stopped at the timeout, which followsBASH_DEFAULT_TIMEOUT_MS/BASH_MAX_TIMEOUT_MS(2 / 10 minutes by default). Raise those for long commands in headless runs. (#426) - In the question form, Esc cancels the whole call from anywhere, and Enter on a blank single-select text field does the same. Several questions in one call share one tabbed form with a Submit review; submitting a partial form marks the unanswered questions as skipped. Single-select text is an answer only once Enter confirms it. (#431, #443)
Added
- Background bash commands.
run_in_background: truestarts a command as a background task; a completion message reaches the session;task_stopstops it;/taskslists it; the footer shows the count. Disabled withCLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1. (#426) - A
monitortool (Claude's Monitor) that runs a command in the background and feeds its stdout lines to the session, batched and rate-limited as Claude Code does: a 200 ms batch window, 10 events at once and one more every 2 seconds, with suppressed events reported as a count and a monitor suppressed for 30 seconds stopped automatically. (#427, #441) piCode.enabledPluginsin~/.pi/agent/settings.jsonturns a Claude plugin on or off for pi alone, and/claude-pluginslists plugins with the setting that decided their state. (#430)autoMemoryStorage: "claude"reads and writes the memory store Claude Code keeps for the project, in place. (#434)- Question form: an inline text field in the "Type something." row, also on multiSelect questions; wrapped question text and option descriptions; Claude Code's look. (#432, #435, #443)
Fixed
- Plugin hooks load from
hooks/hooks.jsonand from everyhooksentry of the manifest, including an array. (#429) - A hook declared identically in several settings files runs as the copy from the highest-precedence source, so a project's
asynccopy no longer replaces a managed or--settingsblocking guard. (#440) - A PreToolUse hook with a
Bashmatcher also runs on commands started throughmonitor, with a Bash payload, and can block them. A handler selected both as Monitor and as Bash runs once. (#439, #450) bash, andmonitorwith it, stay off in a session whose tool selection leaves bash out (--tools -bash,--no-builtin-tools,defaultTools), including after/reloadand/tree. (#442, #451)- A background command's completion notice is sent once its output file is complete. (#445)
- An oversized
BASH_DEFAULT_TIMEOUT_MSorBASH_MAX_TIMEOUT_MSno longer makes every command time out at once or fail. (#438) - Saving or deleting a memory no longer rewrites or removes other index lines that mention its file. (#437)
- A remote answer that completes a question batch does not submit text that is still being typed. (#443, #449)
- The monitor rate limit holds when the system clock steps back. (#451)
1.7.0
Requirements unchanged (Node >= 22.19). No configuration breaks. Some agents that were rejected before now load, and some plugin agents get more tools, so read the behavior changes.
Behavior changes
These change what an existing setup does; each now matches Claude Code. What to do is in each entry.
- An agent with an argument scope in
tools:now loads with the whole tool.Bash(git log:*),Read(src/**),WebFetch(domain:example.com)andBash()used to reject the agent with a warning. The scope does not limit the agent in Claude Code either, but Claude Code still runs each call through its permission flow and pi has no such flow, so this agent can run any command without a prompt. To restrict it, add aPreToolUsehook. (#420) - A plugin agent's
hooksare ignored. They used to be passed to the child and run there. Declare them as plugin hooks instead. (#421) - A plugin agent's
permissionModeis ignored.permissionMode: planwith notools:used to give read-only tools; the agent now has every tool. To keep it read-only, list the tools intools:. (#421) - A plugin agent with no description, or with frontmatter that does not parse, now loads. A missing description becomes
Agent from <plugin> plugin. Frontmatter that does not parse loads the agent under its filename with every field ignored, sotools:in that file is not applied and the agent has every tool. To keep its restrictions, fix the frontmatter. (#421)
Fixed
- An entry in
tools:whose scope does not close (Bash(,Bash(foo)bar) is unrecognized and grants nothing. Beside a valid entry it is dropped, soRead, Bash(foo, Writegrantsreadonly; when nothing else resolves, the launch is refused and names it. (#420) - A rejected agent repeated its discovery warning on every subagent call. Each distinct warning now prints once per process, across
/reloadand new sessions. (#420)
1.6.2
Requirements unchanged (Node >= 22.19). Nothing breaks: no API or configuration change.
Fixed
- On pi 1.5.0, an output style applied after an earlier extension forced the system prompt was appended and pi's default instructions stayed in the prompt. The style now replaces them, on pi 1.5.0 and on older hosts. (#416)
Security
- pi 1.1.0 to 1.4.0 pin
undici8.10.2 (GHSA-xjj6-f33q-929c): a server answering with more than five content codings and closing early ends the process, even when thefetch()rejection is caught. pi-code's MCP HTTP transports and HTTP hooks use thatfetch. pi supplies this copy, so update pi to 1.5.0 or later to get the fix. (#416) - This repository's lockfile moves to patched
body-parser,fast-uri,ip-address,zod,qsandminimatch. The lockfile is not published, so fresh installs already resolve patched versions. (#416)
Changed
- Tool parameter types and
git-checkpointcompile against pi 1.5.0. The emitted tool schemas are unchanged. (#416)
1.6.1
Requirements unchanged (pi >= 0.80.5, Node >= 22.19). Nothing breaks: no API or configuration change.
Fixed
- A PreToolUse hook that blocked a tool call (deny,
decision: "block", exit 2, a fail-closed timeout, or an ask with no UI) ended the agent run when the blocked call was the only one in its batch. A headless run (-p,--mode json) exited 0 with no final answer and nothing on stderr. The hook's reason now reaches the model as the tool's error and the run continues, as in Claude Code. Behavior change: interactive sessions also continue after a block instead of waiting for input.continue: false,permissionDecision: "defer"and an ask declined in the dialog still end the run. Thanks to @outlawpractice for the report. (#410, #411) - Several PreToolUse hooks combine with Claude's deny > defer > ask > allow precedence; a
deferlisted before adenypreviously won. (#411)
1.6.0
Requirements unchanged (pi >= 0.80.5, Node >= 22.19). One default changes; no configuration breaks.
Changed
- MCP servers pi-code hands to pi's native MCP (pi 0.99 and later) are deferred behind
tool_search, as Claude Code defers MCP tools by default. Their tool definitions are no longer sent with every request: pi names each server in the prompt and declares its tools oncetool_searchloads them. Behavior change: to keep a server's tools declared upfront, set"alwaysLoad": trueon it; to declare every server upfront, setENABLE_TOOL_SEARCH=false(shell or settingsenv).ENABLE_TOOL_SEARCHset totrue,autoorauto:Ndefers. Thanks to @stalgiag for the report. (#406, #408)
Fixed
- The subagent roster, the memory index and the active output style replaced the whole system prompt each turn, so prompt sections that extensions loaded afterwards add never reached the model, among them pi's
mcp_serverslisting of servers with deferred or codemode tools. They are now added as prompt sections (<subagents>,<memory>,<output_style>); on a pi that does not re-render the prompt they append as before. (#407)
Dependencies
1.5.2
Nothing breaks: no configuration change, requirements unchanged (pi >= 0.80.5, Node >= 22.19).
Fixed
- Todo changes made inside Codemode were lost on reload or restart, and the next add could reuse an existing ID. Each successful todo mutation now also saves a snapshot to the session, and replay restores from it; sessions recorded before this release still replay as before. Thanks to @nikunj95. (#401)
Tests
- The
shellWordsproperty no longer depends on the bash version: macOS/bin/bash3.2 and bash 5 read a trailing unquoted backslash differently, which failed the suite on a stock Mac. (#402)