pi-model-suitable-tools
v0.3.0
Published
Pi extension package that adapts tool names to the active model family.
Downloads
406
Readme
pi-model-suitable-tools
Pi Extension that switches model-facing tool shapes to match the active model family without changing prompts.
Motivation
Different model families are trained around different tool shapes. As Cursor notes in their article, giving each model the tool format it already expects can reduce unnecessary reasoning and mistakes. This extension applies that idea to Pi by exposing model-appropriate tool shapes while keeping the underlying behavior consistent.
Usage
Install this package into Pi:
pi install npm:pi-model-suitable-toolFor project-local installation, use Pi's local settings flag:
pi install -l npm:pi-model-suitable-toolsBehavior
- Claude models get Claude Code style aliases:
Read,Edit,Write,Bash,Grep,Glob,LS. - GPT/Codex models get Codex's default shell shape:
shell_command, plusapply_patch. - Alias tools delegate to Pi built-in tools where possible.
apply_patchis implemented locally with Codex-style patch grammar.
Development
Install dependencies:
bun installRun tests:
bun testRun Pi with the extension temporarily during development:
pi -e ./