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

@mfelix.org/quibble

v1.0.0

Published

Adversarial AI document review CLI

Readme

Quibble

Adversarial AI document review CLI that iterates between Codex (reviewer) and Claude (author) until consensus is reached. Quibble is designed for markdown documents and keeps a resumable session history on disk by default.

Quibble screenshot

Requirements

  • Node.js >= 18
  • OpenAI Codex CLI available on PATH (codex)
  • Anthropic Claude Code CLI available on PATH (claude)

Install

npm install
npm run build

Running locally (no global install)

node dist/index.js <file>

Optional: npm link for development

If you are working on this repo and want a global quibble command without publishing:

npm link

Usage

quibble <file>

Example:

quibble docs/plan.md

CLI Options

--json             Output structured JSONL events
--debug-claude     Log raw Claude stream lines for debugging
--debug-codex      Log raw Codex stream lines for debugging
--dry-run          Show resolved config and exit
--context-max-files <n>       Max auto-included context files
--context-max-file-bytes <n>  Max bytes per context file
--context-max-total-bytes <n> Max total bytes across context files
--no-summarize-items          Disable LLM summarization of issues/opportunities
--keep-debug       Keep debug logs after a successful run
--max-rounds <n>   Maximum review cycles before forced stop (default: 5)
--no-persist       Disable session storage; runs in-memory only
--output <path>    Output path for final document
--resume <id>      Resume a previous session by ID
--session-dir <p>  Override session storage location

How It Works

Each round has three phases:

  1. Codex reviews the document and returns issues/opportunities.
  2. Claude responds, updates the document, and assesses consensus.
  3. Codex checks whether the response resolves the feedback.

The loop stops when consensus is approved, the max rounds are reached, or a failure occurs.

Context Discovery

Quibble auto-includes repo files referenced by path in the document. It looks for file path mentions and pulls the matching files as context for Codex and Claude, with size caps and skipping common build/output directories.

Output Files

Quibble writes a final document next to the input by default:

<input>-quibbled.md

It also writes session artifacts (unless --no-persist) under:

.quibble/sessions/<session-id>/

Typical session layout:

.quibble/sessions/<session-id>/
  manifest.json
  round-1/
    codex-review.json
    claude-response.json
    codex-consensus.json
    timings.json (durations + token counts)
    document-v1.md
  final/
    document.md
    summary.json
  debug/
    claude-stream-round-1.log
    codex-stream-round-1.log

JSONL Output

When --json is set, Quibble emits one JSON object per line with event types:

  • start, round_start
  • codex_review, codex_progress
  • claude_progress, claude_response
  • consensus, complete, error

This is useful for CI or custom UIs.

Exit Codes

  • 0: Completed successfully (or max rounds reached with no unresolved critical/major issues)
  • 1: Max rounds reached with unresolved major issues
  • 2: Failure or unresolved critical issues

Debugging

If Claude or Codex progress appears stuck, enable debug logs:

quibble example.md --debug-claude --debug-codex --keep-debug

Logs are written to the session debug/ directory. By default they are deleted after a successful run; use --keep-debug to retain them.

Development

npm run build
npm run typecheck
npm test

Troubleshooting

  • Ensure codex and claude are on PATH.
  • If the CLI times out, re-run with debug flags and inspect the logs.
  • For large documents, increase --max-rounds or edit prompts in src/prompts/.