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

agent-factory-discord

v1.0.0

Published

Multi-agent Discord bot with debate, routing, and local/cloud agent support

Readme

agent-factory-discord

Multi-agent Discord bot for routing prompts across local and cloud agents, with optional debate workflows and review steps.

This package is a good fit for teams that want one Discord interface over several model backends instead of binding themselves to a single provider.

Features

  • Auto-routing by task type
  • Explicit agent selection with !agent: commands
  • Debate mode with multiple agents
  • Optional red-team review flow
  • Support for local models, remote hosted models, CLI-based agents, and API-based agents

Supported Agent Types

  • local Ollama models
  • remote HTTP-backed local models
  • Claude-backed flows
  • Codex-backed flows
  • Gemini-backed flows

The package is designed so you can enable only the agents you actually use.

Example Commands

What is X?
!claude: explain this stack trace
!local: summarize this README
!gemini: analyze this long PDF

!debate: should we ship this API design?
!debate claude vs local: compare these approaches
!debate claude vs local 3: evaluate this refactor plan

Setup

  1. Copy .env.example to .env
  2. Create a Discord bot and add it to your server
  3. Configure the agents you want to enable
  4. Start the bot
cp .env.example .env
npm install
npm run dev

Routing Model

The router is intended to favor cheap or local execution first for lightweight tasks, then escalate to stronger models for long documents, vision, or higher-context work.

Environment

Common settings include:

  • DISCORD_TOKEN
  • DISCORD_CLIENT_ID
  • DISCORD_GUILD_ID
  • DISCORD_TASK_CHANNEL_ID
  • AGENT_ROUTER_ENABLED
  • OLLAMA_URL
  • GEMINI_API_KEY

Some optional settings in .env.example refer to a remote model endpoint under the label BEAST_*. You can treat that as a generic remote local-model service and rename those environment variables in your own deployment if you prefer.

Notes

  • This package assumes Discord as the interaction surface
  • It is best used as an app starter or template rather than a drop-in library
  • You should review agent permissions carefully before enabling execution-oriented flows