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

claude-agent-acp-zz

v0.109.1-zz.0

Published

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

Readme

ACP adapter for the Claude Agent SDK

npm

Use Claude Agent SDK from ACP-compatible clients!

This tool implements an ACP agent by using the official Claude Agent SDK, supporting:

  • Context @-mentions
  • Images
  • Tool calls (with permission requests)
  • Compact file changes through the negotiated AIR diff patch extension
  • Following
  • Edit review
  • TODO lists
  • Nested subagent transcripts
  • Interactive (and background) terminals
  • Custom Slash commands
  • Client MCP servers, including the ones that the client serves over the ACP connection (MCP-over-ACP, "type": "acp")
  • An Ultracode session config option, which turns on Claude Code's dynamic workflows for every task. It appears when dynamic workflows are enabled and the model supports ultracode (any model with xhigh effort)
  • /mcp in the chat: the MCP server status as a list. The adapter runs /mcp reconnect, /mcp enable, and /mcp disable through the SDK control API, because Claude Code refuses them in SDK mode. A reconnect of an ACP server that needs authentication starts MCP OAuth through URL elicitation
  • Prompt suggestions: the prompt that Claude Code predicts the user sends next, as ACP's unstable prompt_suggestions_update, for a client that advertises session.promptSuggestions
  • Session-scoped long-running goals for AIR through the goal extension under _meta.jetbrains.air.goal
  • Structured errors, recovery, and warnings through the opt-in session failure extension
  • Concrete model and effort defaults through the opt-in recommended config value extension
  • Tool permission presentation, editable choices, and durable effects through the permission extension
  • One fact per field in every tool call report, as the ACP tool call contract defines
  • All AIR extensions, capabilities, and _meta keys: AIR extensions

Learn more about the Agent Client Protocol.

The preview channel below belongs to the upstream package, not this fork. Install this fork with npm install -g claude-agent-acp-zz@latest and run claude-agent-acp-zz.

Windows updates while an ACP session is running

On Windows, the wrapper automatically copies the bundled claude.exe to %LOCALAPPDATA%\\claude-agent-acp-zz\\runtime before starting it. Normal npm install -g claude-agent-acp-zz updates therefore work while ACP sessions are running, without requiring a separate update command. The first upgrade from an older release can still leave npm's harmless cleanup warning because that old process started claude.exe from its package directory. The optional claude-agent-acp-zz-update command only cleans those historical backup directories; it never terminates an active ACP or Claude process.

Fork release 0.81.2-zz.1 includes upstream changes through e6681d2 and Claude Agent SDK 0.3.280: session-option refresh on resume, plan approval mode fixes, usage reporting and resilient managed-policy loading. Host opt-out of bypass permissions is respected even when a settings file requests bypass. Environment routing precedence, exact custom-model matching, legacy model APIs, and the fork's /model, /context-window and /effort commands remain supported. When Claude Code advertises its native /autocompact, the legacy /auto-compact alias remains accepted for compatibility but is not shown as a duplicate menu item.

Resumed subagent generations now announce their start immediately, retaining a live parent session or falling back to the root when their former parent ended.

Authentication failures now use standard ACP auth errors without duplicate access notifications or login text in the chat; the client owns the sign-in interface.

Edit and Write diff blocks now include per-patch added/removed line counts through the AIR diff statistics extension, avoiding full-file comparisons for statistics. Invalid patches omit counts; clients without support for this metadata retain their existing diff display.

Negotiated per-turn file-change reports now use native checkpoint previews instead of a hidden model-driven audit. The preview never rewinds files and has a bounded timeout. Reports remain explicitly incomplete because checkpoints do not cover every Bash or subagent mutation; clients without the capability incur no extra checkpointing overhead.

Shell permission prompts now preserve full Bash and PowerShell commands, including whitespace and line breaks. PowerShell shares terminal output handling with Bash. MCP permission metadata includes the server name and source, and background-task placeholder results no longer end a waiting prompt before its actual summary.

To try upstream changes that have landed on main but are not released yet, install from the preview channel — every push to main publishes one. See docs/RELEASES.md.

npm install @agentclientprotocol/claude-agent-acp@preview

Standalone executables

Each release attaches archives for Linux (glibc and musl), macOS and Windows, on x64 and arm64, to its GitHub release. They need no Node.js install. Each holds two files: claude-agent-acp, and the Claude CLI (claude) it runs. Keep them in the same directory; a symlink to claude-agent-acp elsewhere works. To use a Claude CLI you already have instead, set CLAUDE_CODE_EXECUTABLE. On Alpine, install libgcc and libstdc++ first.

A CLI named with CLAUDE_CODE_EXECUTABLE gets a session's MCP servers on its command line, where other users of the machine can read their env and headers. The CLI that comes with the adapter gets them over stdin.

To build one for your machine (needs Bun) and check it:

npm run build:binary
npm run smoke:binary            # add `-- --full` to drive a real session; needs a Claude login

ACP v2 (Preview)

The adapter also serves ACP v2, which is in Preview: a client that asks for protocol version 2 or later in initialize gets v2, and every other client gets v1. v2 is not frozen yet, and this surface changes with it.

CLAUDE_AGENT_ACP_PROTOCOL limits the adapter to one version. With v1, a client that asks for v2 is negotiated down to v1. With v2, the adapter rejects the initialize of a v1 client. auto, the default, serves both.

On v2 the adapter serves the session baseline (session/new, session/list, session/resume with replay, which replay_complete ends, session/close, session/prompt, session/cancel), session/delete, session/fork, session/status, session/options (with initial configOptions on session/new, session/resume and session/fork), session/set_title, additional directories, config options (the mode is one), plans, notices, compaction, display terminals for commands, permission requests, elicitation, providers, auth, and subagents. Steering is v1 only for now.

On v2, the command of a stdio MCP server must be an absolute path, such as /usr/local/bin/npx. session/new, session/resume and session/fork fail with -32602 for a relative one, such as npx. A v1 client can still send one.

session/prompt takes an idempotencyKey: a prompt that a client sends again with the same key is inserted once, and the retry gets the first messageId. The key is known for as long as Claude Code stores the message, also after a restart. A prompt that Claude Code does not store, such as a local command, keeps its key until session/close or the end of the connection.

The adapter announces a session cursor (cursor_update) before each user message that follows another entry of the conversation, live and in a replay. session/fork with its cursorId copies the history before that message, and fails with -32602 for any other cursorId. A v1 client gets no cursors yet.

v2 is served by the v2 agent in src/v2/, which runs straight on Claude Code instead of translating to v1. A v2 client that declares JetBrains AIR (_meta.jetbrains.air) also gets the AIR extensions that ACP v2 does not cover.

Contribution Policy

This project does not require a Contributor License Agreement (CLA). Instead, contributions are accepted under the following terms:

By contributing to this project, you agree that your contributions will be licensed under the Apache License, Version 2.0. You affirm that you have the legal right to submit your work, that you are not including code you do not have rights to, and that you understand contributions are made without requiring a Contributor License Agreement (CLA).