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

claude-raid

v0.2.15

Published

Adversarial multi-agent development system for Claude Code

Readme

License: MIT Zero Dependencies Node.js 18+ 325 Tests

Beta — This project is in active development. Multi-agent sessions are token-usage intensive — a full Canonical Quest consumes significantly more tokens than a single-agent workflow. Monitor your usage and start with small tasks to calibrate.

Quick Start · The Canonical Quest · The Party · The Dungeon · Configuration · CLI Reference


What is Claude Raid?

Claude Raid turns a single Claude Code session into a 4-agent adversarial team that designs, plans, builds, reviews, and ships code through structured phases. Instead of one AI guessing at a solution, four agents challenge each other's work until only battle-tested decisions survive.

The Wizard orchestrates. The Warrior, Archer, and Rogue each bring a different lens — stress tolerance, pattern coherence, and assumption destruction. They work in rounds, pin verified findings to a shared Dungeon, and no phase closes until the Wizard rules.

One command installs the system. One command starts a quest.


Quick Start

# Install the Raid into your project
npx claude-raid summon

# Start a quest
claude-raid start

summon installs agents, hooks, skills, and config into your project's .claude/ directory.

start opens a tmux session with mouse support and launches the Wizard — one command does it all. The Wizard greets you, you describe your task, and the quest begins.

# Preview what gets installed (no changes)
npx claude-raid summon --dry-run

# Install with RTK token compression (optional)
npx claude-raid summon --rtk

Prerequisites

| Requirement | Why | |:--|:--| | Node.js 18+ | Runs the CLI | | Claude Code v2.1.32+ | Agent teams support | | tmux | Multi-pane agent display (brew install tmux) | | jq | Config parsing (pre-installed on macOS) |

tmux gives each agent its own pane — claude-raid start handles the tmux session automatically. Click into any pane to observe or talk to that agent directly.

The setup wizard checks all prerequisites during summon and offers to fix what it can.


The Canonical Quest

The Canonical Quest is a 6-phase development cycle. Every feature, refactor, or system built through the Raid follows this sequence.

flowchart LR
    PRD["Phase 1\nPRD"]
    Design["Phase 2\nDesign"]
    Plan["Phase 3\nPlan"]
    Impl["Phase 4\nImplementation"]
    Review["Phase 5\nReview"]
    Wrap["Phase 6\nWrap Up"]

    PRD -->|"optional"| Design
    Design --> Plan
    Plan --> Impl
    Impl --> Review
    Review -->|"optional"| Wrap
    Impl -->|"skip review"| Wrap

    style PRD fill:#6c5ce7,color:#fff
    style Design fill:#6c5ce7,color:#fff
    style Plan fill:#6c5ce7,color:#fff
    style Impl fill:#e17055,color:#fff
    style Review fill:#00b894,color:#fff
    style Wrap fill:#fdcb6e,color:#000

Phase 1 — PRD (optional)

Agents research the problem space and produce a complete Product Requirements Document. No code. The Wizard mediates questions between agents and the human.

Output: spoils/prd.md

Phase 2 — Design

Agents explore design approaches from competing angles. Each brings their lens — the Warrior stress-tests architecture choices, the Archer traces ripple effects, the Rogue attacks assumptions. The design survives only if it withstands all three.

Output: phases/phase-2-design.md (evolution log) + spoils/design.md (polished deliverable)

Phase 3 — Plan

Agents decompose the approved design into discrete, testable tasks. They fight over ordering, scope boundaries, naming, and test coverage until the plan earns consensus.

Output: phases/phase-3-plan.md + spoils/tasks/phase-3-plan-task-NN.md

Phase 4 — Implementation

The Wizard assigns tasks in batches. One agent builds each task using strict TDD (RED-GREEN-REFACTOR). The others cross-test the implementation — reading code, running tests, and challenging decisions. Every task earns approval before the next batch starts.

Output: phases/phase-4-implementation.md + committed, tested code

Phase 5 — Review (optional)

Two sub-phases: Pinning (find issues) and Fixing (resolve them). Agents review independently, then fight over findings and missing findings. Critical and Important issues must be fixed. The Black Card system handles breaking architectural concerns.

Output: phases/phase-5-review.md + spoils/review.md

Phase 6 — Wrap Up

The Wizard generates a quest storyboard summarizing what was built and why. Creates the PR, archives the dungeon to the vault, and dismisses the party.

Output: phase-6-wrap-up.md + PR + vault archive


The Party

Four agents, each with a distinct lens. They collaborate through rigor, not agreement.

All agents run on Claude Opus 4.6.

How They Work Together

