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

sibling-repo

v0.2.0

Published

MCP server that spawns Claude Code agents in sibling repositories

Readme

sibling-repo

npm version License: MIT

An MCP server that gives Claude Code agents the ability to spawn fully contextualized Claude Code sessions in sibling repositories. Ask questions about a backend API from your frontend repo, plan cross-repo implementations, or trigger changes in another codebase — all through a single tool call. Supports background execution for running multiple agents in parallel.

Quick Start

# 1. Generate an OAuth token from your Claude subscription
claude setup-token
# Copy the output token

# 2. Create config directory and .env file
mkdir -p ~/.sibling-repo
cat > ~/.sibling-repo/.env << 'EOF'
CLAUDE_CODE_OAUTH_TOKEN=<paste-your-token-here>
SIBLING_REPOS={"backend":"/path/to/backend","frontend":"/path/to/frontend"}
EOF

# 3. Register with Claude Code (npx — no install needed)
claude mcp add --scope user sibling-repo -- npx -y sibling-repo

# 4. Launch Claude Code and try it
claude
> Use sibling-repo to explore the backend and find the check-in endpoint contract

Installation

Register sibling-repo as an MCP server with Claude Code. No installation required — npx downloads and runs the latest version automatically:

claude mcp add --scope user sibling-repo -- npx -y sibling-repo

Or with a global install for faster startup:

npm install -g sibling-repo
claude mcp add --scope user sibling-repo -- sibling-repo

To verify: run claude mcp list or use /mcp inside a Claude Code session.

How It Works

┌─────────────────────────────────────────────┐
│  Claude Code session (e.g., in frontend repo)│
│                                             │
│  Agent calls: ask_repo("backend", prompt)   │
│         │                                   │
│         ▼                                   │
│  ┌─────────────────────────┐                │
│  │  sibling-repo MCP server│ (stdio)        │
│  │  (Node.js process)      │                │
│  └──────────┬──────────────┘                │
│             │                               │
└─────────────┼───────────────────────────────┘
              │  Spawns via Claude Agent SDK
              ▼
┌─────────────────────────────────────────────┐
│  Ephemeral Claude Code session              │
│  cwd: ~/repos/backend                       │
│  Loads backend's CLAUDE.md automatically    │
│  Tools scoped by mode (explore/plan/execute)│
│  Returns result to MCP server               │
└─────────────────────────────────────────────┘

When you call ask_repo, sibling-repo spawns a real Claude Code session in the target repository using the Claude Agent SDK. The spawned agent loads the target repo's CLAUDE.md, has tools scoped to that directory, and operates in a configurable mode. From the calling agent's perspective, it's a single tool call that returns the sibling agent's answer.

Documentation

| Document | Description | |----------|-------------| | Configuration | Environment variables, .env locations, per-project setup | | Usage | Tools, agent modes, conversation persistence, examples | | Development | Contributing, project structure, running tests |

Troubleshooting

"SIBLING_REPOS is not set" Create ~/.sibling-repo/.env with your repo configuration. See Configuration.

"Authentication failed" Run claude setup-token to generate a fresh OAuth token and update your .env file. Ensure ANTHROPIC_API_KEY is not set in your shell (it takes precedence over OAuth).

"Repo path does not exist" Check the path in your SIBLING_REPOS configuration. Paths must be absolute. ~ and $HOME are expanded automatically.

Agent returns no result The spawned agent may have hit SIBLING_MAX_TURNS. Increase the limit in your .env or write a more specific prompt.

Updating

  • npx: Updates are automatic — npx -y fetches the latest version on each launch.
  • Global install: Run npm update -g sibling-repo.
  • Local clone: git pull && npm install && npm run build

License

MIT