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

@bacnh85/pi-agy

v0.3.0

Published

Google Antigravity CLI (agy) bridge for Pi — delegate bulk scaffolding, refactors, and test generation to a leaner model.

Readme

@bacnh85/pi-agy

Google Antigravity CLI (agy) bridge for the Pi coding agent.

Offload bulk implementation, scaffolding, repetitive refactors, and exhaustive test generation to Gemini, Claude, or GPT-OSS through agy, while Pi retains the conductor role for judgement and verification.

Install

pi install npm:@bacnh85/pi-agy

Prerequisites

Install the Antigravity CLI (a Go binary, not pipx):

curl -fsSL https://antigravity.google/cli/install.sh | bash

Windows PowerShell:

irm https://antigravity.google/cli/install.ps1 | iex

Authenticate (one-time in your terminal):

agy

Verify the CLI works:

agy --version
agy models

Tool

agy_execute

| Param | Type | Default | Description | |-------|------|---------|-------------| | prompt | string | required | Task instruction for agy | | model | model alias below | flash-medium | Antigravity model; takes precedence over tier | | tier | flash / flash-lo / pro | — | Legacy Gemini tier compatibility | | mode | accept-edits / plan / sandbox | accept-edits | agy execution mode | | dir | string | cwd | Working directory | | digest | boolean | mode-based | Compact output; defaults on for plan/sandbox and off for accept-edits | | timeout_ms | number | 300000 | Timeout in milliseconds |

Models

Aliases map to agy's canonical machine names (run agy models to list them):

| Alias | agy machine name | Typical use | |-------|------------------|-------------| | flash-low | gemini-3.6-flash-low | Trivial, few-step, high-volume work | | flash-medium | gemini-3.6-flash-medium | Default coding, exploration, and tests | | flash-high | gemini-3.6-flash-high | Difficult agentic work | | pro-low | gemini-3.1-pro-low | Advanced reasoning | | pro-high | gemini-3.1-pro-high | Hardest Gemini reasoning | | sonnet | claude-sonnet-4-6 | Normal Claude coding and review | | opus | claude-opus-4-6-thinking | Hardest architecture and root-cause review | | gpt-oss | gpt-oss-120b-medium | Alternative open model |

Resolution order is explicit model, then explicit legacy tier, then flash-medium. Legacy mappings remain flashflash-high, flash-loflash-low, and propro-high. Run agy models if Antigravity changes its display names or plan availability.

Quota-aware routing

| Work | Produce | Cross-review when consequential | |------|---------|---------------------------------| | Routine bulk work | flash-medium (Gemini quota group) | sonnet with mode=plan | | Claude-group implementation | sonnet (Claude quota group) | flash-medium with mode=plan | | Hard reasoning | Escalate to pro-high or opus only after the cheaper model is insufficient | Opposite family |

Batch related work, prefer digest=true for non-write calls, and avoid parallel calls inside one shared-quota group. Do not spend both groups on trivial tasks. Pi should review the diff and run verification after every accept-edits call.

# Gemini produces, Claude reviews
agy_execute prompt="Implement the approved refactor" model=flash-medium mode=accept-edits
agy_execute prompt="Review the resulting diff" model=sonnet mode=plan digest=true

# Claude produces, Gemini reviews
agy_execute prompt="Fix the parser root cause" model=sonnet mode=accept-edits
agy_execute prompt="Review the resulting diff" model=pro-low mode=plan digest=true

How pi-agy shapes the handoff

Pi delegates to agy as a producer, not an autonomous agent. Each call is framed so the result is verifiable and parseable — this is where pi-agy adds value over running agy bare:

  • Mode-aware flags. plan is read-only. accept-edits and sandbox both write, so pi-agy passes --dangerously-skip-permissions for them (headless -p mode auto-denies writes without it). plan/sandbox additionally get --output-format json.
  • Phase-aware prompt framing. plan prompts are prefixed to explore only; sandbox notes isolation; accept-edits gets a verify-loop line.
  • Verify-loop injection. In accept-edits, if the project's package.json has a test script, pi-agy appends After editing, run \npm test` and fix failures until it passes.` — implementing Google's own Best Practices ("provide a local verification mechanism… run the local test command").
  • Structured output. plan/sandbox return JSON; pi-agy extracts the .response field so Pi receives the answer, not the raw envelope (with a safe fallback to raw text on schema drift).

Safety

  • Pre-flight checks verify agy is installed and the CLI can reach its backend (agy --version + agy models).
  • agy always runs with detached stdin (stdio: ['ignore', 'pipe', 'pipe']) to prevent hanging.
  • --dangerously-skip-permissions is used only for accept-edits/sandbox (the modes that write), scoped to the --add-dir workspace; plan never receives it.
  • Output is truncated to 8000 characters to protect Pi's context window.
  • Always review the git diff after accept-edits mode.

Development

npm test

Changelog

See CHANGELOG.md for release history.

License

MIT