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

@agent-relay/acp-bridge

v2.2.24

Published

ACP (Agent Client Protocol) bridge for Agent Relay - expose relay agents to ACP-compatible editors like Zed

Readme

@agent-relay/acp-bridge

ACP (Agent Client Protocol) bridge for Agent Relay. Exposes relay agents to ACP-compatible editors like Zed.

What is ACP?

The Agent Client Protocol (ACP) is an open standard that enables AI agents to integrate with code editors. It's like LSP (Language Server Protocol) but for AI coding agents.

What does this bridge do?

This bridge allows ACP-compatible editors to communicate with Agent Relay agents:

┌─────────────────┐     ACP (stdio)    ┌─────────────────┐
│   Zed Editor    │ ◄────────────────► │  relay-acp      │
│   (or other)    │   JSON-RPC 2.0     │  (this bridge)  │
└─────────────────┘                    └────────┬────────┘
                                                │
                                       Relay Protocol
                                                │
                                       ┌────────▼────────┐
                                       │  Relay Daemon   │
                                       └────────┬────────┘
                                                │
                        ┌───────────────────────┼───────────────────────┐
                        │                       │                       │
                ┌───────▼───────┐       ┌───────▼───────┐       ┌───────▼───────┐
                │   Agent 1     │       │   Agent 2     │       │   Agent N     │
                │ (Claude Code) │       │ (Codex CLI)   │       │ (any CLI)     │
                └───────────────┘       └───────────────┘       └───────────────┘

Installation

npm install @agent-relay/acp-bridge

Usage

CLI

# Start the bridge
relay-acp --name my-agent --debug

# With custom socket path
relay-acp --socket /tmp/relay/my-workspace/sockets/daemon.sock

With Zed Editor

  1. Start the relay daemon:

    relay-daemon start
  2. Start some relay agents:

    relay spawn Worker1 claude "Help with coding tasks"
  3. Configure Zed to use the bridge. Add to your Zed settings:

    {
      "agent": {
        "custom_agents": [
          {
             "name": "Agent Relay",
             "command": "relay-acp",
             "args": ["--name", "zed-bridge"]
          }
        ]
      }
    }
  4. Open the Agent Panel in Zed (Cmd+? on macOS) and select "Agent Relay"

Or let the CLI configure Zed for you (writes agent_servers with the correct socket path):

agent-relay up --zed

This adds an entry similar to:

{
  "agent_servers": {
    "Agent Relay": {
      "type": "custom",
      "command": "relay-acp",
      "args": ["--name", "zed-bridge", "--socket", "/path/to/project/.agent-relay/relay.sock"]
    }
  }
}

Programmatic Usage

import { RelayACPAgent } from '@agent-relay/acp-bridge';

const agent = new RelayACPAgent({
  agentName: 'my-agent',
  socketPath: '/tmp/relay-daemon.sock',
  debug: true,
  capabilities: {
    supportsSessionLoading: false,
    modes: [
      { slug: 'default', name: 'Default', description: 'Standard mode' },
      { slug: 'review', name: 'Code Review', description: 'Focus on code review' },
    ],
  },
});

await agent.start();

Relay CLI commands from the Agent Panel

The bridge intercepts basic agent-relay commands typed in the Zed Agent Panel, so you can manage agents without a shell:

  • agent-relay spawn Worker claude "Review the current changes"
  • agent-relay release Worker
  • agent-relay agents (list connected agents)

Supported commands today: spawn/create-agent, release, agents/who. Others fall back to normal broadcast handling. The panel shows a help block on first message; type agent-relay help anytime to see it again.

How it Works

  1. Initialization: When an editor connects, the bridge advertises its capabilities
  2. Session Creation: Each conversation creates a new session
  3. Prompt Handling: User prompts are broadcast to all relay agents
  4. Response Streaming: Agent responses are streamed back to the editor

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | agentName | string | 'relay-acp' | Name used when connecting to relay daemon | | socketPath | string | auto | Path to relay daemon socket | | debug | boolean | false | Enable debug logging | | capabilities | object | - | ACP capabilities to advertise |

Connections to the daemon go through @agent-relay/sdk, so socket discovery and reconnection match the rest of the Relay tooling. Provide socketPath to override detection when needed.

Environment Variables

| Variable | Description | |----------|-------------| | WORKSPACE_ID | Used to determine default socket path |

ACP Compatibility

This bridge implements ACP version 2025-03-26 and supports:

  • Session management (new sessions)
  • Prompt handling with streaming responses
  • Cancellation

Not yet supported:

  • Session loading/resumption
  • Tool calls
  • File operations via ACP (use relay agents directly)

License

Apache-2.0