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-constell-plan

v0.1.8

Published

Claude Code-style plan mode for pi: explicit --plan / /plan entry, askUserQuestion gating, and Constellagent-compatible plan exports.

Readme

pi-constell-plan

pi-constell-plan adds a Claude Code-style plan mode to pi. You enter plan mode explicitly with pi --plan or /plan; normal agent mode does not inject plan-mode prompts or a model-facing switch tool.

Features

  • /plan toggles planning mode manually
  • pi --plan starts a session already in plan mode
  • /plan-off and /agent leave planning mode explicitly
  • codebase remains read-only in plan mode
  • askUserQuestion is a blocking prerequisite before plan writing or auto-save
  • plan mode starts with a stronger first clarification round, then asks smaller follow-ups only if the plan changes materially
  • only the active plan file is writable in plan mode, and only after a clarification round completes
  • askUserQuestion supports 1-4 clarifying questions with:
    • Tab / Shift+Tab question cycling
    • keyboard-first option selection
    • multi-select support (spacebar toggles the highlighted preset option)
    • optional Extra details (optional) free-text on top of preset choices
    • My own thoughts for a fully custom answer when presets do not fit
    • explicit option mappings like A/1, B/2, etc. in the saved clarification context
  • plan storage is created on install at ~/.pi-constell/plans/
  • plans are exported to ~/.pi-constell/plans/, completely outside the repo and never git-trackable by default
  • Constellagent can discover PI Constell plans directly from ~/.pi-constell/plans/
  • saved plans use stronger action-oriented filenames such as:
    • improve-plan-mode-questionnaire-ux.md
    • add-claude-style-ask-user-question.md

Install

pi install npm:pi-constell-plan

Update

pi update

Usage

Plan mode

pi --plan

Or toggle inside a session:

pi /plan

Use /plan-off or /agent to return to normal mode. Planning-heavy work should be done after you enable plan mode yourself; the extension does not prompt to switch from normal mode.

What plan mode does

In plan mode pi will:

  • investigate the repo with read-only tools before planning
  • require askUserQuestion before the plan file becomes writable
  • start with 3-4 strong clarification questions when needed, then use 1-2 focused follow-ups only when ambiguity remains
  • prefer codebase inspection over asking when the answer is already discoverable in the repo
  • let the model write or edit only the active plan file in ~/.pi-constell/plans/
  • preserve structured clarification context, including optional Extra details and explicit option mappings such as A/1=...
  • allow read-only help commands while plan mode is active
  • save Constellagent-compatible markdown plans with frontmatter
  • write the full multi-phase plan now, even though later execution should still pause after phase 1 for approval
  • keep the plan detailed enough to cover the required constraints and validation, but concise enough to stay readable
  • generate concise phase-based plans with explicit validation sections and better saved filenames

askUserQuestion payload

{
  "questions": [
    {
      "header": "Scope",
      "question": "What should this plan prioritize?",
      "multiSelect": false,
      "options": [
        { "label": "UX parity", "description": "Match Claude Code plan mode interactions closely." },
        { "label": "Fast publish", "description": "Minimize scope and ship to npm quickly." },
        { "label": "Hardening", "description": "Prioritize tests and guardrails first." }
      ]
    }
  ]
}

Users can always choose My own thoughts if none of the suggested options fit, or add Extra details (optional) alongside preset choices.