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

curtis-acp

v0.4.4

Published

Curtis AI as an ACP agent — polyglot LLM access (53 providers) with the multi-model arena, inside Zed and any ACP client.

Readme

curtis-acp

Curtis AI as an ACP agent — the full Curtis provider layer (53 providers) with the multi-model arena, inside Zed's Agent Panel (and JetBrains, or any ACP client).

One prompt, every model, side by side — the thing no editor ships natively. Zed's own Parallel Agents run distinct tasks concurrently; curtis-acp fans a single prompt out to all your configured models and composes the comparison in-thread. Then /promote makes the winner your model.

Status

The provider layer is vendored from [email protected] (scripts/vendor-sync.mjs re-syncs it; the only sanctioned edits are the Node shim specifier and explicit .js import extensions). That brings the plugin's researched per-provider parameter matrix — which sampling knobs each API accepts, so strict providers get fields dropped instead of 400s — plus curated, price-verified model seeds and runtime /models discovery.

Self-tested (npm run test:mock — 13 protocol checks over stdio: handshake, arena with a failing column, promote-to-single, multi-turn history, /clear, mode/model switch, streaming, mid-turn cancel with partial arena composed, session/load replay, single-mode timeout; npm run test:persist — transcript replay + grounded follow-up across an agent restart) and live-validated against real providers (hosted single turn + 2-column arena through the vendored transport).

Try it in Zed

Add a custom agent in Zed (agent_servers in settings.json — Agent Settings → External Agents → Add Custom Agent). Setting two keys is enough — every keyed provider's flagship arenas automatically:

{
	"agent_servers": {
		"curtis": {
			"type": "custom",
			"command": "npx",
			"args": ["-y", "[email protected]"],
			"env": {
				"ANTHROPIC_API_KEY": "sk-ant-…",
				"GEMINI_API_KEY": "AIza…"
			}
		}
	}
}

From source instead: git clone https://github.com/curtis-ai-tech/curtis-acp && npm install && npm run build, then "command": "node", "args": ["<repo>/dist/index.js"].

Or pick the duel explicitly with CURTIS_ARENA:

"env": {
	"CURTIS_ARENA": "anthropic:claude-opus-4-6,google:gemini-3.8-flash,ollama:qwen2.5:7b-instruct",
	"ANTHROPIC_API_KEY": "sk-ant-…"
}

Zed picks the change up without a restart. New thread → pick curtis → type a prompt. The panel gets native controls: an Arena/Single mode switcher and a model dropdown (drives Single mode). Debug with dev: open acp logs if anything looks off.

Configuration (env)

