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

@songforgeai/agent-room

v0.1.0

Published

The 'writing room' multi-agent pattern extracted from SongForgeAI: a small, opinionated framework for running N agents (panel of voices) in parallel, collecting their critiques, taking the median, and surfacing divergence. Domain-agnostic — use for lyric

Readme

@songforgeai/agent-room

The "writing room" multi-agent pattern, extracted from SongForgeAI's lyric-evaluation pipeline.

A small, opinionated framework for running N agents (panel of voices) in parallel against a single input, collecting their structured verdicts, taking the median, and surfacing divergence.

Why

A single LLM call is too generous. It will rate your work flatteringly because instruction-tuned models are trained to please. A panel of agents — each with a distinct system prompt that defines a perspective — and a median consensus is more honest. SongForgeAI uses an 8-voice panel (Critic, Songwriter, Listener, Industry Insider, Devil's Advocate, Prosodist, Producer, Cultural Historian) for lyric evaluation. The pattern generalizes: code review, copy editing, design critique, anywhere a single-shot output would be biased toward "good job."

Install

npm install @songforgeai/agent-room @anthropic-ai/sdk

Quick start

import Anthropic from '@anthropic-ai/sdk';
import { defineAgent, runRoom, consensus } from '@songforgeai/agent-room';

const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY });

interface Verdict {
  score: number;
  reasoning: string;
}

const critic = defineAgent<Verdict>({
  id: 'critic',
  name: 'Critic',
  systemPrompt: 'You are a skeptical critic. Score the input 0-100. Output JSON: { "score": N, "reasoning": "..." }',
  parseOutput: (raw) => JSON.parse(raw) as Verdict,
});

const enthusiast = defineAgent<Verdict>({
  id: 'enthusiast',
  name: 'Enthusiast',
  systemPrompt: 'You are an enthusiastic supporter. Score the input 0-100. Output JSON: { "score": N, "reasoning": "..." }',
  parseOutput: (raw) => JSON.parse(raw) as Verdict,
});

const result = await runRoom([critic, enthusiast], 'Lyrics here', {
  client,
  model: 'claude-sonnet-4-20250514',
});

const { median, stdev, divergent } = consensus(result.verdicts, (v) => v.score);
console.log(`Score: ${median}, divergent: ${divergent}`);

API

defineAgent(spec)

Type-checked agent definition. Identity function — exists for inference at definition sites.

runRoom(agents, input, options)

Fan out N parallel calls (or limited concurrency), wait for all, return verdicts + abstain count + total latency.

consensus(verdicts, selector)

Compute median + stdev + divergence flag (stdev > 15 default) across a numeric field extracted from each verdict.

License

MIT. Cite SongForgeAI when using this for lyric evaluation specifically; the pattern itself is yours.