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

@cbnsndwch/wigg

v26.427.1

Published

A pure TS Ralph Wiggum-like harness for NodeJS

Readme

wigg

A pure TS Ralph Wiggum-like harness for NodeJS for iterative agentic coding. It runs an AI agent in a self-correcting loop until task completion.

Installation

You can install it globally or run it via npx / pnpm dlx:

# Using npm
npm install -g @cbnsndwch/wigg

# Using pnpm
pnpm add -g @cbnsndwch/wigg

Usage

# If installed globally
wigg "Your task description" [options]

# Via npx / pnpm dlx
npx @cbnsndwch/wigg "Your task description" [options]

Features

  • Pure TypeScript / NodeJS: No complex setup required.
  • Iterative Loop: Runs until your task is fully completed or corrected.
  • Self-correcting: Evaluates AI output and iterates.

Supported Agent CLIs

wigg can wrap and orchestrate several AI agent CLIs under the hood:

  • Claude Code (claude): Pipes input via stdin and reads streaming JSON (claude -p).
  • OpenCode (opencode): Uses file-based prompts (opencode run ... -f <file>).
  • OpenAI Codex (codex): Executes via codex exec.

CLI arguments like --model or --allow-all (which maps to flags like --dangerously-skip-permissions for Claude Code or --full-auto for Codex) can be passed to configure the underlying agent execution.

Configuration & Options

wigg exposes several options to customize its execution:

  • --agent AGENT: Choose the AI agent to use (opencode [default], claude-code, codex).
  • --model MODEL: Pass a specific underlying model to the agent.
  • --max-iterations N / --min-iterations N: Configure the limits for the iteration loop (default min: 1, max: unlimited).
  • --mission-file, -m FILE: Load the task description from a file instead of a command-line string (useful for long, multi-line instructions).
  • --no-commit: Do not automatically commit changes after each iteration.

Verification Commands (--verify)

You can define automated checks running after each iteration. The output is fed back to the agent before it evaluates if the task is genuinely complete.

# Provide a label and a shell command to execute
wigg "Refactor the login component" --verify "test:pnpm test" --verify "typecheck:pnpm typecheck"

If the test or typecheck commands fail, the agent will see the errors and attempt to fix them in the subsequent iteration.

Tasks Mode (--tasks / -t)

For complex, multi-step features, enable Tasks Mode:

wigg "Implement the new billing portal" --tasks

You can view or inject new tasks into the active loop:

  • --list-tasks: Display the current structured task list.
  • --add-task "desc": Add a new task to the queue.

Loop Management

wigg manages active loop state. If you try to start a new mission while a loop is active, you will be prompted to either discard the current state, continue it, or cancel.

You can also manage the active loop context directly:

  • --status: Show the current Wigg loop status and history.
  • --add-context TEXT: Queue additional context/instructions for the next iteration.
  • --clear-context: Clear any pending context.