| Var | Meaning | |---|---| | CURTIS_ARENA | Comma list of provider:model duels. Unset → every keyed provider's first model arenas automatically. Provider ids are the plugin's: anthropic, openai, google, openrouter, deepseek, groq, xai, moonshot, zai-glm, qwen, mistral, together, ollama, lmstudio, … (53 built-ins). Model ids not in the seed list work — they're sent to the wire as-is. | | CURTIS_SINGLE | Optional provider:model for single mode (default: first arena entry; the panel's model picker overrides per-session) | | CURTIS_TEMPERATURE | Sampling temperature for every request (omit = provider default; dropped automatically where the provider's reasoning dialect rejects it) | | CURTIS_MAX_TOKENS | Max output tokens (default 4096) | | CURTIS_REASONING | Reasoning effort: minimal/low/medium/high/max/off — translated into each provider's own dialect (reasoning_effort, thinking{}, think, …), with the sampling fields that dialect rejects stripped | | CURTIS_<PROVIDER>_* | Per-provider overrides that win over the global knobs above: CURTIS_ANTHROPIC_TEMPERATURE=0.2, CURTIS_OPENAI_MAX_TOKENS=8192, CURTIS_GOOGLE_TOP_P=0.9, CURTIS_ANTHROPIC_OMIT_TEMPERATURE=1 (never send temperature — reasoning models 400 on it), CURTIS_XAI_REASONING=high, CURTIS_MISTRAL_EXTRA_BODY={"safe_mode":false} (raw JSON deep-merged into the request body last). Prefix rule = the API-key rule: provider id uppercased, dashes → underscores (zai-glm → CURTIS_ZAI_GLM_*). | | CURTIS_TIMEOUT_MS | Per-request wall-clock budget before it's marked failed/truncated (default 180000) | | CURTIS_MOCK=1 | Canned streaming for protocol testing without keys (CURTIS_MOCK_DELAY, model ids containing fail simulate failures) | | <PROVIDER>_API_KEY | ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY, DEEPSEEK_API_KEY, GROQ_API_KEY, XAI_API_KEY, MOONSHOT_API_KEY, ZAI_API_KEY, … — Ollama/LM Studio need none. Rule of thumb: <PROVIDER>_<API_KEY>; see ENV_KEYS in src/config.ts for the exact map. |

Not available headlessly: ChatGPT sign-in (OAuth lives in the plugin's Electron shell) and Azure OpenAI (needs a deployment URL).

Slash commands (in the agent panel)

  • /arena <prompt> — force the arena (default when ≥2 models are configured: plain prompts arena automatically; bare /arena lists the models)
  • /single <prompt> — plain live-streamed answer from the selected model (/ask is an alias)
  • /promote <n> — after an arena, make column n the single-mode model (/promote alone lists the ranking). The panel's mode switcher follows along.
  • /models — list configured models
  • /clear — wipe this session's conversation history

Conversation memory

Sessions keep a transcript (last 16 messages). Follow-ups in Single mode see your previous turns; after an arena, follow-ups are grounded in a compact per-column digest, so "expand on the Gemini answer" works. Arena turns store the digest, not the full columns, to keep context lean.

Sessions persist to disk (~/.curtis-acp/sessions, override with CURTIS_SESSION_DIR), so session/load — and therefore reopening a Zed thread — survives agent restarts. New session ids skip any persisted id so a restarted process can't collide with a client-remembered thread.

How the arena renders

ACP streams one linear message, so the arena works in two beats: progress goes to the thought stream (· OpenRouter · …: 240 chars), then the composed message lands — a results table (first-token latency, total time, provider-reported tokens, seed-price cost estimate) followed by every full response under its own heading, fastest first. Cancelling mid-arena keeps the table: finished columns stay, in-flight ones are marked cancelled. Each request — column or single — runs under its own CURTIS_TIMEOUT_MS budget, so a hung provider can never stall the panel.

Roadmap

  • ACP Registry listing merge — the entry is submitted (registry/curtis/agent.json, monochrome icon; npm package curtis-acp is live, PR #721 open)
  • OS keychain for keys (env vars today; the plugin's secretStorage seam is the shape to follow)
  • Per-column /stop from the client mid-arena (needs an ACP extension — today, turn-cancel composes whatever finished)

Done recently: published [email protected] → 0.4.1 on npm and opened the ACP Registry PR, hosted live pass (Z.ai GLM-5.3 single turn + 2-column arena through the vendored transport; five more providers' failure paths exercised live against placeholder keys), per-provider sampling overrides (CURTIS_<PROVIDER>_* — the plugin's three-layer resolution ported to env, EXTRA_BODY passthrough included), real token counts + cost estimates in the arena table, env sampling + reasoning-effort knobs (per-provider dialects via the vendored getReasoningWire), full 53-provider layer vendored from the plugin, native mode/model picker, per-column cancel semantics, session/load resume, conversation history, promote/clear commands.

License

MIT — Copyright (c) 2026 Jordan Newell (Curtis AI). The per-provider parameter matrix originates from the curtis provider layer, which remains source-available upstream; this repo is MIT.

Layout

src/index.ts        stdio bootstrap (awaits provider bootstrap → ndJsonStream → AgentSideConnection)
src/log.ts          console→stderr discipline (stdout is protocol)
src/agent.ts        ACP surface: initialize / session:new / session:load / prompt / cancel / modes / model picker / promote / clear
src/arena.ts        turn logic: command parsing, history, fan-out, per-column timeout, composition, digests
src/chat.ts         streamChat adapter: vendored providers ⇆ arena, mock streamer
src/config.ts       env config → ProviderRegistry; provider ids, keys, default arena, layered sampling resolution
src/obsidian-shim.ts  Node stand-ins for the two Obsidian APIs the vendored code touches
src/types.ts        provider type slice (trimmed from the plugin's types.ts)
src/providers/      vendored: base, anthropic, ollama, registry (53 defs + caps matrix), transport, stream-shim, chatgpt
src/core/           vendored: tool-schema, json-helpers
test/client.mjs     raw JSON-RPC stdio self-test (mock mode, no keys)
test/live.mjs       real turns against live providers ("a,b" = arena; needs keys or local runtimes)
scripts/vendor-sync.mjs  re-copy the provider layer from curtis-ai-chat
registry/           ACP Registry submission scaffold + checklist