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

@bastani/atomic-acp

v0.0.19

Published

ACP adapter for Atomic coding agent

Readme

How it works

Your editor starts atomic-acp and talks to it over stdio with ACP. For each chat thread, atomic-acp starts an atomic --mode rpc process and translates between the two.

Zed (ACP client) ⇄ atomic-acp ⇄ atomic --mode rpc

Atomic reads files, edits code and runs commands on your machine, exactly as it does in a terminal. Only open workspaces you trust.

Get started

You need Node.js 20 or newer and Atomic 0.10.0 or newer, signed in to at least one model provider:

npm install -g @bastani/atomic @bastani/atomic-acp
atomic   # sign in, then quit

If you use Atomic's standalone release archive instead of the npm package, install only the adapter:

curl -fsSL https://raw.githubusercontent.com/bastani-inc/atomic/main/install.sh | sh   # Windows: irm https://raw.githubusercontent.com/bastani-inc/atomic/main/install.ps1 | iex
npm install -g @bastani/atomic-acp

atomic-acp uses the atomic on your PATH, or the one ATOMIC_ACP_ATOMIC_COMMAND names, and never installs Atomic itself. Run atomic-acp --help for its options.

Add it to Zed

In Zed's settings.json:

{
  "agent_servers": {
    "Atomic": {
      "type": "custom",
      "command": "atomic-acp",
      "args": [],
      "env": {}
    }
  }
}

Open the agent panel, pick Atomic and start a thread. If Atomic has no working login, Zed shows an Authenticate banner that opens Atomic in a terminal. atomic-acp --terminal-login does the same.

Without a global install, use "command": "npx", "args": ["-y", "@bastani/atomic-acp"].

What works

  • Text and reasoning stream into the thread. Tool calls show their status and files, edits show a diff, and shell commands show their output.
  • Threads are Atomic sessions. They appear in the editor's history and in atomic --resume, keep their title and survive an adapter restart. Deleting a thread deletes its session.
  • The model and thinking pickers list what your Atomic setup offers, and the context indicator shows how full the context is.
  • Prompt templates, skills (/skill:name) and extension commands appear in the slash menu.
  • When Atomic asks you to pick, confirm or type something, the editor shows a form.
  • ask_user_question shows all of its questions in one form, multi-select included.
  • MCP servers the editor configures reach the thread's Atomic process, and their tools are callable as mcp__<server>__<tool>. Stdio and HTTP servers work, SSE servers are skipped. atomic-acp never writes to your Atomic MCP config, and a server you define there under the same name wins.
  • If Atomic exits during a message, the message fails with the reason, and the next message starts Atomic again on the same session.

Subagents and background work

Atomic 0.10 has no workflows. The agent splits work across subagents and background shells instead, and the editor shows them as tool calls.

  • A message ends when Atomic finishes its turn, even if subagents or shells it started are still running. Atomic doesn't report background work over RPC, so atomic-acp can't wait for it. To keep a message open until a result is in, ask the agent to wait for it.
  • When background work finishes, Atomic reads the result in a new turn. That turn streams into the thread without a message of yours. A message you send while it runs joins that turn and ends when it ends.
  • Cancelling a message stops the current turn and drops the messages queued behind it, as Esc does in Atomic. Subagents and shells keep running; ask the agent to stop them.
  • Opening another thread, deleting a thread, or opening it again with different MCP servers stops its Atomic process. A message still running there ends as cancelled, and its subagents stop with the process.

Slash commands

Besides your Atomic prompts, skills and extension commands:

| Command | What it does | | ------------------------------ | ------------------------------------------------ | | /compact [instructions] | Compact the context | | /autocompact on\|off\|toggle | Turn automatic compaction on or off | | /session | Session ID, tokens, messages and cost | | /name <name> | Rename the session | | /export | Export the session as HTML to the working folder | | /steering, /follow-up | Show or set how queued messages are delivered | | /changelog | Show Atomic's changelog |

Use the editor's pickers instead of /model and /thinking, and a new thread instead of /clear.

Configuration

Set these in the env of your agent server entry:

| Variable | Default | Purpose | | ------------------------------------ | -------- | --------------------------------------------------------------- | | ATOMIC_ACP_ATOMIC_COMMAND | atomic | Path or name of the Atomic executable | | ATOMIC_ACP_ATOMIC_ARGS | unset | JSON array of extra arguments for every Atomic process | | ATOMIC_ACP_HEADLESS | unset | 1 when no person can answer questions (see below) | | ATOMIC_ACP_ENABLE_EMBEDDED_CONTEXT | unset | true lets the editor attach file contents directly to prompts | | ATOMIC_ACP_DIR | unset | Directory for the adapter's own state (see below) |

Arguments after -- also go to every Atomic process, for example "args": ["--", "--model", "openai/gpt-6.1-sol"]. Flags the adapter manages itself, such as --mode and the session flags, are refused at startup.

Everything else, including logins, models, skills, extensions and the session store, comes from your normal Atomic settings.

The adapter's own state

The adapter keeps one file of its own, session-map.json, which records the project each session belongs to so it can be listed and loaded again. It lives in ~/.atomic/atomic-acp, or in ATOMIC_ACP_DIR when that is set. The directory is made on first use, readable only by you.

Set ATOMIC_ACP_DIR when Atomic runs on a private agent directory (ATOMIC_CODING_AGENT_DIR) in a sandbox where your ~/.atomic is read-only; otherwise starting a session fails because the map can't be written. A reload finds a session only through the same ATOMIC_ACP_DIR it was saved under.

Headless clients

With ATOMIC_ACP_HEADLESS=1, questions end at once instead of waiting. ask_user_question tells the model that no person is available, and extension dialogs are cancelled.

Limitations

  • ask_user_question needs an editor that supports ACP forms (elicitation). Without them, the question can't be answered.
  • Atomic reads, writes and runs commands itself. The editor's file and terminal APIs aren't used.
  • Messages sent while Atomic is busy are queued and sent one at a time.
  • Zed is the tested client. Other ACP clients should work but may render some updates differently.

Development

npm install
npm run dev     # run from source
npm test
npm run lint
npm run build

src/acp/ holds the ACP side and src/atomic-rpc/ the Atomic process wrapper. The npm run smoke:* scripts drive a real, signed-in Atomic and spend model tokens, so they aren't part of npm test.

Releasing

Merge a pull request whose commit is titled Release X.Y.Z (or Release X.Y.Z-alpha.N) and sets that version in package.json. Any merge style works: a squash merge's (#N) suffix is accepted. The tag-release workflow then tags that commit and starts the publish workflow, which checks the tag, runs the tests and publishes to npm with trusted publishing. Stable versions go to latest and alphas to next.

To publish a tag that already exists, for example after a failed run, start the publish workflow from main with that tag: gh workflow run publish.yml --ref main -f tag=X.Y.Z.

Credits

License

MIT