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

@bis-code/claw

v3.2.12

Published

Claude Automated Workflow - Orchestration layer for autonomous AI development

Downloads

1,478

Readme

claw - Command Line Automated Workflow

A powerful wrapper for Claude Code that adds project management, multi-repo support, and autonomous development workflows.

📦 Local Development Only This project has no published releases or package manager distribution. Clone the repository and add to your PATH to get the latest version directly from source.

Installation (Local Setup)

Initial Setup

One-time setup (installs symlink + auto-sync):

# Clone the repository to a permanent location
git clone https://github.com/bis-code/claw.git ~/claw
cd ~/claw

# Run setup script (creates symlink, installs git hook, syncs config)
./setup.sh

# Verify installation
claw --version

What setup.sh does:

  1. Creates symlink: /usr/local/bin/claw~/claw/bin/claw
  2. Installs git post-merge hook (auto-syncs after git pull)
  3. Runs initial claw --update to sync templates

After setup, you can use claw from anywhere!

Updating to Latest Version

Fully automatic (if you ran setup.sh):

cd ~/claw
git pull origin main

# That's it! The git hook auto-syncs configuration for you

What happens automatically:

  1. Git post-merge hook detects if bin/claw or templates/ changed
  2. If yes, runs claw --update automatically
  3. Configuration synced with latest templates - no manual step needed!

Manual sync (if needed):

claw --update  # Forces configuration sync

For cutting-edge features:

cd ~/claw
git checkout develop && git pull origin develop
# Auto-syncs via git hook

Development / Contributing

cd ~/claw

# Work on develop branch
git checkout develop
git pull origin develop

# Make your changes to:
# - bin/claw          (main script)
# - lib/*             (library functions)
# - templates/.claude/* (Claude Code templates)

# Test your changes
./bin/claw --help

# When ready, commit
git add .
git commit -m "your changes"
git push origin develop

Quick Start

# Use (drop-in replacement for claude)
claw                      # Start interactive session
claw "fix the bug"        # Start with prompt
claw --continue           # Continue last session

Command Reference

Quick reference for daily usage:

| Command | When to Use | What It Does | |---------|-------------|--------------| | claw | Start session | Opens Claude Code with claw config | | /auto | Do everything | Discover, plan, execute, ship (autopilot) | | /auto --plan-only | Just plan | See what needs doing without executing | | /plan-day | Plan manually | Same as /auto --plan-only | | /next | Manual workflow | Pick up next issue from plan | | /done | After completing issue | Create PR, mark done | | /ship-day | End of day | Squash, create final PR, close issues | | /pivot | Priorities change | Document change, adjust plan | | claw --update | After git pull | Sync configuration (or automatic via hook) |

Recommended workflow:

# Morning
claw
/auto --hours 6  # Autonomous: discovers, plans, executes, ships

# Or manual control
/plan-day --hours 6  # Just plan
/next                # Pick up each issue
/done                # Complete each issue
/ship-day            # Ship at end of day

Features

| Feature | Description | |---------|-------------| | Project Management | Group multiple repos into projects | | Multi-Repo Issues | Aggregate GitHub issues across all project repos | | Daily Workflow | /auto, /plan-day, /ship-day, /next, /done commands | | Iteration Loop | Test-until-green approach - keeps trying until tests pass | | Autonomous Self-Improvement | Daily automated code quality improvements with PR creation | | Templates | Install GitHub issue templates via API | | Auto-Detection | Knows which project you're in from any subdirectory |

Project-Based Multi-Repo

The recommended way to work with multiple repositories:

# Create a project
claw project create my-saas --description "My SaaS Platform"

# Add your local repos
claw project add-repo ~/projects/my-saas/api --project my-saas
claw project add-repo ~/projects/my-saas/dashboard --project my-saas
claw project add-repo ~/projects/my-saas/worker --project my-saas

# View project
claw project show

Auto-detection: Once configured, claw knows your project from any repo:

cd ~/projects/my-saas/api
claw project show          # Shows "my-saas" automatically
claw project issues        # Fetches issues from ALL repos in project

