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-report-issue

v2.0.4

Published

Pi extension to enhance by AI and report GitHub issues from the chat using /ri command

Downloads

427

Readme

PI Agent Issue Reporter

A pi agent extension to accept a short issue message, enhance it with AI and report GitHub issues directly from the chat using the /ri command.

Logo

Features

  • /ri command to create GitHub issues from natural language descriptions
  • Subagent isolation — issue creation runs in a separate pi process, preserving your main conversation context
  • Non-blocking — continue chatting while the subagent creates the issue in the background; result appears as a notification
  • Supports any GitHub repository (--repo=owner/name), fork parent (--repo=parent), or current repo (default)
  • Repo-aware — auto-detects issue templates (.github/ISSUE_TEMPLATE/, CONTRIBUTING.md) and tailors the issue body to match each repository's guidelines
  • Extended mode (-e/--extended) for root cause analysis and proposed fixes
  • Tool gating: the create_github_issue tool is only available in the subagent, never in the main session

Installation

Prerequisites

  • GitHub CLI (gh) installed and authenticated (gh auth login)
  • For default mode (no --repo= flag): the project must be a git repository with a GitHub remote
  • For --repo=owner/name: no git repository needed — the explicit repo is used directly
  • For --repo=parent: the current repo must be a GitHub fork with gh authenticated

Install the extension

pi install npm:pi-report-issue

Then restart pi or run /reload.

Usage

Basic issue report

/ri The login button returns a 500 error when clicked

The agent will:

  1. Analyze the message to determine if it's a bug or feature request
  2. Use project context (branch, recent commits, etc.) to write a better description
  3. Search for existing similar issues and mention them as "Possible duplicates: #X, #Y" so GitHub interlinks them
  4. Create a descriptive title and enhanced description
  5. Create the issue on the current repository via gh issue create

Report to a specific repository

/ri --repo=serhioromano/vscode-st The extension crashes on startup

Report to the fork parent

/ri --repo=parent Upstream changed the API, our code needs updating

Extended mode — root cause analysis

/ri -e The form validation fails for special characters in user names

With -e (or --extended), the agent will also:

  1. Search the codebase for the root cause
  2. Append a "Root Cause Analysis" section to the issue
  3. If a fix is obvious, append a "Proposed Fix" section (without applying it)

You can combine flags:

/ri --repo=parent -e The API returns 403 for valid tokens

How It Works

  1. The /ri command parses your message and flags
  2. Resolves the target GitHub repository and collects project context
  3. Spawns a subagent — a separate pi process with an isolated context window
  4. Fetches the target repo's issue guidelines (.github/ISSUE_TEMPLATE/, .github/ISSUE_TEMPLATE.md, CONTRIBUTING.md) via the GitHub API so the issue body follows the maintainers' expected format
  5. The subagent's LLM analyzes your message, extracts keywords, and searches for existing similar issues via gh search issues
  6. If similar issues are found, they are mentioned as "Possible duplicates" in the new issue body — GitHub auto-interlinks them
  7. The subagent formats the issue (following any detected templates) and calls the create_github_issue tool
  8. The issue URL is shown as a notification — while you keep working

A subagent status widget is pinned at the bottom of the UI during the entire process, showing live status: "Subagent started", "Subagent completed", or "Subagent failed". It auto-dismisses after 5 seconds.

Requirements

  • GitHub CLI (gh) installed and authenticated
  • Default mode: project must be a git repository with a GitHub remote
  • --repo=owner/name: no git repository required
  • For --repo=parent: the current repo must be a GitHub fork