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

@taylorsatula/pi-compaction

v0.1.0

Published

Mira-style coding checkpoint compaction for Pi — structured engineering handoff summaries with model-selected cut points and full artifact tracking.

Readme

@taylorsatula/pi-pi-compaction

Mira-style coding checkpoint compaction for Pi. Replaces Pi's default compaction with structured engineering handoff summaries that preserve concrete facts, decisions, code references, and artifact state.

What it does

When Pi triggers context compaction (automatically or via /compact), this extension intercepts the event and produces a detailed recovery checkpoint instead of a brief summary. The checkpoint follows a strict section ownership model designed so another coding agent can resume work without replaying history.

Key differences from Pi's default compaction:

  • Model-selected cut point — the summarizer chooses where to split retained verbatim context, aiming for a user message that gives the next agent a concrete task. Falls back to Pi's algorithm if the model's recommendation is invalid.
  • Full artifact tracking — tracks read-only, modified, compacted, and retained file lists across three scopes (compacted range, retained range, all). Includes scoped git status and diff stat for session-touched paths only.
  • Structured sections — STATE AT COMPACTION BOUNDARY, EVIDENCE TIERS, CODE REFERENCES, DECISIONS AND RATIONALE, COMMANDS TESTS AND FAILURES, WORK QUEUE, COMPACTED HISTORY SYNOPSIS. Each section owns distinct information; cross-references replace repetition.
  • Cut-point adjustment notes — when the model's recommended cut point is capped or falls back, an explicit note is prepended explaining why and what was selected instead.
  • Iterative merging — previous checkpoints are treated as frozen historical state and evolved with new history, not discarded.

Installation

# Global
pi install npm:@taylorsatula/pi-compaction

# Project-local (shared with team via .pi/settings.json)
pi install -l npm:@taylorsatula/pi-compaction

# Temporary test
pi -e npm:@taylorsatula/pi-compaction

Configuration

Two CLI flags control which model generates the checkpoint:

| Flag | Description | |------|-------------| | --mirastyle-compaction-provider | Provider name, e.g. anthropic or google. Requires --mirastyle-compaction-model. | | --mirastyle-compaction-model | Model ID, e.g. claude-sonnet-4-20250514. Requires --mirastyle-compaction-provider. |

If neither flag is set, or if the configured model is unavailable, the extension falls back to the currently active model. If no active model has auth, Pi's default compaction is used.

Example:

pi --mirastyle-compaction-provider anthropic --mirastyle-compaction-model claude-sonnet-4-20250514

Custom compaction instructions can be passed via Pi's standard mechanism:

pi --append-system-prompt "Focus on error handling changes"

Or via the customInstructions field in ctx.compact().

Checkpoint format

The output is wrapped in <pi:mirastyle_compacted_coding_context> tags with deterministic metadata (session file, first kept entry ID, token count, git state, artifact lists) followed by the model-generated body using the section ownership rules defined in the system prompt.

Security

Like all Pi extensions, this runs with full system access. It executes git commands (git rev-parse, git branch, git status --short, git diff --stat) scoped to session-touched files only. No files are written or modified beyond the compaction entry appended to the session file.