omp packages

pi-efficient-tool-use0.1.1

Pi extension that reminds the agent to batch independent lookups, shows how often that worked, and fixes a few wasteful tool calls where they happen.

GitHub Actions Published 16 days ago MIT ~448 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

English · 简体中文 · Español · Русский · 日本語

pi-efficient-tool-use

Reminds a Pi agent to send independent lookups together instead of one at a time, and shows in the footer how often that worked (⚒ 2/3 batched: of 3 reminders, 2 were followed by a batch of several calls). It also fixes a few wasteful tool calls where they happen.

A real Pi session: three files read one at a time, the reminder, then three files read together in one turn; the footer shows ⚒ 1/1 batched

https://github.com/user-attachments/assets/e4a9c709-f00f-43d9-b4b6-634a06507758

Also on YouTube.

pi install npm:pi-efficient-tool-use

Check on your own logs

npx pi-efficient-tool-use

It reads your Pi sessions in ~/.pi/agent/sessions (nothing leaves your machine) and prints per model how often the next batch had several calls: before install, after a reminder, and after install without one. A few thousand sessions take about two minutes.

Development

npm install && npm test

Contributing

I am still learning, so ideas, issues and pull requests are all very welcome.

License

MIT