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

system-prompt

v0.1.4

Published

Choose Markdown system prompts for Pi and prepend, append, or replace the default prompt.

Readme

system-prompt

Choose Markdown system prompts for Pi and prepend, append, or replace the default prompt.

Install

Requires Pi 1.x and Node.js 22.19 or later.

pi install npm:system-prompt

Run /reload in an open Pi session.

Add and select a prompt

Create the prompt directory:

mkdir -p ~/.pi/agent/system-prompts

Save a file such as ~/.pi/agent/system-prompts/reviewer.md:

You review code changes. Look for bugs, regressions, and missing tests.
Explain each finding with a file path and a concrete failure case.

Run /system-prompt to choose a file, or select it by name:

/system-prompt use reviewer

The selection applies on your next message. Append is the default mode. The extension remembers your selection and rereads the file before each run. Files in subdirectories also appear as separate prompts.

Change the mode

/system-prompt mode prepend
/system-prompt mode append
/system-prompt mode replace

Replace uses your file as the complete prompt. Include the placeholders below to keep Pi's dynamic sections. Tool definitions and conversation history remain. See prompt behavior for extension ordering and error handling.

Include dynamic Pi context

Use placeholders in your Markdown to put Pi's context where you want it. For example, save this as ~/.pi/agent/system-prompts/custom.md:

You are my coding assistant. Explain your decisions clearly.

Working directory: {{cwd}}

{{rules}}

{{docs}}

{{skills}}

{{project_context}}

Select it in replace mode, then preview the expanded prompt:

/system-prompt use custom
/system-prompt mode replace
/system-prompt view

Use Pi 1.4 or later for dynamic sections. The extension refreshes values before each run. {{system_prompt}} inserts the entire incoming Pi prompt, including earlier extensions' changes. Use replace mode with that placeholder to include the incoming prompt once.

See the placeholder reference for each value, or copy the dynamic prompt example.

Inspect or toggle

| Command | Action | | --- | --- | | /system-prompt list | List prompt files. | | /system-prompt status | Show the selection, mode, settings paths, and errors. | | /system-prompt view | Preview the selected prompt and mode immediately. | | /system-prompt view reviewer | Read a file without selecting it. | | /system-prompt toggle | Disable or enable the selected file without forgetting it. |

The system-prompt status line in Pi's footer is only shown in the terminal UI, not when Pi is driven over RPC by a client such as T3 Code.

The viewer requires terminal mode. Scroll with arrow keys or Page Up and Page Down. Press Esc or q to close.

For a process-only override, start Pi with:

pi --system-prompt-name reviewer --system-prompt-mode prepend

Startup flags also work in print and RPC modes. They do not save settings, but a later settings command saves the current state, including overrides.

See the command and settings reference or development guide.

MIT license.