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

@shogo-ai/agent

v1.10.0

Published

Shogo Agent — agent-runtime primitives (loop, router, hooks, orchestration) for backends built on pi-ai/pi-agent-core.

Readme

@shogo-ai/agent

Agent-runtime primitives for backends built on @mariozechner/pi-ai + @mariozechner/pi-agent-core. This package gives you the building blocks for an agent loop without forcing a particular gateway shape, persistence layer, or transport.

What's included

| Subpath | What | | --- | --- | | @shogo-ai/agent/agent-loop | runAgentLoop — the iteration loop with loop detection, microcompaction, and tool orchestration baked in. | | @shogo-ai/agent/pi-adapter | Helpers for resolving models/keys, packing/unpacking pi-ai messages, and converting between pi-agent-core's AgentMessage and pi-ai's Message. | | @shogo-ai/agent/model-catalog | Authoritative model list with capabilities, pricing, tier defaults. | | @shogo-ai/agent/model-router | Auto-routing between model tiers based on task complexity classification. | | @shogo-ai/agent/tool-orchestration | Concurrency-safe tool dispatch (Semaphore, WriteMutex, wrapToolsWithOrchestration). | | @shogo-ai/agent/loop-detector | Circuit breaker for tool-call/text cycles. | | @shogo-ai/agent/microcompact | Inline summarization of long conversations to fit context windows. | | @shogo-ai/agent/prefix-fingerprint | Deterministic hashing of system/tools/messages for prefix-cache eligibility. | | @shogo-ai/agent/hooks | Event-driven hook system with two bundled defaults (command-logger, session-memory). |

Required peers

@mariozechner/pi-ai and @mariozechner/pi-agent-core are declared as optional peer dependencies. Install them when you actually use the loop, adapter, or any module that touches pi-ai types:

bun add @mariozechner/pi-ai @mariozechner/pi-agent-core

License

MIT — see LICENSE.