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-deep-review

v0.1.0

Published

Deep PR review extension for Pi with deterministic context packing and Responses API streaming

Downloads

94

Readme

Deep Review Extension

Run a 2-phase deep PR review flow inside your current Pi session:

  1. Context packing for the current branch/repo
  2. Direct OpenAI Responses API streaming (reasoning + final answer)

Setup

# 1) OpenAI auth
export OPENAI_API_KEY=your_key_here

# 2) Required for token budgeting in context pack stage
cargo install tokencount

# 3) Install/update package (choose one)

# bundled package
pi install npm:pi-shit

# standalone extension package
pi install git:github.com/ferologics/pi-deep-review

Then in Pi:

/deep-review "review the code"

Typical runtime is ~6–20 minutes depending on repo size, Scribe graph expansion, and model latency.

Recommended extras

  • gh (GitHub CLI): auto-includes PR title/body in context metadata when available.
  • npx @sibyllinesoft/[email protected] (or global @sibyllinesoft/scribe): related/dependent code expansion.
    • Note: Cargo scribe-cli is a different CLI flavor and is not supported by this extension.

Commands

  • /deep-review <query> [options]
  • /deep-review-stop

Defaults

  • Model: gpt-5.2
  • Reasoning effort: xhigh
  • Summary: auto
  • Verbosity: medium
  • Context-pack budget target: 272000
  • Base ref: auto-detected (origin/main, origin/master, main, master, HEAD~1)

Options

  • --query <text> (alternative to positional query; cannot be combined with positional query text)
  • --project <path>
  • --base <ref>
  • --context-pack <path> (skip generation and use existing context pack)
  • --budget <tokens> (context-pack budget target; cannot combine with --context-pack)
  • --model <id>
  • --effort minimal|low|medium|high|xhigh
  • --verbosity low|medium|high
  • --summary auto|detailed|null
  • --no-summary (shortcut for --summary null)
  • --org <id>
  • --project-id <id>
  • --debug
  • --help

Example

/deep-review "find bugs and regressions"

Architecture (high level)

flowchart LR
    A[/deep-review/] --> B[Context pack stage]
    B --> C[Git diff + changed files]
    B --> D[Scribe recall]
    B --> E[Deterministic rank + budget fit]
    E --> F[Pack + manifests + report.json]
    F --> G[Responses API review]
    G --> H[Final markdown + handoff artifacts]

Detailed maintainer architecture and decision log: extensions/deep-review/ARCH.md

Context-pack artifacts

Generated pack output includes:

  • pr-context.txt
  • pr-context.changed.files.txt
  • pr-context.related.files.txt
  • pr-context.omitted.files.txt
  • pr-context.related.omitted.files.txt
  • pr-context.related.selection.tsv
  • pr-context.scribe.targets.tsv
  • pr-context.report.json

Notes

  • If --context-pack <path> is provided, generation is skipped.
  • Context packing is deterministic and executed directly in the extension (no nested pi -p skill hop).
  • Related-file omissions are explicitly reported with reasons.
  • Context-pack generation applies request headroom reserve internally (query + protocol overhead), so effective pack budget can be lower than the configured target.
  • Related candidates that are already in changed files are de-duplicated from related omission stats/manifests.
  • Related test/test-data files are only eligible when close to changed modules (shared path affinity or short graph distance).
  • --debug writes context-pack + responses debug artifacts to a temp directory.
  • Maintainer internals and decision log: extensions/deep-review/ARCH.md.
  • Streamed reasoning/answer text is not shown live in widget text; full markdown is posted at completion.
  • Final answer/thinking/report files are written to a temp handoff directory and linked in output.
  • The extension attempts to copy the final answer to clipboard automatically.