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

@lawrence369/loop-cli

v0.2.0

Published

Iterative Multi-Engine AI Orchestration

Readme

loop

Iterative Multi-Engine AI Orchestration CLI

Combine Claude, Gemini, and Codex in a quality-scored iteration loop. One engine executes, another reviews. Repeat until perfect.

npm install -g @lawrence369/loop-cli

What It Does

┌─────────────┐     ┌─────────────┐
│   Executor   │────▶│   Reviewer   │
│  (Claude)    │◀────│  (Gemini)    │
└─────────────┘     └─────────────┘
       │                    │
       │    Score < 8?      │
       │◀───Feedback────────│
       │                    │
       │    Score ≥ 8?      │
       │────APPROVED───────▶│

You give it a task. The executor engine produces output. The reviewer engine scores it (1-10) and provides feedback. If the score doesn't meet the threshold, the feedback is fed back to the executor. This continues until the output is approved or max iterations are reached.

Quick Start

# Interactive guided setup
loop

# Direct execution
loop "Refactor the auth module to use JWT" -e claude -r gemini

# Auto mode with custom threshold
loop "Write comprehensive tests for utils/" -e gemini -r claude --auto --threshold 9

# Pass flags to the executor CLI
loop "Build the API endpoints" -e claude --pass --model opus

Features

  • Multi-engine: Claude CLI, Gemini CLI, Codex CLI — mix and match
  • Quality-scored iteration: Automatic review loop with configurable threshold (1-10)
  • File-based event bus: Append-only JSONL, crash-safe, zero external dependencies
  • Multi-agent orchestration: Background daemon with IPC for coordinating agent teams
  • Skills system: Executable markdown (SKILL.md) auto-injected into agent prompts
  • Interactive TUI: Beautiful guided setup + real-time monitoring dashboard
  • Terminal adapters: Terminal.app, iTerm2, tmux, built-in PTY
  • Decision tracking: Architectural decisions persisted across sessions
  • Local-first: Everything runs on your machine. No cloud services, no databases.

Commands

loop [task]              # Run iteration loop (interactive if no task)
loop daemon start        # Start background daemon
loop daemon stop         # Stop daemon
loop daemon status       # Check daemon status
loop bus send <message>  # Send a message on the event bus
loop bus check <id>      # Check for pending bus messages
loop bus status          # Show event bus status
loop chat                # Open real-time dashboard
loop plan show           # Show current iteration plan
loop plan clear          # Clear plan
loop ctx add <title>     # Add architectural decision
loop ctx list            # List decisions
loop ctx resolve <id>    # Resolve a decision
loop skills list         # List available skills
loop skills add <name>   # Add a new skill

Options

| Flag | Description | |------|-------------| | -e, --executor <engine> | Executor engine: claude | gemini | codex | | -r, --reviewer <engine> | Reviewer engine: claude | gemini | codex | | -n, --iterations <num> | Max iterations (default: 3) | | -d, --dir <path> | Working directory | | -v, --verbose | Stream real-time output | | --auto | Auto mode — skip manual conversation | | --pass <args...> | Pass native flags to executor CLI | | --threshold <num> | Approval score threshold, 1-10 (default: 9) |

How It Works

  1. Configuration: Reads .loop/config.json from your project (or uses defaults)
  2. Engine selection: Picks executor + reviewer from config or CLI flags
  3. Iteration loop:
    • Executor receives the task (with prior feedback, if any)
    • Executor produces output via PTY-based CLI session
    • Output is sent to the reviewer with the LoopMessage v1 protocol
    • Reviewer scores (1-10) and provides structured feedback
    • If score meets threshold or "APPROVED" keyword: done
    • Otherwise: feedback → executor → next iteration
  4. Event bus: All messages logged to append-only JSONL for crash recovery
  5. Skills: Relevant SKILL.md files injected into agent prompts for context

Configuration

Create .loop/config.json in your project:

{
  "defaultExecutor": "claude",
  "defaultReviewer": "gemini",
  "maxIterations": 3,
  "threshold": 9,
  "mode": "manual",
  "launchMode": "auto",
  "autoResume": false,
  "skillsDir": ".loop/skills",
  "verbose": false
}

Requirements

Install from Source

git clone https://github.com/lawrence3699/loop.git
cd loop
npm install
npm run build
npm link

License

MIT