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

@casualjim/pi-mimir

v0.1.2

Published

OpenSpec-driven development workflow for Pi Agent

Readme

pi-mimir

OpenSpec workflow package for Pi. @casualjim/pi-mimir adds a review-gated OpenSpec workflow with focused planning, implementation, and review entrypoints.

What it provides

  • plan — run the full OpenSpec planning workflow, composing generated proposal/spec/design/task behavior with one holistic planning review.
  • implement — run generated OpenSpec apply behavior, verify it, and stop before archive; implementation review remains a separate explicit action.
  • review-plan — run a standalone planning review over existing planning artifacts.
  • review-implementation — run a standalone implementation review over existing implementation evidence.
  • A review-gated OpenSpec schema and supporting templates.
  • Session guidance for codebase-memory-first discovery.
  • Explicit incomplete-setup reporting when the separate pi-codebase-memory plugin is not active.
  • Compatibility with the sibling @casualjim/pi-advisor package for forked child advisor consultations.

@casualjim/pi-mimir does not commit, push, create pull requests, archive changes, or run branch-finishing workflows. Generated OpenSpec skills are allowed to coexist and may be called by the full workflow where appropriate.

Install

Install the package in Pi, then initialize it in the target repository:

/openspec:init

The init command:

  1. runs openspec init --tools pi,
  2. configures openspec/config.yaml to use the review-gated schema,
  3. syncs bundled OpenSpec schemas/project-state assets,
  4. keeps bundled skills package-provided and syncs OpenSpec agents into ~/.pi/agent/agents,
  5. checks whether the required codebase_memory_* tools are active, and
  6. reports setup as incomplete with an install command when pi-codebase-memory is not yet active.

To refresh OpenSpec Pi tooling later, run:

/openspec:update

The update command runs openspec update, keeps openspec/config.yaml on the review-gated schema, syncs bundled schemas/project-state assets, prunes legacy copied skills/agents when safe, writes OpenSpec agent ownership to ~/.pi/agent/mimir-managed.json, and refreshes .pi/mimir-managed.json for project OpenSpec assets only.

Requirements

Install codebase-memory support with:

pi install npm:@casualjim/pi-codebase-memory

Without that plugin active, workflows can still use exact file reads and shell inspection, but should report discovery as degraded and avoid claiming architecture-aware analysis.

Usage

Plan a change

/skill:plan <change-name>

Use this for the composed planning workflow: propose planning artifacts, run one holistic planning review, and iterate with targeted artifact fixes until blockers and concerns are resolved.

Implement a change

/skill:implement <change-name>

Use this only after the change is apply-ready. The workflow applies implementation work, verifies it against planning artifacts, and stops before archive. Run review-implementation only when you explicitly want separate review findings.

Run reviews directly

/skill:review-plan <change-name>
/skill:review-implementation [review-scope]

Use these when planning or implementation already exists and you want a separate review pass. review-plan expects OpenSpec planning artifacts. review-implementation can review an OpenSpec change when supplied, or a non-OpenSpec scope/diff/evidence when no change exists. Findings are returned inline by default as structured reports with a summary, issues grouped by priority, and a final assessment; the review is intended to be single-shot, so after reported findings are addressed a follow-up review over unchanged material should ideally report only net new issues introduced by the changes or made newly reviewable by newly supplied evidence. Only persist findings when you explicitly ask.

Discovery behavior

For code discovery, @casualjim/pi-mimir guides agents toward this ladder:

  1. codebase_memory_get_architecture
  2. codebase_memory_search_graph or codebase_memory_search_code
  3. codebase_memory_trace_path
  4. codebase_memory_get_code_snippet
  5. exact file reads or shell inspection when appropriate
  6. synthesis

The runtime sends a non-blocking one-shot reminder on broad raw discovery tools such as grep, find, or ls. It does not block those calls and does not gate read; agents should always read files before editing them.

Review skills

review-plan and review-implementation are the default standalone review entrypoints. review-implementation uses OpenSpec proposal/spec/design/task artifacts when present, but does not require an OpenSpec change. They return the whole actionable issue list inline by default and are intended to be single-shot rather than staged across repeated rounds; for review-plan, wording-only or editorial comments with no meaningful outcome change are suppressed. Persist findings only when explicitly asked.

plan uses a single consolidated planning reviewer. It does not fan out into artifact-specific planning review skills during the default workflow.

Manual implementation deep dives:

  • review-architecture
  • review-tests
  • review-data-flow
  • review-security

The narrower review-* skills are opt-in deep dives, not automatic workflow steps.

Planning review findings identify the target artifact, any upstream artifact that must be fixed first, and whether a user decision is required instead of guessing. They are intended to focus on substantive implementation readiness rather than minute wording polish.

Review findings use these severities:

  • blocker — must be fixed before proceeding.
  • concern — fix or ask the user to explicitly accept.
  • suggestion — optional improvement.

Development

Run tests from packages/pi-mimir:

npm test
npm run typecheck

Run the integration workflow test with:

npm run test:e2e

Set E2E_MODEL to choose the model used by the non-interactive Pi sessions.

License

MIT