sequenceDiagram
    participant W as Wizard
    participant Party as Warrior / Archer / Rogue

    W->>Party: Dispatch tasks + angles
    Note over Party: Parallel independent work
    Party->>W: ROUND_COMPLETE
    W->>Party: Cross-test each other's work
    Note over Party: Challenge, verify, concede or escalate
    Party->>W: Findings + evidence
    W->>W: Pin verified findings to Dungeon
    Note over W: Next round or phase close

Round-based, not real-time. Agents work independently, flag completion, then cross-test. No mid-thinking interruptions. Each message carries evidence and a conclusion. Converge in 2-3 exchanges per finding — escalate to the Wizard after 3.

Seven Pillars

Every agent, every phase, every interaction:

  1. Intellectual Honesty — Every claim backed by evidence gathered this turn. No guessing.
  2. Zero Ego — Concede instantly when proven wrong. A teammate catching your mistake is a gift.
  3. Discipline — Every interaction carries work forward. If you're not adding information, stop talking.
  4. Round-Based Interaction — Turn-based work, flag completion, cross-test on dispatch.
  5. Question Chain — Agents never ask the human directly. All questions flow through the Wizard.
  6. Phase Spoils — Every phase produces a detailed markdown artifact. No exceptions.
  7. Black Cards — Architecture-breaking findings that cannot be fixed within the current design. Escalated to the human with rollback options.

The Dungeon

The Dungeon is the team's shared knowledge artifact — a curated board where agents pin verified findings during each phase.

| Concept | What It Means | |:--|:--| | Quest | A complete session — from greeting to PR | | Dungeon | The quest's artifact directory: phase files, task files, findings | | Vault | Archive of completed quests for institutional memory | | Phase Spoils | Mandatory output of each phase: a detailed markdown report | | Black Card | A finding that fundamentally breaks the architecture — requires human decision | | Pin | A verified finding that survived challenge from 2+ agents |

Dungeon Filesystem

.claude/dungeon/{quest-slug}/          # Active quest artifacts
├── phases/                            # Evolution logs (scoreboards)
│   ├── phase-2-design.md
│   ├── phase-3-plan.md
│   ├── phase-4-implementation.md
│   └── phase-5-review.md
├── spoils/                            # Polished deliverables
│   ├── prd.md
│   ├── design.md
│   ├── review.md
│   └── tasks/
│       └── phase-3-plan-task-NN.md
├── backups/                           # Pre-compact safety copies
│   └── phase-N-{name}-backup.md
├── phase-6-wrap-up.md                 # Quest storyboard
├── teambuff-NN.md                     # Team retrospective reports (on-demand)
└── teambuff-rulings.md                # Active rulings from teambuffs

.claude/vault/{quest-slug}/            # Archived completed quests
.claude/raid-session                   # Active session state

What goes in the Dungeon: Findings that survived challenge from 2+ agents, key decisions, escalation points.

What stays in conversation: Back-and-forth challenges, exploratory thinking, concessions. The conversation is the sparring ring. The Dungeon is the scoreboard.


What Gets Installed

.claude/
├── raid.json                        # Project config (auto-detected, editable)
├── party-rules.md                   # Party agent rules (editable)
├── dungeon-master-rules.md          # Wizard rules (editable)
├── settings.json                    # Hooks merged with existing (backup created)
├── agents/
│   ├── wizard.md                    # Dungeon master
│   ├── warrior.md                   # Stress tester
│   ├── archer.md                    # Pattern seeker
│   └── rogue.md                     # Assumption destroyer
├── hooks/
│   ├── raid-lib.sh                  # Shared config and session state
│   ├── raid-session-start.sh        # Session activation + quest directory
│   ├── raid-session-end.sh          # Archive to vault + cleanup
│   ├── raid-pre-compact.sh          # Pre-compaction dungeon backup
│   ├── raid-task-created.sh         # Task subject validation
│   ├── validate-commit.sh           # Conventional commits
│   ├── validate-write-gate.sh       # Phase-based write protection
│   ├── validate-file-naming.sh      # Naming convention enforcement
│   ├── validate-no-placeholders.sh  # No TBD/TODO in specs
│   ├── validate-dungeon.sh          # Multi-agent verification on pins
│   ├── validate-browser-tests-exist.sh  # Playwright test detection
│   ├── validate-browser-cleanup.sh  # Browser process cleanup
│   └── rtk-bridge.sh               # Token compression via RTK (opt-in)
└── skills/
    ├── raid-init/                   # Quest selection and session setup
    ├── raid-canonical-protocol/     # Canonical Quest rules and signals
    ├── raid-canonical-prd/          # Phase 1: PRD creation
    ├── raid-canonical-design/       # Phase 2: Adversarial design
    ├── raid-canonical-implementation-plan/  # Phase 3: Task decomposition
    ├── raid-canonical-implementation/       # Phase 4: TDD + cross-testing
    ├── raid-canonical-review/       # Phase 5: Pinning + fixing
    ├── raid-wrap-up/                # Phase 6: Storyboard + PR + vault
    ├── raid-tdd/                    # RED-GREEN-REFACTOR enforcement
    ├── raid-verification/           # Evidence-before-claims gate
    ├── raid-debugging/              # Root-cause investigation
    ├── raid-browser/                # Browser orchestration
    ├── raid-browser-chrome/         # Live Chrome inspection
    └── raid-teambuff/               # Emergency team retrospective

