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

@acp-kit/spar

v0.9.0

Published

Spar — two ACP agents (an author and a reviewer) sparring over the same workspace until the work is approved. Built on @acp-kit/core.

Readme

Spar

Spar runs two ACP agents over one workspace: an AUTHOR changes files and a separate-context REVIEWER inspects the result until it replies APPROVED or the round limit is reached. It is built on @acp-kit/core.

Published on npm as @acp-kit/spar. The previous package name, @acp-kit/author-reviewer-loop, is deprecated.

Use Spar when a coding task benefits from independent review: bug fixes, refactors, release prep, docs/code consistency checks, and other work where “the agent says it is done” is not enough. The deliverable is the working tree on disk, not pasted code.

Quick Start

npx @acp-kit/spar ./demo-workspace "Create a Node.js CLI that counts word frequency from stdin"

PowerShell:

npx @acp-kit/spar .\demo-workspace "Create a Node.js CLI that counts word frequency from stdin"

Use an empty or disposable directory. After confirmation, Spar allows the selected agents to use filesystem and terminal tools in that workspace.

Real-workspace execution is the default for supported agents. Use --no-real-workspace or SPAR_REAL_WORKSPACE=0 only when you explicitly want to disable Spar's launch/session defaults for Codex and Claude Code.

The task can be inline text or a relative/absolute UTF-8 text file. If the argument resolves to a file, Spar reads it once at startup.

Requirements

  • Node.js >= 20.11
  • ACP-capable agent CLIs available on PATH
  • Login/auth already completed for selected agents

Plain CLI defaults:

| Role | Agent | Model | | --- | --- | --- | | AUTHOR | GitHub Copilot | gpt-5.4 | | REVIEWER | Codex | gpt-5.5 |

Supported agent ids: copilot, claude, codex, gemini, qwen, opencode.

Override roles with environment variables:

AUTHOR_AGENT='copilot' AUTHOR_MODEL='claude-opus-4.7' \
REVIEWER_AGENT='codex' REVIEWER_MODEL='gpt-5.5' \
  npx @acp-kit/spar ./demo-workspace "Build a small CLI"

Set AUTHOR_MODEL='' or REVIEWER_MODEL='' to use the agent default model.

Common Commands

Run local preflight diagnostics without starting agents:

npx @acp-kit/spar ./demo-workspace --doctor

Use the line-based renderer instead of the default fullscreen TUI:

npx @acp-kit/spar ./demo-workspace "Fix the flaky parser test" --cli

Use the lighter development prompt:

npx @acp-kit/spar ./demo-workspace "Add CSV export" --quality dev

Skip the ordinary start prompt in scripts:

npx @acp-kit/spar ./demo-workspace "Update docs" --yes

Danger mode: ignore reviewer approval and run every configured MAX_ROUNDS round. This is invocation-only state, is not saved to preferences, and requires interactive double confirmation even with --yes.

MAX_ROUNDS=5 npx @acp-kit/spar ./demo-workspace "Stress-test the implementation" --danger-ignore-approval

Important Behavior

  • AUTHOR and REVIEWER share the same real workspace but not the same conversation history.
  • Codex runs with sandbox_mode="danger-full-access" and approval_policy="never" so edits land in the shared workspace. Claude Code is switched to bypassPermissions before the first turn for the same reason.
  • After each AUTHOR turn, Spar checks whether files changed on disk. Git workspaces use git status/diff, index blob checks, and dirty-file content checks; non-git workspaces use a filesystem snapshot.
  • Interrupted runs can be resumed when matching ACP sessions are still available. Recovery asks before resuming; the default is to start fresh.
  • Failure diagnostics include run trace path, recovery checkpoint path, real-workspace policy, recent tool calls, and the latest workspace-change summary.

Options

npx @acp-kit/spar <cwd> <task-or-task-file> [--yes] [--cli] [--tui] [--quality prod|dev] [--doctor] [--danger-ignore-approval] [--no-real-workspace]

Key environment variables:

| Variable | Meaning | | --- | --- | | AUTHOR_AGENT, AUTHOR_MODEL | AUTHOR agent and model override. | | REVIEWER_AGENT, REVIEWER_MODEL | REVIEWER agent and model override. | | MAX_ROUNDS | Maximum author/reviewer iterations. Default: 20. | | AUTHOR_SESSION_TURNS, REVIEWER_SESSION_TURNS | Per-role ACP session refresh limits. Default: 20. | | SPAR_QUALITY | prod or dev. | | SPAR_REAL_WORKSPACE=0 | Explicitly disable Spar real-workspace launch/session defaults. | | ACP_REVIEW_YES=1 | Skip the ordinary start prompt. | | ACP_REVIEW_CLI=1 | Use the line-based renderer. | | SPAR_RUN_RECOVERY, SPAR_RUN_TRACE, SPAR_SESSION_RECORD | Enable/disable local recovery, trace, and session records. |

TUI startup can save role/model defaults to ~/.acp-kit/spar/preferences.json. Environment variables take precedence over saved preferences.

More Documentation

Exit Codes

  • 0: reviewer approved the result.
  • 1: maximum rounds reached without approval, startup failed, or a turn failed.