@aeondave/pi-skill-optimizer3.2.2
Less repeated context for Pi: local skill routing, on-demand tools, and recoverable output reduction.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-skill-optimizer

This Pi extension reduces the skill descriptions, tool definitions and large tool results that Pi sends to the model on each request. Pi can still search your library, load a skill's full instructions and recover the original output when it needs the details.
Install
Requires Pi 1.0.1+ and Node.js 26.3+.
pi install npm:@aeondave/pi-skill-optimizer
Restart Pi and check its status with the following command.
/skill-optimizer
The defaults work immediately. For project-local installs, version pinning and upgrades, see installation and updates.
What changes in a session
- Skills. Pi can search eligible skills and load a known skill's full instructions or resources. The optimizer uses a compact index when it saves space and preserves skill instructions preloaded by pi-persona or another extension.
- Tools. Pi can discover additional tools through
optimizer_tool_search. The optimizer honors changes to Pi's active tool selection and reports a tool as activated only after Pi enables it. - Tool results. When the optimizer shortens large output, it saves the original locally first. In conversation history it can replace later exact copies of a large result with a reference to the first. Pi can use
retrieve_outputto read either original. - Status. Search results expand in the terminal.
/skill-optimizershows the latest request's catalog choice, savings and provider usage./skill-optimizer auditchecks the descriptions in your library.
Give Pi a map of your library
Run the optional setup to organize your installed skills into browsable topics.
/skill-optimizer init
Init uses your current Pi model and may incur provider cost. A panel above the editor shows saved progress, the current batch and model, elapsed time, and provider activity while it works.
Init saves each completed batch. To pause setup, run the following command.
/skill-optimizer cancel
Run init again to finish missing work or refresh changed skills. It saves the generated topic cards in the optimizer profile. Everyday discovery runs locally, and Pi's main model chooses which skills to load.
Understand the trade-offs
On-demand discovery can add a browsing turn while reducing the context sent on later requests. The benefit depends on your library and how Pi uses it. Benchmarks and evaluation limits
Reduced results keep their originals in local archives for seven days by default. Normal hooks do not collect a benchmark corpus. See privacy and persistence before changing retention or running an explicit remote evaluation.
Explore further
- Configuration and command reference — setup, controls, and everyday troubleshooting.
- How AUTO works — discovery, dynamic tools, output recovery, and guarantees.
- Ranking decisions — selection behavior and relevance limits.
- From a source checkout, run
npm run measure -- capture.jsonto see which tool definitions occupy the most bytes in a saved provider request, including their descriptions and parameter schemas. Measurement guide and examples - Changelog — release history.
MIT. See LICENSE.