@mariozechner/pi-coding-agent
0.73.1 · 7 May 2026MIT443.1k / weekRepositoryHomepagenpmAtom feed
0.73.1 is the newest release of 0.62.x.
In short
14 breaking4 new12 fixed2 changed
- Breaking
Changed
ToolDefinition.renderCallandrenderResultsemantics. Fallback rendering now happens only when a renderer is not defined for that slot. IfrenderCallorrenderResultis defined, it must return aComponent. - Breaking
Changed slash command provenance to use
sourceInfoconsistently. RPCget_commands,RpcSlashCommand, and SDKSlashCommandInfono longer exposelocationorpath. UsesourceInfoinstead - Breaking
Removed legacy
sourcefields fromSkillandPromptTemplate. UsesourceInfo.sourcefor provenance instead - Breaking
Removed
ResourceLoader.getPathMetadata(). Resource provenance is now attached directly to loaded resources viasourceInfo - Breaking
Removed
extensionPathfromRegisteredCommandandRegisteredTool. UsesourceInfo.pathfor provenance instead - Breaking
RPC
get_commands: replacepathandlocationwithsourceInfo.path,sourceInfo.scope, andsourceInfo.source - Breaking
SlashCommandInfo: replacecommand.pathandcommand.locationwithcommand.sourceInfo - Breaking
SkillandPromptTemplate: replace.sourcewith.sourceInfo.source
Security
3 advisories affect 0.62.0
- HighPi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hostsGHSA-jfgx-wxx8-mp94 · 17 Jun 2026No fix yet
- LowPi Agent: Race condition in Pi auth.json writes could expose stored credentialsGHSA-r95r-rj6r-c39x · 17 Jun 2026No fix yet
- LowPi Agent: Potential XSS in HTML session exports via Markdown URL sanitization bypassGHSA-7v5m-pr3q-6453 · 16 Jun 2026No fix yet
Release note
New Features
Built-in tools as extensible ToolDefinitions. Extension authors can now override rendering of built-in read/write/edit/bash/grep/find/ls tools with custom
renderCall/renderResultcomponents. See docs/extensions.md.Unified source provenance via
sourceInfo. All resources, commands, tools, skills, and prompt templates now carry structuredsourceInfowith path, scope, and source metadata. Visible in autocomplete, RPC discovery, and SDK introspection. See docs/extensions.md.AWS Bedrock cost allocation tagging. New
requestMetadataoption onBedrockOptionsforwards key-value pairs to the Bedrock Converse API for AWS Cost Explorer split cost allocation.
Breaking Changes
- Breaking
Changed
ToolDefinition.renderCallandrenderResultsemantics. Fallback rendering now happens only when a renderer is not defined for that slot. IfrenderCallorrenderResultis defined, it must return aComponent. - Breaking
Changed slash command provenance to use
sourceInfoconsistently. RPCget_commands,RpcSlashCommand, and SDKSlashCommandInfono longer exposelocationorpath. UsesourceInfoinstead - Breaking
Removed legacy
sourcefields fromSkillandPromptTemplate. UsesourceInfo.sourcefor provenance instead - Breaking
Removed
ResourceLoader.getPathMetadata(). Resource provenance is now attached directly to loaded resources viasourceInfo - Breaking
Removed
extensionPathfromRegisteredCommandandRegisteredTool. UsesourceInfo.pathfor provenance instead
Migration Notes
Resource, command, and tool provenance now use sourceInfo consistently.
Common updates:
- Breaking
RPC
get_commands: replacepathandlocationwithsourceInfo.path,sourceInfo.scope, andsourceInfo.source - Breaking
SlashCommandInfo: replacecommand.pathandcommand.locationwithcommand.sourceInfo - Breaking
SkillandPromptTemplate: replace.sourcewith.sourceInfo.source - Breaking
RegisteredCommandandRegisteredTool: replace.extensionPathwith.sourceInfo.path - Breaking
Custom
ResourceLoaderimplementations: removegetPathMetadata()and read provenance from loaded resources directly
Examples:
- Breaking
command.path->command.sourceInfo.path - Breaking
command.location === "user"->command.sourceInfo.scope === "user" - Breaking
skill.source->skill.sourceInfo.source - Breaking
tool.extensionPath->tool.sourceInfo.path
Changed
Built-in tools now work like custom tools in extensions. To get built-in tool definitions, import
readToolDefinition/createReadToolDefinition()and the equivalentbash,edit,write,grep,find, andlsexports from@mariozechner/pi-coding-agent.Cleaned up
buildSystemPrompt()so built-in tool snippets and tool-local guidelines come from built-inToolDefinitionmetadata, while cross-tool and global prompt rules stay in system prompt construction.Added structured
sourceInfotopi.getAllTools()results for built-in, SDK, and extension tools
Fixed
Fixed extension command name conflicts so extensions with duplicate command names can load together. Conflicting extension commands now get numeric invocation suffixes in load order, for example
/review:1and/review:2Fixed slash command source attribution for extension commands, prompt templates, and skills in autocomplete and command discovery
Fixed auto-resized image handling to enforce the inline image size limit on the final base64 payload, return text-only fallbacks when resizing cannot produce a safe image, and avoid falling back to the original image in
readand@fileauto-resize pathsFixed
pi updatefor git packages to skip destructive reset, clean, and reinstall steps when the fetched target already matches the local checkoutFixed print and JSON mode to take over stdout during non-interactive startup, keeping package-manager and other incidental chatter off protocol/output stdout
Fixed cli-highlight auto-detection for languageless code blocks that misidentified prose as programming languages and colored random English words as keywords
Fixed Anthropic thinking disable handling to send
thinking: { type: "disabled" }for reasoning-capable models when thinking is explicitly offFixed explicit thinking disable handling across Google, Google Vertex, Gemini CLI, OpenAI Responses, Azure OpenAI Responses, and OpenRouter-backed OpenAI-compatible completions
Fixed OpenAI Responses replay for foreign tool-call item IDs by hashing foreign IDs into bounded
fc_<hash>IDsFixed OpenAI-compatible completions streams to ignore null chunks instead of crashing
Fixed
truncateToWidth()performance for very large strings by streaming truncationFixed markdown heading styling being lost after inline code spans within headings
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.