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

@lolipopshock/pi-clm

v1.0.0

Published

Pi extension that lets the model manage its own context: the next request's context is mirrored to a file the model edits with ordinary tools

Readme

pi-clm

  ____ _     __  __
 / ___| |   |  \/  |     
| |   | |   | |\/| |
| |___| |___| |  | |     
 \____|_____|_|  |_|     pi-clm — the agent that manages its own context

pi-clm is a Pi extension that lets the agent manage its own context: the language model can generate functions to modify the context (mapped as a file), and the edited version becomes its next input. Check our paper Context Language Models and research codebase.

Install

pi install npm:@lolipopshock/pi-clm

# From source, or to try it for one session without installing:
pi install git:github.com/lolipopshock/pi-clm
pi -e git:github.com/lolipopshock/pi-clm

Quick start

| command | what it does | |---------|--------------| | /clm | open the panel: overview (context size over time + compaction points) input (what the next request contains) · edits (per-revision side-by-side diff) | | /clm status | three lines: next request vs budget, edits, changed settings | | /clm config | open settings; /clm config <setting> <value> changes one, /clm config reset drops this session's changes | | /clm-compact [instructions] | ask the model to compact its own context now; anything you add (e.g. what to keep) is passed along. The result shows on the edits page | | /clm on / off / reset | enable, use raw context, discard the projection |

In the panel: 1–4 or Tab switch pages, ← → step through compaction points, z zooms the chart, Enter opens the selection, q closes.

Docs

  • How it works — the mirror, what runs without the model, the panel, safety.
  • Configuration — budget, reserve, reminders, guard, steering and the other settings.
  • Architecture — the system as implemented, design notes, known limitations.
  • Development — setup, checks, releasing.

Citation

If you use pi-clm in your research, please cite Context Language Models:

@article{shao2026context,
  title   = {Context Language Models},
  author  = {Shao, Rulin and Shen, Shannon Zejiang and Yin, Junjie Oscar and Li, Yuetai and
             Wang, Minheng and Ivison, Hamish and Poovendran, Radha and Lambert, Nathan and
             Xiao, Teng and Lewis, Mike and Yih, Wen-tau and Zettlemoyer, Luke and Koh, Pang Wei},
  journal = {arXiv preprint arXiv:2609.37725},
  year    = {2026}
}