Packages

@mariozechner/pi-coding-agent

0.73.1 · 7 May 2026MIT443.1k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: please use @earendil-works/pi-coding-agent instead going forwardWhat to use instead
Your version

0.62.0

23 Mar 2026Where it was published

0.73.1 is the newest release of 0.62.x.

npm marks 0.62.0 as deprecated: please use @earendil-works/pi-coding-agent instead going forward

In short

14 breaking4 new12 fixed2 changed

  • Breaking

    Changed ToolDefinition.renderCall and renderResult semantics. Fallback rendering now happens only when a renderer is not defined for that slot. If renderCall or renderResult is defined, it must return a Component.

  • Breaking

    Changed slash command provenance to use sourceInfo consistently. RPC get_commands, RpcSlashCommand, and SDK SlashCommandInfo no longer expose location or path. Use sourceInfo instead

  • Breaking

    Removed legacy source fields from Skill and PromptTemplate. Use sourceInfo.source for provenance instead

  • Breaking

    Removed ResourceLoader.getPathMetadata(). Resource provenance is now attached directly to loaded resources via sourceInfo

  • Breaking

    Removed extensionPath from RegisteredCommand and RegisteredTool. Use sourceInfo.path for provenance instead

  • Breaking

    RPC get_commands: replace path and location with sourceInfo.path, sourceInfo.scope, and sourceInfo.source

  • Breaking

    SlashCommandInfo: replace command.path and command.location with command.sourceInfo

  • Breaking

    Skill and PromptTemplate: replace .source with .sourceInfo.source

Security

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/renderResult components. See docs/extensions.md.

  • Unified source provenance via sourceInfo. All resources, commands, tools, skills, and prompt templates now carry structured sourceInfo with path, scope, and source metadata. Visible in autocomplete, RPC discovery, and SDK introspection. See docs/extensions.md.

  • AWS Bedrock cost allocation tagging. New requestMetadata option on BedrockOptions forwards key-value pairs to the Bedrock Converse API for AWS Cost Explorer split cost allocation.

Breaking Changes

  • Breaking

    Changed ToolDefinition.renderCall and renderResult semantics. Fallback rendering now happens only when a renderer is not defined for that slot. If renderCall or renderResult is defined, it must return a Component.

  • Breaking

    Changed slash command provenance to use sourceInfo consistently. RPC get_commands, RpcSlashCommand, and SDK SlashCommandInfo no longer expose location or path. Use sourceInfo instead

  • Breaking

    Removed legacy source fields from Skill and PromptTemplate. Use sourceInfo.source for provenance instead

  • Breaking

    Removed ResourceLoader.getPathMetadata(). Resource provenance is now attached directly to loaded resources via sourceInfo

  • Breaking

    Removed extensionPath from RegisteredCommand and RegisteredTool. Use sourceInfo.path for provenance instead

Migration Notes

Resource, command, and tool provenance now use sourceInfo consistently.

Common updates:

  • Breaking

    RPC get_commands: replace path and location with sourceInfo.path, sourceInfo.scope, and sourceInfo.source

  • Breaking

    SlashCommandInfo: replace command.path and command.location with command.sourceInfo

  • Breaking

    Skill and PromptTemplate: replace .source with .sourceInfo.source

  • Breaking

    RegisteredCommand and RegisteredTool: replace .extensionPath with .sourceInfo.path

  • Breaking

    Custom ResourceLoader implementations: remove getPathMetadata() 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 equivalent bash, edit, write, grep, find, and ls exports from @mariozechner/pi-coding-agent.

  • Cleaned up buildSystemPrompt() so built-in tool snippets and tool-local guidelines come from built-in ToolDefinition metadata, while cross-tool and global prompt rules stay in system prompt construction.

  • Added structured sourceInfo to pi.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:1 and /review:2

  • Fixed 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 read and @file auto-resize paths

  • Fixed pi update for git packages to skip destructive reset, clean, and reinstall steps when the fetched target already matches the local checkout

  • Fixed 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 off

  • Fixed 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> IDs

  • Fixed OpenAI-compatible completions streams to ignore null chunks instead of crashing

  • Fixed truncateToWidth() performance for very large strings by streaming truncation

  • Fixed 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.