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

@tian.zuo/pi-antigravity

v0.3.0

Published

Use Google Antigravity (agy) models inside the pi coding agent via the agy stream-json RPC, with pi as the UI.

Readme

@tian.zuo/pi-antigravity

Use Google Antigravity (agy) models inside the pi coding agent. pi stays your UI — chat, model picker, tool cards, sessions — while the Gemini agent loop runs underneath through the agy CLI.

Highlights

  • Antigravity models in pi's model pickerantigravity/gemini-3.7-flash and friends, with automatic model discovery.
  • Native pi experience — agy's tool calls render as normal pi tool cards; response text streams live.
  • Pi-tool bridge — agy can call your pi extension tools (subagents, web search, custom tools). The tool really executes in pi, with pi's permissions, hooks, and rendering.
  • Skill passing — your global pi Agent Skills become callable tools inside agy turns (pi__grilling, pi__herdr, …).
  • Background-task manager — long-running agy commands are tracked in a dashboard and stoppable with one keystroke (/agy-tasks).
  • Artifact browser — images and files agy creates are listed and openable via /agy-artifacts, with a status-bar hint when new ones appear.

How it works

flowchart TB
    subgraph pi["pi coding agent (the UI)"]
        UI["You: chat, tool cards,\npermissions, sessions"]
        Prov["antigravity provider\n(one agy turn per request)"]
        Bridge["pi-tool bridge\n(local MCP server on 127.0.0.1)"]
        Skills["pi Agent Skills"]
        Tools["pi extension tools\n(subagents, web search, ...)"]
    end

    subgraph agy["agy CLI (the agent loop)"]
        Agent["Gemini agent\n57+ built-in tools"]
    end

    UI <-- "stream events:\ntext, tool cards, usage" --> Prov
    Prov -- "spawn / resume:\nagy --print ... --output-format stream-json" --> Agent
    Agent -- "wants a pi tool:\ncall pi__<name> (MCP)" --> Bridge
    Bridge -- "route into live turn" --> Prov
    Prov -- "stopReason: toolUse" --> UI
    UI -- "pi executes the REAL tool" --> Tools
    Tools -- "result" --> Prov
    Prov -- "result back to agy" --> Bridge
    Skills -- "global skills become\npi__<skill_name> tools" --> Bridge

Install

pi install npm:@tian.zuo/pi-antigravity
pi --model antigravity/gemini-3.7-flash

Try from a checkout: pi -e ./packages/pi-antigravity --model antigravity/gemini-3.7-flash

Requires the agy CLI installed and logged in (v1.1.17+). Override the binary with AGY_BINARY.

Features

Pi-tool bridge

On session start, the extension runs a small local MCP server and registers it with agy as pi-bridge-<pid>. Your active pi tools appear to agy as pi__<name>:

  1. agy calls pi__<name> — the bridge routes the call into its live turn.
  2. pi ends the assistant message with a tool call for the real pi tool — it renders as a normal card and goes through pi's normal permissions and hooks.
  3. pi executes it, and the result is handed back to the still-running agy turn.

Built-in tools (read, bash, …) stay hidden because agy has native equivalents. Calls fail safe: no active turn, unknown tool, or a 480-second timeout returns an error to agy instead of hanging.

Skill passing

Your pi skills work inside agy turns:

  • Workspace skills (.agents/skills/ in the project) need nothing — agy discovers and activates them natively.
  • Global skills (~/.pi/agent/skills/, ~/.agents/skills/) each become their own bridge tool, named after the skill. Calling it returns the skill's full SKILL.md plus its bundled files.
  • Skills respect pi's own config: --no-skills, pi config toggles, /reload. Skills marked disable-model-invocation are skipped.

Background tasks (/agy-tasks)

Long-running commands (dev servers, watchers) become agy background tasks. After each turn a hint appears above the editor:

■ 1 agy background task • /agy-tasks to view

The dashboard lists every task with pid and status: x stops it (whole process group), r rescans, esc closes. Closing pi stops all live tasks automatically. Non-interactive: /agy-tasks stop <task-id>|all.

Artifacts (/agy-artifacts)

Images and files agy creates land in a per-conversation artifact store. A hint appears when new ones exist:

◆ 1 agy artifact • /agy-artifacts to view

The dashboard shows name, type, size, and origin (generated vs uploaded). Press o to open a file with the system default app. Non-interactive: /agy-artifacts open <name>.

Commands

| Command | What it does | | --- | --- | | /agy | Conversation status (id, model, turns) | | /agy reset | Drop the agy conversation; next turn starts fresh | | /agy models | Re-discover models and re-register the provider | | /agy-tasks | Background-task dashboard (stop <task-id>|all for scripts) | | /agy-artifacts | Artifact browser (open <name> for scripts) |

Configuration flags

| Flag | Effect | | --- | --- | | PI_ANTIGRAVITY_PI_TOOL_BRIDGE=0 | Turn the bridge off. Skills fall back to direct file reads. | | PI_ANTIGRAVITY_EXPOSE_BUILTIN_TOOLS=1 | Also expose pi's built-in tools through the bridge. | | AGY_BINARY=/path/to/agy | Use a specific agy binary. |

Good to know

  • Permissions: --dangerously-skip-permissions is always passed. For autonomous agy shell commands, add { "permissions": { "allow": ["command(*)"] } } to ~/.gemini/antigravity-cli/settings.json. Bridge calls need no extra rules.
  • Artifact review: headless runs cannot show agy's review panel, so image generation would abort after creating the file. Set "artifactReviewMode": "always-proceed" in the same settings.json to let artifacts through (applies to interactive agy too).
  • Image generation errors: generate_image can hit Google-side 429 rate limits; agy retries and usually succeeds — failed attempts show on the card with the real reason.
  • Conversation memory: lives on agy's side and is reused across turns. It resets when you switch models, change projects, or run /agy reset — agy pins conversations to their birth workspace, so reusing one from another project would write into the wrong place.
  • Thinking level maps to agy --effort: low → low, medium → medium, high and above → high.
  • Cost display uses reference Gemini API prices (agy is subscription-billed). Override per model in ~/.pi/agent/models.json under providers.antigravity.modelOverrides.
  • The print interface is text-only; images in context are replaced by an omission note. Model discovery caches for 24h with a bundled fallback.
  • If an older globally installed copy exists, remove it first: pi remove npm:@tian.zuo/pi-antigravity.

Development

pnpm --filter @tian.zuo/pi-antigravity run check
pnpm --filter @tian.zuo/pi-antigravity test

Design history and probe results: docs/pi-tool-bridge-plan.md.

Reference: Pi-cursor-sdk