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

brain-hive

v0.1.0

Published

AI agent orchestration framework using Claude Agent SDK - coordinate multiple specialized agents via a manager

Readme

@moojo/brain-hive

npm version CI License: MIT

AI agent orchestration framework using the Claude Agent SDK. Coordinate multiple specialized agents through a manager that delegates tasks to the right specialists.

Installation

npm install @moojo/brain-hive

Overview

Instead of working with a single AI assistant, Brain Hive gives you a coordinated team of specialists, each optimized for specific tasks. The team composition is fully configurable—you define the specialists that make sense for your workflow.

How It Works

  1. User submits a request via CLI (e.g., "Review the auth module and fix any issues")
  2. Manager agent analyzes the request and breaks it into tasks
  3. Manager delegates to appropriate specialists
  4. Specialists execute their assigned tasks independently
  5. Manager synthesizes results and reports back to user

Usage

npx brain-hive                        # Start in read-only mode
npx brain-hive --allow-writes         # Enable file modifications
npx brain-hive --config my-team.json  # Load custom team configuration
npx brain-hive --log-dir ./my-logs    # Custom log directory

CLI Options

| Option | Description | | ------------------ | ------------------------------------------------------------------------------------ | | --config <path> | Path to team configuration JSON file | | --allow-writes | Enable write operations (Edit, Write, Bash). Without this flag, agents are read-only | | --log-dir <path> | Directory for session logs (defaults to ./logs) | | --print, -p | Process a single prompt and exit (non-interactive mode) |

Team Configuration

Brain Hive is a generic orchestration framework—the team members are entirely up to you. Define specialists that match your needs: security auditors, test writers, documentation authors, data analysts, or any other role.

Teams are defined in a JSON file with the following structure:

{
  "members": [
    {
      "name": "code-reviewer",
      "description": "Expert code reviewer who analyzes code for bugs and best practices",
      "systemPrompt": "You are an expert code reviewer...",
      "tools": ["Read", "Glob", "Grep"],
      "model": "haiku"
    },
    {
      "name": "implementer",
      "description": "Senior developer who implements features and fixes",
      "systemPrompt": "You are a senior developer...",
      "tools": ["Read", "Write", "Edit", "Bash", "Glob", "Grep"],
      "model": "sonnet"
    }
  ]
}

Member Properties

| Property | Description | | -------------- | ----------------------------------------------------------------------------------------- | | name | Identifier used for delegation | | description | What the agent specializes in (shown to the manager) | | systemPrompt | Instructions for the agent's behavior | | tools | Available tools: Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch | | model | Claude model: haiku (fast/cheap), sonnet (balanced), opus (powerful), or inherit |

Example Teams

Code Review Team:

{
  "members": [
    { "name": "reviewer", "description": "Code reviewer", "tools": ["Read", "Glob", "Grep"], "model": "haiku" },
    { "name": "implementer", "description": "Developer", "tools": ["Read", "Write", "Edit", "Bash"], "model": "sonnet" }
  ]
}

Security Audit Team:

{
  "members": [
    {
      "name": "security-auditor",
      "description": "Security specialist",
      "tools": ["Read", "Glob", "Grep"],
      "model": "sonnet"
    },
    {
      "name": "researcher",
      "description": "Vulnerability researcher",
      "tools": ["Read", "WebSearch", "WebFetch"],
      "model": "haiku"
    }
  ]
}

Features

  • Configurable teams - Define any team structure via JSON
  • Safety modes - Read-only by default; opt-in to writes
  • Session logging - All interactions logged to JSONL for audit/debugging
  • Conversation continuity - Sessions persist for multi-turn workflows
  • Visual feedback - Clear CLI output showing which agent is working

Use Cases

  • Code reviews across large codebases
  • Research + implement workflows (researcher gathers info, implementer acts)
  • Complex refactoring where planning, review, and implementation benefit from separation
  • Security audits with specialized scanning and remediation agents
  • Documentation with research and writing specialists

Programmatic Usage

import { runBrainHive } from '@moojo/brain-hive'

await runBrainHive({
  configPath: './my-team.json',
  logDir: './logs',
  allowWrites: true,
})

License

MIT