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

@xl0/pi-lovely-dev-tools

v0.2.2

Published

Pi interactive debugging commands /tool /show-sysprompt /show-context

Readme

@xl0/pi-lovely-dev-tools

Pi extension package with interactive debugging helpers.

Demo

Commands

/tool [tool_name] [flat args...]

Use this to manually execute your tools. Results are not sent to the LLM; they are for you to review.

  • With no args, opens a searchable tool selector and schema-driven arg editor.
  • With flat args, maps values to top-level schema properties in schema order.
  • Shows partial tool updates while running.
  • Press Esc to abort a running tool.
  • Inactive tools are still visible/runnable manually; active state only controls Agent Tool Calls.

Examples:

/tool
/tool read README.md
/tool bash "bun run check"
/tool bash "sleep 30"  # press Esc to abort

Demo

How it works

Pi extensions can see tool schemas, but not executable tool definitions. For each Manual Tool Run this command creates a short-lived in-memory Nested Execution Session using Pi SDK, mirrors startup extensions/flags, resolves the selected executable tool there, runs it directly, then disposes the nested session.

The outer session owns selection, argument editing, pending UI, final display, and hidden-from-context messages. Manual Tool Runs intentionally bypass Agent Tool Policy hooks.

/show-sysprompt

Show the current rendered system prompt and active tool schemas. Use this to better undersand why your agent behaves the way it does.

/show-context

Show a file coverage map for the current model context. The map includes startup context files, advertised skill metadata, loaded skill bodies, and read tool results that survived compaction. The message is visible in chat and hidden from LLM context.

Context read map

/llm-stats

Show one row per completed assistant/LLM call in the current branch, with elapsed time since the previous agent message as +Ns (or the entry timestamp as hh:mm:ss when none), initiation source, and prompt-side tokens rendered as fresh + cacheR = input or fresh + cacheR + cacheW = input when cache writes are present. cacheR shrinkage versus the previous row is highlighted, red when it drops by more than 50%. The message is visible in chat and hidden from LLM context.

Context read map

Install

pi install npm:@xl0/pi-lovely-dev-tools

Load without installing:

pi -e npm:@xl0/pi-lovely-dev-tools

Related projects

| | | | --- | --- | | Pi Lovely Web | web_search, web_fetch, web_image via Firecrawl, Exa, Tavily, Brave | | Pi Lovely IDE | IDE integration |


Like this work? Hire me