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

@cpzombie/pi-tool-limit-bumper

v1.0.0

Published

pi coding agent extension: raises the hardcoded tool output limits (50KB/2000 lines) and re-applies the patch automatically after pi updates

Readme

@cpzombie/pi-tool-limit-bumper

pi coding agent extension that raises pi's hardcoded tool output limits and keeps them raised.

pi hardcodes a 50KB / 2000-line output limit in its read/bash/ grep/find/ls tools. This extension patches the installed pi package (constants only — no tool logic) to larger limits, and re-checks on every session start, so a pi update never silently regresses the limits.

Defaults: 100KB / 4000 lines.

Install

pi install npm:@cpzombie/pi-tool-limit-bumper
# or pinned to a version:
pi install npm:@cpzombie/[email protected]

Uninstall:

pi remove npm:@cpzombie/pi-tool-limit-bumper

Configuration

Limits are chosen with the following precedence (highest first):

  1. Env varsPI_TOOL_LIMIT_KB=150 PI_TOOL_MAX_LINES=6000 pi (non-interactive runs, per-session overrides, CI)
  2. Saved choice — the value you picked via the first-boot prompt or the /tool-limit command, stored in ~/.pi/agent/pi-tool-limit-bumper.json
  3. First-boot prompt — on the first TUI/RPC session where nothing is configured yet, pi asks once: Tool output limit (KB) and Max output lines (Esc keeps the default). The answer is saved for future sessions.
  4. Default — 100KB / 4000 lines

Change the limits at any time with the /tool-limit command: Set new limits, Show current, or Reset to defaults.

Note: the patch is applied from pi's stock limits (50KB / 2000 lines). If pi is currently patched to a different value than your setting, the extension leaves the package alone and tells you to update or reinstall pi (e.g. pi update) — once the files are back to stock, your saved limits are applied automatically on the next start.

Also available:

PI_TOOL_LIMIT_PKG_DIR=/path/to/pi-package pi   # pin a specific install

Behavior

On every session start:

  • already patched → silent no-op
  • unpatched + writable → patches, notifies "restart pi to activate" (the running process already has the old code in memory)
  • unpatched + not writable (typical after a root npm i -g) → notifies with the exact chmod -R a+w <pi package dir> command needed
  • constants unrecognized (upstream refactor) → notifies an error and never touches files it doesn't understand

If a future pi release refactors the constants, the extension surfaces a clear error instead of half-patching.

Notes

  • Why patch files instead of overriding the tools? The public tool factories (createReadTool, createBashTool, …) have no truncation options, and the tool_result hook fires after truncation — the built-in limits are only reachable by patching the installed package.
  • Extension is TypeScript, loaded by pi via jiti — no build step.
  • @earendil-works/pi-coding-agent is a peer dependency provided by your pi installation; it is not bundled here.