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

subagent-cli

v0.3.3

Published

sa — Morph Code CLI (Claude Code fork with multi-provider LLM, WarpGrep, and subagent support)

Readme

mc — Morph Code

A compiled fork of Claude Code with WarpGrep semantic code search, multi-provider LLM support, and subagent orchestration. Ships as a single native binary per platform.

Install

curl -fsSL subagents.com/install | bash

Or with npm:

npm install -g @morphllm/morphcode

Usage

# Interactive mode
mc

# Single prompt
mc -p "refactor the auth module"

# Print mode (non-interactive, for scripts)
mc -p "explain this codebase" --print

# Specify model
mc --model claude-sonnet-4-6
mc --model opus

# List available agents
mc agents

What's different from Claude Code

WarpGrep agent — Semantic code search powered by Morph. The warpgrep subagent understands code structure, not just text patterns. Always registered alongside Explore and Plan.

Compiled binary — Ships as a native Mach-O / ELF binary (like Claude Code itself). Starts instantly, no runtime dependencies.

Multi-provider LLM — Set PI_ENGINE=on to route through OpenAI, Google, Mistral, or any provider supported by pi-ai.

Explore & Plan agents — Always enabled. The Explore agent prefers WarpGrep over regex grep when available.

Agents

$ mc agents

6 active agents

Built-in agents:
  Explore          · haiku    — Fast codebase exploration
  Plan             · inherit  — Architecture and implementation planning
  warpgrep         · haiku    — Semantic code search via Morph
  general-purpose  · inherit  — Research, code search, multi-step tasks
  claude-code-guide · haiku   — Questions about features and usage
  statusline-setup · sonnet   — Configure status line

Environment variables

| Variable | Required | Purpose | |----------|----------|---------| | ANTHROPIC_API_KEY | Yes (or OAuth via mc auth login) | Anthropic API access | | MORPH_API_KEY | No | Enables WarpGrep and FastApply tools | | OPENAI_API_KEY | No | For PI_ENGINE multi-provider mode | | GOOGLE_API_KEY | No | For PI_ENGINE multi-provider mode | | PI_ENGINE | No | Set to on to route LLM calls through pi-ai |

Platform binaries

Published to npm as platform-specific packages:

| Platform | Package | |----------|---------| | macOS Apple Silicon | @morphllm/morphcode-darwin-arm64 | | macOS Intel | @morphllm/morphcode-darwin-x64 | | Linux x64 | @morphllm/morphcode-linux-x64 | | Linux arm64 | @morphllm/morphcode-linux-arm64 | | Windows x64 | @morphllm/morphcode-windows-x64 |

Development

# Run from source (requires Bun)
cd packages/subagent-cli
bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx

# Build native binary
bun build --compile _entry.ts --outfile dist/mc --target bun

# Run tests
npx vitest --run

# List agents
bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx agents

Architecture

Built on Claude Code v2.1.88 source, compiled to a native binary via bun build --compile.

Key modifications:

  • src/tools/AgentTool/built-in/warpGrepAgent.ts — WarpGrep subagent
  • src/tools/WarpGrepTool/WarpGrepTool.ts — WarpGrep as a Claude Code Tool
  • src/tools/AgentTool/builtInAgents.ts — Explore/Plan always enabled, warpgrep registered
  • src/engine/ — Pi-mono integration layer for multi-provider LLM
  • src/query/deps.ts — LLM call routing (Anthropic default, pi-ai when PI_ENGINE=on)
  • stubs/ — Build-time stubs for unavailable Anthropic-internal packages
  • .github/workflows/publish-morphcode.yml — Multi-platform binary build and npm publish