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

@zhixuan92/multi-model-agent-core

v5.5.1

Published

Core library for multi-model-agent: provider runners (Claude, Codex), routing logic, config schema, and sandbox primitives.

Readme

@zhixuan92/multi-model-agent-core

Runtime library for multi-model-agent. Import it to run multi-provider agent tasks directly from your own Node program — same routing, supervision, and review pipeline, without the HTTP server.

Want the standalone service instead? Install @zhixuan92/multi-model-agent — it wraps this library in a local HTTP daemon with client-installable skills for Claude Code, Gemini CLI, Codex CLI, and Cursor.

Install

npm install @zhixuan92/multi-model-agent-core

Requires Node >= 22. ESM only.

Quick example

import { loadConfigFromFile } from '@zhixuan92/multi-model-agent-core/config/load';
import { runTwoPhasePipeline, loadSkill, TaskRegistry } from '@zhixuan92/multi-model-agent-core';

const config = await loadConfigFromFile();

What's inside

  • Provider runners — Claude (via agent-sdk) and Codex (via CLI subprocess), plus any OpenAI-compatible endpoint
  • Unified task API — all 11 task types (delegate, audit, review, debug, execute-plan, investigate, research, journal-record, journal-recall, retry, main) flow through a single two-phase pipeline
  • Skill-driven prompts — each task type has implement.md + review.md skill files that drive worker behavior
  • Model profile registry — 32 model families with cost/tier/effort metadata for routing and cost computation
  • Bounded execution — per-task wall-clock deadlines, idle-stall detection, abort signals, and cost tracking
  • Observability — structured event envelopes, JSONL logging, telemetry upload with consent rules

Subpath exports

| Subpath | What | |---|---| | . | Main entry — providers, task types, pipeline, config, reporting, observability | | ./config/schema | parseConfig, multiModelConfigSchema, serverConfigSchema | | ./config/load | loadConfigFromFile, loadAuthToken | | ./config/model-profile-registry | findModelProfile, extractCanonicalModelName, model family enum | | ./providers/provider-factory | createProvider factory, session safety ceiling | | ./bounded-execution/activity-tracker | ActivityTracker — heartbeat + stage transitions | | ./types | Cross-cutting types (task spec, run result, config, enums) | | ./reporting/structured-report | Structured report parsing | | ./error-codes | Error code constants | | ./events/envelope-bus | EnvelopeBus — pub/sub for structured observability | | ./events/log-writer | LogWriter — JSONL diagnostic sink | | ./events/task-envelope | TaskEnvelopeStore — per-task event accumulator | | ./events/telemetry-uploader | TelemetryUploader — wire record upload | | ./events/stderr-log-subscriber | StderrLogSubscriber — stderr event echo | | ./events/consent-rules | decideConsent — env / config / default precedence | | ./events/wire-schema | Wire record Zod schema (v6) | | ./events/jsonl-writer | JsonlWriter — append-only JSONL file writer | | ./research | Research orchestration + adapters (arxiv, semantic-scholar, github, openalex, crossref, pubmed) |

Diagnostic logging

Diagnostic logging is OFF by default.

{
  "diagnostics": {
    "log": false,
    "logDir": "/some/path"
  }
}

When diagnostics.log is true, JSONL records are appended to mma-YYYY-MM-DD.jsonl under diagnostics.logDir (defaults to ~/.mma/logs/).

mma serve --log       # persist to JSONL
mma logs --follow     # tail + filter

Full documentation

github.com/zhixuan312/multi-model-agent

License

MIT — Copyright (c) 2026 Zhang Zhixuan