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

ralph-cli-claude

v0.1.3

Published

AI-driven development automation CLI for Claude Code

Readme

ralph-cli-claude

AI-driven development automation CLI for Claude Code, implementing the Ralph Wiggum technique created by Geoffrey Huntley.

The Ralph Wiggum technique (named after the Simpsons character) runs a coding agent from a clean slate, over and over, until a stop condition is met. As Matt Pocock describes it: "an AI coding approach that lets you run seriously long-running AI agents (hours, days) that ship code while you sleep."

This CLI automates iterative development by having Claude work through a PRD (Product Requirements Document), implementing features one at a time, running tests, and committing changes. When an iteration completes, the next one starts fresh - preventing context rot and allowing long-running autonomous development.

Installation

# Use directly with npx
npx ralph-cli-claude init

# Or install globally
npm install -g ralph-cli-claude
ralph init

Quick Start

# 1. Initialize ralph in your project
ralph init

# 2. Add requirements to your PRD
ralph prd add

# 3. Run a single iteration
ralph once

# 4. Or run multiple iterations
ralph run 5

Commands

| Command | Description | |---------|-------------| | ralph init | Initialize ralph in current project | | ralph once | Run a single automation iteration | | ralph run <n> | Run n automation iterations | | ralph prd add | Add a new PRD entry (interactive) | | ralph prd list | List all PRD entries | | ralph prd status | Show PRD completion status | | ralph prd toggle <n> | Toggle passes status for entry n | | ralph scripts | Generate shell scripts for sandboxed environments | | ralph docker | Generate Docker sandbox environment | | ralph help | Show help message |

Configuration

After running ralph init, you'll have:

.ralph/
├── config.json      # Project configuration
├── prompt.md        # Shared prompt template
├── prd.json         # Product requirements document
└── progress.txt     # Progress tracking file

Supported Languages

  • Bun (TypeScript) - bun check, bun test
  • Node.js (TypeScript) - npm run typecheck, npm test
  • Python - mypy ., pytest
  • Go - go build ./..., go test ./...
  • Rust - cargo check, cargo test
  • Custom - Define your own commands

PRD Format

The PRD (prd.json) is an array of requirements:

[
  {
    "category": "feature",
    "description": "Add user authentication",
    "steps": [
      "Create login form",
      "Implement JWT tokens",
      "Add protected routes"
    ],
    "passes": false
  }
]

Categories: ui, feature, bugfix, setup, development, testing, docs

Docker Sandbox

Run ralph in an isolated Docker container:

# Generate Docker files
ralph docker

# Build the image
ralph docker --build

# Run container
ralph docker --run

Features:

  • Based on Claude Code devcontainer
  • Network sandboxing (firewall allows only GitHub, npm, Anthropic API)
  • Your ~/.claude credentials mounted automatically (Pro/Max OAuth)
  • Language-specific tooling pre-installed

Installing packages in container

# Run as root to install packages
docker compose run -u root ralph apt-get update
docker compose run -u root ralph apt-get install <package>

Shell Scripts

For environments where the CLI isn't available:

ralph scripts

Generates ralph.sh and ralph-once.sh in your project root.

How It Works

  1. Read PRD: Claude reads your requirements from prd.json
  2. Implement: Works on the highest priority incomplete feature
  3. Verify: Runs your check and test commands
  4. Update: Marks the feature as complete in the PRD
  5. Commit: Creates a git commit for the feature
  6. Repeat: Continues to the next feature (in run mode)

When all PRD items pass, Claude outputs <promise>COMPLETE</promise> and stops.

Security

Container Requirement

It is strongly recommended to run ralph inside a Docker container for security. The Ralph Wiggum technique involves running an AI agent autonomously, which means granting it elevated permissions to execute code and modify files without manual approval for each action.

The --dangerously-skip-permissions Flag

When running inside a container, ralph automatically passes the --dangerously-skip-permissions flag to Claude Code. This flag:

  • Allows Claude to execute commands and modify files without prompting for permission
  • Is only enabled when ralph detects it's running inside a container
  • Is required for autonomous operation (otherwise Claude would pause for approval on every action)

Warning: The --dangerously-skip-permissions flag gives the AI agent full control over the environment. This is why container isolation is critical:

  • The container provides a sandbox boundary
  • Network access is restricted to essential services (GitHub, npm, Anthropic API)
  • Your host system remains protected even if something goes wrong

Container Detection

Ralph detects container environments by checking:

  • DEVCONTAINER environment variable
  • Presence of /.dockerenv file
  • Container indicators in /proc/1/cgroup
  • container environment variable

If you're running outside a container and need autonomous mode, use ralph docker to set up a safe sandbox environment first.

Development

To contribute or test changes to ralph locally:

# Clone the repository
git clone https://github.com/anthropics/ralph-cli-claude
cd ralph-cli-claude

# Install dependencies
npm install

# Run ralph in development mode (without building)
npm run dev -- <args>

# Examples:
npm run dev -- --version
npm run dev -- prd list
npm run dev -- once

The npm run dev -- <args> command runs ralph directly from TypeScript source using tsx, allowing you to test changes without rebuilding.

Requirements

  • Node.js 18+
  • Claude Code CLI installed
  • Claude Pro/Max subscription or Anthropic API key

License

MIT