Project Commands

| Command | Description | |---------|-------------| | claw project create <name> | Create a new project | | claw project add-repo <path> | Add local repo to project | | claw project remove-repo <path> | Remove repo from project | | claw project list | List all projects | | claw project show | Show current project details | | claw project issues | Fetch issues from all project repos | | claw project generate-self-improve-workflow | Generate autonomous improvement workflows |

Available Skills/Commands

All commands are available inside any Claude session started with claw. Use them with a / prefix.

Daily Workflow

| Command | Flags | Description | |---------|-------|-------------| | /plan-day | --hours N (required)--brainstorm--no-issues | Alias for /auto --plan-onlyPlan the day's work from GitHub issuesUses lens-based analysis (Value, Risk, Effort, Security) | | /next | None | Pick up next issue from today's plan | | /done | None | Mark current issue as complete, update status | | /ship-day | None | End of day: squash commits, create PR, close issues |

Autonomous Workflows

| Command | Flags | Description | |---------|-------|-------------| | /auto | --hours N (default: 4)--focus "area"--discovery [deep\|shallow\|none]--plan-only--skip-discovery--max-iterations-per-issue N (default: 5) | One command to rule them allFull autonomous mode: discover work, plan, execute, shipNEW: Iteration-until-green approach - keeps trying until tests passUse --plan-only to stop after planning | | /self-improve | --hours N (default: 2)--focus "area"--dry-run--max-commits N (default: 20) | Autonomous code quality improvementsDiscovers issues, researches best practices, creates PR |

NEW: Iteration Loop - /auto now includes Ralph Wiggum-inspired persistence:

  • Each issue gets up to 5 attempts (configurable) to pass all tests
  • Automatic stuck detection (same error 3x, no file changes)
  • Transparent tracking in daily files and reports
  • See docs/ITERATION_LOOP.md for details

Analysis & Planning

| Command | Flags | Description | |---------|-------|-------------| | /pivot | None | Handle mid-day changes: blocker, better idea, scope changeDocuments reason and updates plan |

Note: /plan-day is now an alias for /auto --plan-only. /brainstorm and /autonomous are internal commands called by /auto.

Utilities

| Command | Flags | Description | |---------|-------|-------------| | /search | <query>--files--def--content | Efficient codebase search (optimized for token usage) | | /index | --update | Generate or update project index for faster searching | | /summary | None | Generate daily work summary with commits and changes | | /benchmark-search | None | Compare search efficiency (Glob/Grep vs /search) |

Example Workflow

# Morning: Start claw from any project repo
cd ~/projects/my-saas/api
claw

# Inside Claude session:
/auto --plan-only --hours 6  # Plan the day (or just /plan-day --hours 6)
# ... work on issues ...
/done                        # After completing an issue
/next                        # Start next issue
/ship-day                    # End of day

Autonomous Mode Example

claw

# Full autonomous cycle (discover → plan → execute → ship)
/auto --hours 4              # Default: 4 hours

# Or just plan without execution
/auto --plan-only --hours 6  # Discover and plan only

# Or just improve code quality
/self-improve --hours 2

Autonomous Self-Improvement

Enable daily automated code quality improvements for your entire project:

Prerequisites

Configure Claude OAuth for each repository in your project:

# For EACH repository, run:
cd ~/projects/my-saas/api
claude
/install-github-app

cd ~/projects/my-saas/dashboard
claude
/install-github-app

# Repeat for all repos in your project...

This sets up CLAUDE_CODE_OAUTH_TOKEN that workflows will use.

Generate Workflows

# Generate workflows for all repos in your project
cd ~/projects/my-saas/api  # Any repo in the project
claw project generate-self-improve-workflow

# Review and commit workflows
cd ~/projects/my-saas/api
git add .github/workflows/self-improve.yml
git commit -m "feat: add autonomous self-improvement"
git push

# Repeat for other repos (or use generate-self-improve-workflow from any repo)

What It Does

