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-mood

v0.2.1

Published

Periodic rule reminders from AGENTS.md — weighted probabilistic injection via context event

Readme

pi-mood

Why

LLM agents routinely ignore simple rules, even when they are clearly stated in AGENTS.md. The rules are there — in the system prompt — but after a few dozens of tool calls they get buried under conversation history.

Yet the same LLM follows plan mode instructions flawlessly. Plan mode works because it injects a reminder directly into the user message, not from the distant system prompt. So the model can follow rules — it just needs them close to the generation point.

Periodic injection of your own rules throughout a session should therefore make the agent substantially more reliable. The same principle powers steering mode in Roo-Code.

pi-mood is a minimal implementation of this idea. You annotate existing AGENTS.md headings with desired relative frequency.

How it works

Reads ~/.pi/agent/AGENTS.md and <cwd>/AGENTS.md, parses headings annotated with @N, and injects the rule text as a persistent system message between LLM calls. Rules are selected with frequency-weighted probability and a cooldown to avoid repetition.

Headings without @N are ignored. Any heading level works (##, ###, etc.). @N must appear at the end of the heading line (regex \s*@(\d+)\s*$). Parent sections include their subsection headings and bodies.

## Design review @5

Before any change, write a design brief and send to reviewer. If trivial, show
brief to user and request skip.

### What should be in the brief @3

...
  • @5 — relative frequency. Higher = selected more often.
  • After selection, the rule's effective frequency is halved for the next pick (2^(-times_shown)).
  • A rule is injected every N LLM calls. N defaults to 5, configurable in .pi/mood.json (see Config below).

Status bar

mood: — · — · —                          (fresh start)
mood: 1.2kt · now · «Design review»      (just injected)
mood: 3.5kt · 4 ago · «Say it straight»  (between injections)

Install

pi install npm:pi-mood

Or clone and install from local path:

git clone [email protected]:NikolayXHD/pi-mood.git
pi install ./pi-mood

Config

Create .pi/mood.json in the project root:

{ "injectionFrequency": 5 }
  • injectionFrequency (number, default 5) — inject a rule every N LLM calls.