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

@toragonite/agent-mesh-claude

v0.1.1

Published

Claude Code adapter for agent-mesh — drive the official `claude` CLI as a headless worker (run / resume / stream / quota / auth), plus the absorbed claude-mesh background-agent, gateway, and bridge layers. Unofficial.

Readme

@toragonite/agent-mesh-claude

The Claude Code adapter for agent-mesh. It drives Anthropic's official claude CLI as a headless worker behind the vendor-neutral Adapter contract — so a Fleet can spawn runs, revise conversations, stream events, read quota, and route across vendors without knowing anything Claude-specific.

It also absorbs claude-mesh: the background-agent lifecycle (spawnAgent / listAgents / stopAgent), session discovery, the cross-session messaging gateway (MeshGateway), and the cross-account bridge (MeshBridge) are all re-exported and still usable on their own. The live claude.ai plan-usage reader (getLiveUsage) is bundled too and backs quota().

Unofficial. This package shells out to your local claude CLI and reads local files under your own login. It never reads, proxies, or logs your credentials, and makes no network calls of its own.

Install

npm install @toragonite/agent-mesh @toragonite/agent-mesh-claude

Requires Node ≥ 18.17 and the Claude Code CLI on your PATH (or pass a binary path).

Usage

import { Fleet } from '@toragonite/agent-mesh';
import { ClaudeAdapter } from '@toragonite/agent-mesh-claude';

const fleet = new Fleet().register(new ClaudeAdapter());

// One-shot run — routed to the only registered vendor here.
const res = await fleet.run({ prompt: 'Summarize the repo README in 3 bullets.' });
console.log(res.text, res.conversationId);

// Revise the same conversation.
const followUp = await fleet.resume('claude', res.conversationId, 'Now make it 1 bullet.');
console.log(followUp.text);

Every seam is injectable for hermetic tests: new ClaudeAdapter({ exec, lineStream, binary, defaultAccount, gateway, readTextFile, getUsage, env }). The env seam (default process.env) is the base of the spawned child's environment: when you inject it, it becomes the child's whole environment (plus CLAUDE_CONFIG_DIR for an explicit account), so introspection and execution always resolve the same account.

Behavior notes

  • Model selection. Omitting task.model lets the CLI choose its own default — the adapter passes no --model, so whatever model your claude install defaults to is what runs. availableModels() therefore advertises no default model: the adapter never injects one on your behalf. Pass task.model to pin a model; an id outside the known catalog still runs but adds a RunResult.note.
  • Resume working directory. ResumeOptions has no cwd field, so resume() reads opts.extra?.cwd when it is a string and runs the child there; otherwise it inherits the process working directory. Pass resume(id, message, { extra: { cwd: '/path/to/repo' } }) to run the revision in the conversation's workspace.

License

MIT © Toragonite