Every day at 2 AM UTC, each repo will:

  1. Discover improvement opportunities:

    • TODOs, FIXMEs, HACKs in code
    • Modules without tests
    • Shellcheck warnings
    • Complex functions (>50 lines)
    • Code duplication
    • Web research for best practices and trends
  2. Prioritize by safety, impact, and effort:

    • Only safe changes (safety score ≥ 7)
    • High-impact improvements first
    • Includes trend-based features from web research
  3. Implement fixes autonomously:

    • TDD approach (test first)
    • Run tests after each change
    • Rollback on failure
    • Atomic commits per improvement
  4. Create PR automatically:

    • Summary of all improvements
    • Test results
    • Web research findings
    • Ready for review

Safety Features

  • Only non-breaking changes
  • All tests must pass before commit
  • Automatic rollback on failure
  • Time-limited execution (2 hours max)
  • No security-critical code modifications
  • Conservative approach to new dependencies

Example PR Output

🤖 Automated improvements - 2026-01-09

Summary:
- 8 improvements committed (2 from web research)
- Test coverage: 65% → 72% (+7%)
- Shellcheck warnings: 8 → 2 (-75%)
- Security: Adopted 1 new best practice

Web Research Findings:
- Adopted bats-assert library for better test assertions
- Implemented secure temp file handling (OWASP 2026)

All tests passing ✓

GitHub Issue Templates

Install Claude-ready issue templates to any repo:

# List available templates
claw templates list

# Install templates (uses GitHub API - no clone needed)
claw templates install myorg/myrepo bug-report claude-ready

Templates install directly to the default branch via API - works regardless of your local branch state.

Available Templates

  • bug-report - Bug reports with reproduction steps
  • feature-request - Feature requests with acceptance criteria
  • claude-ready - Tasks ready for /plan-day (labeled claude-ready)
  • tech-debt - Technical debt tracking

Legacy Multi-Repo (Simple)

For simpler needs, track repos by GitHub name:

claw repos add myorg/backend
claw repos add myorg/frontend
claw repos list

Issues from tracked repos are included in /plan-day.

Configuration

claw stores data in ~/.claw/:

~/.claw/
├── projects/           # Project configurations
│   └── my-saas/
│       └── config.json
├── repos.json          # Legacy tracked repos
└── daily/              # Daily workflow state files

Each repo in a project gets a .claw/project.json marker for auto-detection.

Extended Thinking (Recommended)

Enable extended thinking for better planning and decision-making quality:

# Add to ~/.bashrc or ~/.zshrc
export MAX_THINKING_TOKENS=31999

This enables comprehensive reasoning during:

  • /auto - Full autonomous development (discovery, planning, execution)
  • /auto --plan-only - Daily work prioritization (same as /plan-day)
  • Complex architectural decisions

Benefits: Deeper analysis, better edge case identification, more thorough risk assessment.

Cost: You are charged for thinking tokens used (shown in Claude Code output).

Alternatively, toggle thinking mode per-session with Option+T (macOS) or Alt+T (Windows/Linux).

Requirements

All Options

claw --help               # Full usage
claw project --help       # Project management
claw repos --help         # Legacy multi-repo
claw templates --help     # Issue templates
claw --version            # Version info
claw --update             # Update global commands

How It Works

  1. Wrapper: claw passes all arguments to claude, adding features on top
  2. Projects: Config stored in ~/.claw/projects/, markers in each repo's .claw/
  3. Skills: Global commands installed to ~/.claude/commands/
  4. Templates: Installed via GitHub API (no repo cloning)

Development

Quick Local Testing

For instant feedback during development:

# Enable dev mode (one time)
make dev

# Now make changes and test instantly!
vim bin/claw
claw --version  # ⚡ Instant!

# Quick test
make test

# When done (optional - or just leave dev mode on)
make install  # Returns to normal installation

Commands:

  • make dev - Enable dev mode (symlinks to working code)
  • make test - Quick functionality test
  • make test-full - Run full test suite
  • make install - Install claw normally (disables dev mode)
  • make clean - Remove all installations

Documentation:

License

MIT