npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pi-repeat-tool-guard

v0.1.0

Published

Pi extension that appends system reminders to repeated tool call results.

Readme

pi-repeat-tool-guard

Reduce repeated tool calls in Pi.

pi-repeat-tool-guard is a Pi package for people who see the model repeatedly calling the same tool with the same arguments. It keeps your normal Pi workflow unchanged, but gives the model a clear reminder when it appears to be stuck in that loop.

Use it when you want Pi to:

  • notice repeated read/search/shell-style calls,
  • reconsider the latest tool output before trying again,
  • choose a different approach instead of burning turns on the same call.

Install

Install it globally for your Pi user:

pi install npm:pi-repeat-tool-guard

Install it only for the current project:

pi install npm:pi-repeat-tool-guard -l

If you are installing from the GitHub repository instead of npm:

pi install git:[email protected]:Kingwl/pi-repeat-tool-guard

Use

After installation, start Pi normally:

pi

Pi loads installed packages automatically. You can confirm the package is active from Pi's startup header or by running:

pi list

Configuration

The default behavior works without configuration. By default, the package starts reminding the model after repeated identical calls at counts 3, 5, and 8.

You can adjust the repeat counts:

PI_REPEAT_TOOL_GUARD_THRESHOLDS=3,5,8 pi

Track only selected tools:

PI_REPEAT_TOOL_GUARD_INCLUDE=read,grep,glob pi

Ignore selected tools:

PI_REPEAT_TOOL_GUARD_EXCLUDE=bash,write,edit pi

* can be used as a wildcard in include/exclude values:

PI_REPEAT_TOOL_GUARD_INCLUDE='mcp__*,read,grep' pi

Managing The Package

Update installed Pi packages:

pi update --extensions

Disable, enable, or inspect installed extensions:

pi config

Remove the package:

pi remove npm:pi-repeat-tool-guard

Notes

This package does not reject tool calls and does not ask for extra user confirmation. The tool still runs normally; the model simply receives an extra reminder when it repeats itself.

It is designed as a lightweight Pi extension that you can install, keep enabled, and forget about until a repeated-tool loop shows up.

Reference

This package is inspired by Kimi Code's repeated tool-call protection: