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-repoprompt-cli

v0.2.9

Published

Integrates RepoPrompt with Pi via RepoPrompt's `rp-cli` executable

Readme

RepoPrompt CLI bridge for Pi (pi-repoprompt-cli)

Integrates RepoPrompt with Pi via RepoPrompt's rp-cli executable.

Provides two tools:

  • rp_bind — bind a RepoPrompt window + compose tab (routing)
  • rp_exec — run rp-cli -e <cmd> against that binding (quiet defaults + output truncation)

Optional:

  • Diff blocks in rp_exec output use delta when installed (honoring the user's global git/delta color config), with graceful fallback otherwise
  • Gurpartap/pi-readcache-like caching for rp_exec calls that read files (read / cat / read_file) to save on tokens
    • returns unchanged markers and diffs on repeat reads
  • Auto-selection (in the RP app, e.g. for use in RP Chat) of slices/files the agent has read; these selections are also branch-safe across /tree navigation and /forked session

Also provides convenience commands:

  • /rpbind <window_id> <tab>
  • /rpcli-readcache-status
  • /rpcli-readcache-refresh <path> [start-end]

Install

From npm:

pi install npm:pi-repoprompt-cli

From the dot314 git bundle (filtered install):

Add to ~/.pi/agent/settings.json (or replace an existing unfiltered git:github.com/w-winter/dot314 entry):

{
  "packages": [
    {
      "source": "git:github.com/w-winter/dot314",
      "extensions": ["extensions/repoprompt-cli/index.ts"],
      "skills": [],
      "themes": [],
      "prompts": []
    }
  ]
}

Requirements

  • rp-cli must be installed and available on PATH

Configuration

Enable readcache (optional):

Create ~/.pi/agent/extensions/repoprompt-cli/config.json:

{
  "readcacheReadFile": true,
  "autoSelectReadSlices": true,
  "collapsedMaxLines": 3
}

collapsedMaxLines controls how many lines of rp_exec output Pi shows in collapsed view before you expand the result. It applies across RepoPrompt CLI commands, so it is the main knob for keeping reads, window listings, and other verbose CLI responses compact in the TUI. Recommended setting: 3 for maximally compressed but still informative output.

Quick start

  1. Find your RepoPrompt window + tab (from a terminal):
rp-cli -e windows
rp-cli -e "workspace tabs"
  1. Bind inside Pi:
/rpbind 3 Compose
  1. Instruct the agent to use RepoPrompt via the rp_exec tool, for example:
Use rp_exec with cmd: "get_file_tree type=files max_depth=4".

If readcacheReadFile is enabled, repeat reads can be token-optimized:

Use rp_exec with cmd: "read path=src/main.ts start_line=1 limit=120".

To force baseline output for a specific read:

Use rp_exec with cmd: "read path=src/main.ts start_line=1 limit=120 bypass_cache=true".

Notes:

  • Readcache only triggers for single-command reads. Compound commands (&&, ;, |) fail open to baseline output
  • When just-bash AST parsing is unavailable, caching only applies to unquoted/unescaped single-command reads; quoted/escaped forms fail open
  • rawJson=true disables caching
  • Read-driven selection replay is enabled by default (autoSelectReadSlices: true); set it to false to disable
  • Manual selection is always preserved for paths not managed by this feature; for managed paths, branch replay may restore the branch snapshot

Readcache gotchas

  • rawJson=true disables readcache. Don't use unless debugging
  • Need full content? rerun with bypass_cache=true
  • Single-command reads only (no && / ; / |)
  • Multi-root: use absolute or specific relative paths

Safety behavior (by default)

  • Blocks delete-like commands unless allowDelete: true
  • Blocks in-place workspace switching unless allowWorkspaceSwitchInPlace: true
  • Blocks non-trivial commands when unbound (to avoid operating on the wrong window/tab)
  • Treats "0 edits applied" as an error by default (failOnNoopEdits: true)