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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@open-composer/agent-registry

v0.1.0

Published

Pokemon-style agent management for OpenComposer, following open-swe patterns for model configuration and provider systems.

Readme

@open-composer/agent-registry

Pokemon-style agent management for OpenComposer, following open-swe patterns for model configuration and provider systems.

Overview

Agent registry package that extends Open SWE patterns with Pokemon-style agent selection and management. Features include:

  • Agent Schema: Extends Open SWE's model selection patterns with Pokemon attributes
  • Provider Integration: Uses existing MODEL_OPTIONS and provider configurations
  • State Management: Follows withLangGraph patterns for agent registry state
  • Team Composition: Multi-agent coordination using Open SWE task assignment patterns
  • Performance Tracking: Integrates with ModelTokenData and usage analytics

Features

Pokemon-Style Agent System

  • Agent Evolution: Based on MODEL_OPTIONS hierarchy (Haiku → Sonnet → Opus)
  • Type Effectiveness: Using LLMTask specializations
  • Stat Calculation: Based on model performance benchmarks
  • Team Composition: Using Open SWE's coordination patterns
  • Visual Sprites: Mapped to model providers and capabilities

Agent Tiers

  • Starter: Lightweight, fast models (Haiku, Nano, Mini)
  • Evolved: Balanced, versatile models (Sonnet, GPT-5, Gemini Pro)
  • Legendary: Powerful, advanced models (Opus, O1, Extended Thinking)

Task Specializations

  • 🧭 Planner: Strategic planning and task decomposition
  • Programmer: Code generation and implementation
  • 🔍 Reviewer: Code review and quality assurance
  • 🌊 Router: Request routing and classification
  • 🌿 Summarizer: Content summarization and condensing

Installation

bun add @open-composer/agent-registry

Usage

Basic Usage

import { getAgentRegistry, AgentFactory } from '@open-composer/agent-registry';

// Get the global registry instance
const registry = getAgentRegistry();

// Create a custom agent
const agent = AgentFactory.createAgent(
  'claude-sonnet-4-0',
  'anthropic',
  ['planner', 'programmer'],
  'Custom Agent'
);

// Register the agent
registry.registerAgent(agent);

// Get agents by task
const plannerAgents = registry.getAgentsByTask('planner');

// Get registry statistics
const stats = registry.getStats();
console.log(stats);

Squad Management

import { getSquadLauncher } from '@open-composer/agent-registry';

const launcher = getSquadLauncher();

// Create a quick squad for a specific task
const team = launcher.createQuickSquad('programmer', 'My Coding Squad');

// Launch the squad
const results = await launcher.launchSquad(team.id, {
  task: 'programmer',
  priority: 1,
});

// Check results
for (const result of results) {
  console.log(`${result.agentName}: ${result.success ? 'Success' : 'Failed'}`);
  console.log(`Tokens: ${result.tokensUsed}, Latency: ${result.latency}ms`);
}

Interactive UI

import { startSquadSelector } from '@open-composer/agent-registry';

// Start interactive Pokemon-style UI
await startSquadSelector();

CLI Usage

Squad management is available through the open-composer CLI:

# Start interactive mode
open-composer squad interactive

# Create a quick squad
open-composer squad quick programmer --name "Code Squad" --launch

# List all agents
open-composer squad list-agents

# Filter agents
open-composer squad list-agents --tier legendary
open-composer squad list-agents --provider anthropic
open-composer squad list-agents --task programmer

# Show agent details
open-composer squad show <agentId>

# Compare agents
open-composer squad compare <agent1Id> <agent2Id>

# View registry stats
open-composer squad stats

# List all squads
open-composer squad list-squads

# Launch a squad
open-composer squad launch <squadId> <task>

For more detailed CLI documentation, see the main open-composer CLI documentation.

API Reference

Core Types

export interface OpenComposerAgent {
  id: string;
  name: string;
  modelName: string;
  provider: Provider;
  tier: 'starter' | 'evolved' | 'legendary';
  taskSpecializations: LLMTask[];
  pokemonAttributes: PokemonAttributes;
  compatibility: ModelCompatibility;
  description: string;
  createdAt: Date;
  performance: AgentPerformance;
}

export interface AgentTeam {
  id: string;
  name: string;
  description: string;
  agents: OpenComposerAgent[];
  createdAt: Date;
  config?: TeamConfig;
}

export interface SquadConfig {
  name: string;
  description: string;
  agentIds: string[];
  taskDistribution: 'round-robin' | 'specialized' | 'balanced';
  maxConcurrent: number;
  fallbackEnabled: boolean;
}

Agent Factory

class AgentFactory {
  static createAgent(
    modelName: string,
    provider: Provider,
    tasks: LLMTask[],
    customName?: string
  ): OpenComposerAgent;

  static createDefaultAgents(): OpenComposerAgent[];
}

Agent Registry

class AgentRegistry {
  registerAgent(agent: OpenComposerAgent): void;
  getAgent(id: string): OpenComposerAgent | undefined;
  getAllAgents(): OpenComposerAgent[];
  getAgentsByTask(task: LLMTask): OpenComposerAgent[];
  getAgentsByProvider(provider: Provider): OpenComposerAgent[];
  getAgentsByTier(tier: AgentTier): OpenComposerAgent[];

  createTeam(name: string, description: string, agentIds: string[], config?: TeamConfig): AgentTeam;
  createSquad(squadConfig: SquadConfig): AgentTeam;

  updateAgentPerformance(agentId: string, metrics: PerformanceMetrics): void;
  getStats(): RegistryStats;
}

Squad Launcher

class SquadLauncher {
  async launchSquad(teamId: string, context: SquadExecutionContext): Promise<SquadExecutionResult[]>;
  getRecommendedAgents(task: LLMTask, count?: number): OpenComposerAgent[];
  createQuickSquad(task: LLMTask, squadName?: string): AgentTeam;
}

Integration with Open SWE

This package integrates seamlessly with open-swe patterns:

Model Configuration

// Extends MODEL_OPTIONS with Pokemon attributes
const agent = AgentFactory.createAgent(
  'claude-sonnet-4-0',  // From TASK_TO_CONFIG_DEFAULTS_MAP
  'anthropic',           // From PROVIDER_FALLBACK_ORDER
  [LLMTask.PROGRAMMER],  // From LLMTask enum
);

Provider System

// Uses open-swe provider configurations
const PROVIDER_FALLBACK_ORDER = ['openai', 'anthropic', 'google-genai'] as const;

Task Assignment

// Follows LLMTask patterns for specialization
enum LLMTask {
  PLANNER = 'planner',
  PROGRAMMER = 'programmer',
  REVIEWER = 'reviewer',
  ROUTER = 'router',
  SUMMARIZER = 'summarizer',
}

Development

# Install dependencies
bun install

# Build
bun run build

# Type check
bun run type-check

# Lint
bun run lint

# Run squad CLI
bun run squad

License

MIT