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

im-pickle-rick

v0.1.0

Published

Pickle Rick CLI Orchestrator - Autonomous coding agent with TUI interface

Readme

Pickle Rick 🥒

📥 Installation

From npm

npm install -g im-pickle-rick

From Source

git clone https://github.com/galz10/pickle-rick-extension.git
cd pickle-rick-extension/cli
bun install
bun link

📋 Prerequisites

  • Bun: Version >= 1.0.0 - JavaScript runtime
  • Git: Required for worktree isolation
  • AI Provider: Gemini CLI, OpenCode, or another supported provider

[!WARNING] USE AT YOUR OWN RISK. This CLI orchestrates autonomous AI coding agents that modify files and execute commands. While sessions run in isolated git worktrees, the agent may behave unexpectedly and consume significant tokens. Always review changes before merging.

Pickle Rick

"I turned myself into a CLI tool, Morty! I'm Pickle Riiiiick!"

Pickle Rick is an autonomous coding agent orchestrator with a beautiful TUI (Terminal UI) dashboard. Point it at a task, walk away, and let a hyper-intelligent AI work through your coding problems using a structured engineering workflow - all running safely in isolated git worktrees.

🚀 Overview

Pickle Rick executes complex coding tasks through an iterative AI agent loop:

  1. PRD - Draft Product Requirements Document
  2. Breakdown - Create atomic tickets from requirements
  3. Research - Analyze codebase patterns and data flows
  4. Plan - Design technical implementation approach
  5. Implement - Execute with rigorous testing
  6. Refactor - Cleanup and eliminate "AI slop"

🥒 The Pickle Rick Method

This CLI implements the Pickle Rick technique - an iterative, self-referential AI development loop where the agent continuously improves its work until completion.

How It Works

# Launch the TUI dashboard
pickle

# Or run directly with a prompt
pickle "Implement JWT authentication"

# The agent automatically:
# 1. Creates an isolated git worktree
# 2. Works through the task phases
# 3. Iterates until completion
# 4. Offers to merge changes back

Core Concepts

  • Git Worktree Isolation: Each session runs in a separate worktree, preventing conflicts with your main branch
  • State Persistence: Session state saved to disk, allowing resume after interruption
  • Streaming Output: Real-time progress updates in the TUI
  • Multi-Provider Support: Works with Gemini, Claude, OpenCode, Cursor, and more

🛠️ Usage

Launch TUI Dashboard

pickle

Opens the interactive terminal interface where you can:

  • Enter prompts for new coding tasks
  • View and manage existing sessions
  • Monitor task progress in real-time

Run with a Prompt

pickle "Your task description here"

Examples:

pickle "Add unit tests for the authentication module"
pickle "Refactor the database layer to use connection pooling"
pickle "Fix the bug where users can't logout on mobile"

Command Options

| Option | Description | Default | |--------|-------------|---------| | -m, --max-iterations <n> | Maximum agent iterations | 20 | | -r, --resume <path> | Resume an existing session | - | | --completion-promise <text> | Stop when this text appears | "I AM DONE" | | --tui | Force TUI mode | false |

Additional Commands

# List all sessions
pickle sessions

# Validate settings file
pickle validate-settings

# Auto-fix common settings issues
pickle validate-settings --fix

⚙️ Configuration

Settings are stored at ~/.pickle/settings.json:

{
  "model": {
    "provider": "gemini",
    "model": "gemini-2.0-flash"
  }
}

Supported Providers

| Provider | Value | Description | |----------|-------|-------------| | Gemini | "gemini" | Google Gemini CLI (default) | | OpenCode | "opencode" | OpenCode CLI | | Claude | "claude" | Anthropic Claude | | Cursor | "cursor" | Cursor AI | | Codex | "codex" | OpenAI Codex | | Qwen | "qwen" | Alibaba Qwen | | Copilot | "copilot" | GitHub Copilot |

🔍 Session Management

Session Storage

Sessions are stored in:

  • Local: .pickle/sessions/<date-hash>/ in your project
  • Worktrees: .pickle/worktrees/session-<name>/ for isolated execution
  • Global: ~/.gemini/extensions/pickle-rick/sessions/

Resuming Sessions

# Resume a specific session
pickle -r .pickle/sessions/2024-01-15-abc123/

The agent continues from where it left off with full context preserved.

📂 Project Structure

cli/
├── docs/               # Documentation
│   ├── INSTALLATION.md # Setup guide
│   ├── USAGE.md        # Command reference
│   ├── CONFIGURATION.md# Settings guide
│   └── ARCHITECTURE.md # Technical design
├── src/
│   ├── index.ts        # CLI entry point
│   ├── services/
│   │   ├── config/     # State & settings management
│   │   ├── execution/  # Orchestrator loop logic
│   │   ├── git/        # Git operations (worktree, diff, PR)
│   │   └── providers/  # AI provider integrations
│   ├── ui/             # TUI components and views
│   ├── games/          # Easter egg games 🎮
│   └── utils/          # Utility functions
└── dist/               # Compiled output (after build)

🏗️ Development

# Install dependencies
bun install

# Run in development mode
bun run dev

# Build production executable
bun run build

# Type check
bun run check

# Run tests
bun test

✅ When to Use Pickle Rick

Good for:

  • Well-defined tasks with clear success criteria
  • Tasks requiring iteration and refinement
  • Greenfield features where you can walk away
  • Tasks with automatic verification (tests, linters)

Not good for:

  • Tasks requiring human judgment mid-execution
  • One-shot simple operations
  • Tasks with unclear success criteria
  • Production debugging

🛡️ Safety & Sandboxing

Pickle Rick executes code autonomously. Safety features include:

  • Git Worktree Isolation: Changes happen in separate worktrees
  • No Auto-Push: Changes are never pushed without explicit action
  • Merge Review: Always review changes before merging to main

For additional safety, run in a sandboxed environment (Docker, VM) for untrusted tasks.

📚 Documentation

⚖️ License

MIT


"Wubba Lubba Dub-Dub! 🥒"