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-agnes-tools

v0.3.4

Published

Agnes AI for pi: /model text model catalog (intl + CN) plus image/video generation as callable tools + auto-loaded skill. No model switch needed for media.

Readme

pi-agnes-tools

The single Agnes AI plugin for pi: text model catalog (selectable via /model) plus image/video generation as custom tools + skill. No model switch needed for media — the agent just calls a tool.

npm version license: MIT

Quick start

pi install npm:pi-agnes-tools

Export an API key, then use it:

export AGNES_API_KEY=sk-...          # international endpoint
export AGNES_CN_API_KEY=cn-sk-...    # China endpoint (optional)
# Text chat via the Agnes model catalog
pi --model agnes/agnes-2.5-flash "hello"

# Image / video: just ask in any pi session — the agnes-media skill teaches
# the model to call the agnes_image / agnes_video tools.
pi "Generate a 2-second video of a red apple falling off a wooden table, photorealistic"

Or run /login once and pi stores the key in ~/.pi/agent/auth.json for you.

What it registers

1. Text models (in /model)

Only text/LLM models are registered. Image/video are not selectable models — they live in the tools + skill. Both regions:

| Provider | Region | Base URL | Auth | |---|---|---|---| | agnes | International | https://apihub.agnes-ai.com/v1 | AGNES_API_KEY | | agnes-cn | China | https://api.agnes-ai.cn/v1 | AGNES_CN_API_KEY |

Seed text models: agnes-2.0-flash, agnes-2.5-flash, agnes-2.5-pro, agnes-2.5-pro-alpha, agnes-3.0-flash. Live /v1/models discovery adds newer text models automatically (image/video entries are filtered out).

agnes-cn only appears once a CN key is configured (env var or a key stored under agnes-cn in auth.json).

2. Media tools + skill (any chat model)

Two ways to generate media — no /model switch:

  • Tools — agnes_image, agnes_video callable by any model.
  • Skill — agnes-media (auto-loaded) teaches the model how to call the tools: prompt shaping, reference-image handling, endpoint choice, defaults.

Defaults: image agnes-image-2.5-flash, video agnes-video-2.5-flash. Output: .pi/generated-images/, .pi/generated-videos/ (project-relative).

| Tool | Key params | |---|---| | agnes_image | prompt, model, endpoint, images (base64 data URIs), response_format | | agnes_video | prompt, model, endpoint, images (1 = img2vid, >1 = keyframes), num_frames, frame_rate |

Install sources

pi install npm:pi-agnes-tools
pi install git:github.com/DraconDev/pi-agnes-tools

Listed in the pi.dev/packages gallery — it auto-indexes npm packages tagged with the pi-package keyword (this package has it, plus pi-extension / pi-skill), and carries an image field in its pi manifest for a visual preview card.

Replaces pi-agnes. This plugin owns the agnes / agnes-cn providers outright. Uninstall pi-agnes if you have it — two registrations would overwrite each other.

Auth

Resolution order: AGNES_API_KEY / AGNES_CN_API_KEY env vars → /login-stored key in ~/.pi/agent/auth.json.

Notes

  • executionMode: parallel for image (fast, stateless); sequential for video (long-running poll, up to 30 min).
  • Video model availability is per-distributor. In practice agnes-video-v2.0 is the reliable text-to-video model (5s / 720p clip, completed payload carries the video at a top-level url — with metadata.url as a fallback; the tool handles both). agnes-video-2.5-flash may require a mode field this tool does not send, and agnes-video-2.5 can be unavailable under some plans ("No available channel"). If the default 2.5-flash fails, call the tool with model: "agnes-video-v2.0".
  • num_frames / frame_rate are only sent when explicitly provided — some video routes reject those request fields and apply their own defaults.
  • Debug: PI_AGNES_TOOLS_DEBUG=1 logs registration + request decisions to stderr.
  • MIT licensed. Source: github.com/DraconDev/pi-agnes-tools.