Agents (4)

The Wizard orchestrates. Warrior, Archer, and Rogue each bring a specialized lens. All agents run on Claude Opus 4.6.

Hooks (13)

Hooks enforce workflow discipline automatically and only activate during Raid sessions — they never interfere with normal coding.

Lifecycle hooks (5) manage session start/end, quest directory creation, vault archival, context compaction backup, and task validation. All source raid-lib.sh for shared config.

Quality gate hooks (7) enforce conventional commits, phase-based write protection, naming conventions, placeholder blocking, multi-agent verification on dungeon pins, browser test detection, and browser process cleanup.

Optional hooks (1): rtk-bridge.sh provides token compression via RTK — enabled with --rtk during summon.

All hooks are POSIX-compatible and use #claude-raid markers to coexist safely with your existing hooks.

Skills (14)

Skills guide agent behavior across the workflow. Five categories:

| Category | Skills | Purpose | |:--|:--|:--| | Core | raid-init | Quest selection, greeting, session bootstrap | | Protocol | raid-canonical-protocol | Phase lifecycle rules, transition gates, signals | | Canonical Quest | 6 phase skills | One skill per phase, chained in order | | Discipline | raid-tdd, raid-verification, raid-debugging | Quest-agnostic enforcement — invoked within any phase | | Browser | raid-browser, raid-browser-chrome | Browser orchestration and live inspection | | Team | raid-teambuff | Emergency team retrospective — freezes quest, all agents reflect on dysfunction, produces binding rulings |


Configuration

claude-raid summon auto-detects your project and generates .claude/raid.json:

{
  "project": {
    "name": "my-project",
    "language": "typescript",
    "packageManager": "npm",
    "runCommand": "npm run",
    "execCommand": "npx",
    "installCommand": "npm add",
    "testCommand": "npm test",
    "lintCommand": "npm run lint",
    "buildCommand": "npm run build"
  },
  "paths": {
    "specs": "docs/raid/specs",
    "plans": "docs/raid/plans",
    "worktrees": ".worktrees"
  },
  "conventions": {
    "fileNaming": "none",
    "commits": "conventional"
  },
  "raid": {
    "defaultMode": "full",
    "agentEffort": "medium",
    "vault": { "path": ".claude/vault", "enabled": true },
    "lifecycle": {
      "autoSessionManagement": true,
      "teammateNudge": true,
      "taskValidation": true,
      "completionGate": true,
      "phaseTransitionConfirm": true,
      "compactBackup": true,
      "testWindowMinutes": 10
    }
  }
}

Auto-Detection

| Marker File | Language | Test Command | Lint Command | |:--|:--|:--|:--| | package.json | JavaScript/TypeScript | npm test | npm run lint | | Cargo.toml | Rust | cargo test | cargo clippy | | pyproject.toml | Python | pytest / poetry run pytest | ruff check . | | requirements.txt | Python | pytest | ruff check . | | go.mod | Go | go test ./... | go vet ./... |

Package manager is auto-detected (npm, pnpm, yarn, bun, uv, poetry). Commands are extracted from your project files where possible. Edit raid.json to override any value.

| Key | Default | Description | |:--|:--|:--| | project.name | auto-detected | Project name | | project.language | auto-detected | Primary language | | project.packageManager | auto-detected | npm, pnpm, yarn, bun, uv, or poetry | | project.testCommand | auto-detected | Command to run tests | | project.lintCommand | auto-detected | Command to run linting | | project.buildCommand | auto-detected | Command to build | | paths.specs | docs/raid/specs | Design spec output directory | | paths.plans | docs/raid/plans | Implementation plan output directory | | paths.worktrees | .worktrees | Git worktree directory | | conventions.fileNaming | none | kebab-case, snake_case, camelCase, or none | | conventions.commits | conventional | Commit message format | | conventions.commitMinLength | 15 | Minimum commit message length (set manually) | | conventions.maxDepth | 8 | Maximum file nesting depth (set manually) | | raid.defaultMode | full | Default quest mode | | raid.agentEffort | medium | Agent reasoning effort level | | raid.vault.enabled | true | Archive completed quests to vault | | raid.vault.path | .claude/vault | Vault directory path | | raid.lifecycle.autoSessionManagement | true | Auto-manage session start/end | | raid.lifecycle.teammateNudge | true | Nudge agents to use teammate mode | | raid.lifecycle.taskValidation | true | Validate task subjects are meaningful | | raid.lifecycle.completionGate | true | Require verification before completion claims | | raid.lifecycle.phaseTransitionConfirm | true | Confirm before phase transitions | | raid.lifecycle.compactBackup | true | Back up dungeon before context compaction | | raid.lifecycle.testWindowMinutes | 10 | Max age (minutes) of test run for verification |

