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

@finityno/claude-code-acp

v0.22.1

Published

An ACP-compatible coding agent powered by the Claude Code SDK (TypeScript)

Downloads

1,508

Readme

ACP adapter for Claude Code

npm

Fork of @zed-industries/claude-code-acp

This fork adds support for subagent (Task tool) tracking and AskUserQuestion tool support.

Use Claude Code from ACP-compatible clients such as Zed!

Installation

npm i @finityno/claude-code-acp

Or install globally:

npm i -g @finityno/claude-code-acp

Features

This adapter implements an ACP agent using the official Claude Agent SDK:

  • Context @-mentions
  • Images
  • Tool calls (with permission requests)
  • Following
  • Edit review
  • TODO lists
  • Interactive (and background) terminals
  • Custom Slash commands
  • Client MCP servers
  • Subagent tracking (Task tool lifecycle events)
  • AskUserQuestion (Claude can ask clarifying questions)

Subagent Tracking

Track Task tool (subagent) lifecycle events:

import { ClaudeAcpAgent } from "@finityno/claude-code-acp";

const agent = new ClaudeAcpAgent(client);
const tracker = agent.subagentTracker;

// Listen for subagent events
tracker.addEventListener("subagent_started", (subagent) => {
  console.log(`Started: ${subagent.description} (${subagent.subagentType})`);
});

tracker.addEventListener("subagent_completed", (subagent) => {
  console.log(`Completed: ${subagent.id}`);
});

tracker.addEventListener("subagent_failed", (subagent) => {
  console.error(`Failed: ${subagent.error}`);
});

// Query subagents
tracker.getRunningSubagents();          // Currently active
tracker.getSessionSubagents(sessionId); // By session
tracker.getStats();                     // Counts & avg duration

See docs/subagent-tracking.md for full API documentation.

AskUserQuestion

Claude can ask clarifying questions during execution. Questions are presented via the ACP permission request system:

// Claude sends a question like:
{
  "question": "Which testing framework should we use?",
  "header": "Testing",
  "options": [
    { "label": "Jest", "description": "Popular JavaScript testing framework" },
    { "label": "Vitest", "description": "Vite-native, fast testing framework" }
  ],
  "multiSelect": false
}

// User selects an option, Claude receives:
{
  "answers": {
    "Which testing framework should we use?": "Vitest"
  }
}

Features:

  • Multiple questions per request (1-4)
  • 2-4 options per question with labels and descriptions
  • MultiSelect support for non-mutually-exclusive choices
  • "Other" option for free-text input

See docs/ask-user-question.md for ACP client integration details.

Usage

With Zed

The latest version of Zed can use this adapter out of the box. Open the Agent Panel and click "New Claude Code Thread" from the + button menu.

Read the docs on External Agent support.

Other Clients

Use with any ACP compatible client:

ANTHROPIC_API_KEY=sk-... claude-code-acp

License

Apache-2.0