Browser Testing

When a browser framework is detected (Next.js, Vite, Angular, etc.), a browser section is added to raid.json:

{
  "browser": {
    "enabled": true,
    "framework": "next",
    "devCommand": "npm run dev",
    "baseUrl": "http://localhost:3000",
    "defaultPort": 3000,
    "portRange": [3001, 3005],
    "playwrightConfig": "playwright.config.ts",
    "auth": null,
    "startup": null
  }
}

This enables browser-specific hooks and skills — Playwright test detection, browser process cleanup, and live Chrome inspection during reviews.

RTK Token Compression

When installed with --rtk, an rtk section is added to raid.json:

{
  "rtk": {
    "enabled": true,
    "bypass": {
      "phases": [],
      "commands": []
    }
  }
}

RTK compresses token usage via a fail-open bridge hook. Bypass specific phases or command prefixes by editing the arrays. Requires the rtk binary to be installed separately.


CLI Reference

| Command | Alias | Purpose | |:--|:--|:--| | claude-raid start | — | Launch the Wizard and begin a quest | | claude-raid summon | init | Install Raid into your project | | claude-raid update | — | Upgrade hooks, skills, and rules to latest | | claude-raid dismantle | remove | Remove all Raid files, restore original settings | | claude-raid heal | doctor | Check environment health | | claude-raid sync | — | Git pull + re-summon |

start

One command does it all — opens a tmux session with mouse support and launches the Wizard with full permissions. If you're already inside tmux, it enables mouse mode and launches the Wizard directly. If tmux isn't installed, it falls back to launching the Wizard without it.

This is the primary entry point for running a quest.

summon

Installs the full Raid system. Auto-detects project type, copies agents/hooks/skills, generates raid.json, merges settings (with backup), and runs the setup wizard.

  • Never overwrites existing files — customized agents are preserved
  • Idempotent — safe to run multiple times
  • --dry-run shows exactly what would be created without touching disk
  • --rtk enables RTK token compression bridge

update

Upgrades hooks, skills, and rules to the latest version. Skips customized agents and warns which ones were preserved. Does not touch raid.json.

dismantle

Removes all Raid agents, hooks, skills, and config files. Restores settings.json from the backup created during install.

heal

Checks Node.js, Claude Code, jq, tmux, and teammateMode. Offers to fix missing configuration interactively.

sync

Pulls latest from remote and re-runs summon to pick up any template changes. Useful after CI bumps the version.


Controls

claude-raid start opens tmux with mouse mode enabled. All panes are visible simultaneously.

| Action | How | |:--|:--| | Switch to agent pane | Click the pane | | Navigate between panes | Ctrl+B then arrow key | | Scroll output | Mouse wheel | | Talk to an agent | Click their pane and type |


Design Principles

  • Non-invasive — Never touches your CLAUDE.md. Merges settings alongside your existing config with automatic backup. Clean removal restores originals.
  • Session-scoped — Quality gate hooks only activate during Raid sessions. Normal coding is never affected.
  • Zero dependencies — Pure Node.js stdlib. Fast npx cold-start.
  • Safe by default — Never overwrites existing files. Customized agents and rules are always preserved.
  • Round-based discipline — Agents work in parallel, flag completion, then cross-test. No mid-thinking interruptions.
  • Question chain — Agents never ask the human directly. All questions flow through the Wizard.
  • Wizard never implements — Dispatches, observes, digests, rules. The party writes code.
  • Phase commits — The Wizard commits at every phase transition with the quest name, phase, and summary.

Heritage

Adapted from obra/superpowers by Jesse Vincent. The Raid inherits five core enforcement principles:

| Principle | How the Raid Enforces It | |:--|:--| | HARD-GATEs | No code before design approval. No implementation before plan approval. | | TDD Iron Law | No production code without a failing test first. Enforced in every phase. | | Verification Iron Law | No completion claims without fresh test evidence. | | No Placeholders | Specs and plans must contain complete content — no "TBD" or "implement later". | | Conventional Commits | Enforced via hook: type(scope): description. |

What's different: Superpowers uses a single agent with subagent delegation. The Raid uses 4 persistent agents with adversarial cross-testing. Agents challenge each other directly, pin verified findings to a shared Dungeon, and self-organize within phases. Every decision is stress-tested from three angles before it passes.


License

MIT


Built for Claude Code.