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

ai-git-worktrees

v0.10.0

Published

Git Worktree Task: create worktree, run Claude, merge, push, clean up

Readme

ai-git-worktrees

Run AI coding tasks in isolated git worktrees — automatically create, work, merge, push, and clean up.

What it does

gwt gives every AI coding task its own git worktree. You describe what you want, Claude does the work in an isolated branch, and the result gets merged back automatically. No stashing, no branch juggling, no cleanup.

gwt "Fix the auth bug"

  create worktree ──► Claude works ──► merge ──► push ──► cleanup 

Split larger tasks into parallel work streams with gwt split:

gwt split "add auth, write tests, update docs"

                 ┌── worktree 1 ──► Claude ──► merge ──┐
  decompose ───► ├── worktree 2 ──► Claude ──► merge ──┼──► push ──► cleanup
                 └── worktree 3 ──► Claude ──► merge ──┘

Also includes tools to rescue crashed sessions, batch-merge results, and manage permissions/limits.

Quick start

npm install -g ai-git-worktrees

# Run your first task
gwt "Add input validation to the signup form"

That's it. A worktree is created, Claude does the work, and the changes are merged back into your current branch.

Core commands

| Command | What it does | |---------|--------------| | gwt "<prompt>" | Run a task in a new worktree (full lifecycle) | | gwt | Open an interactive Claude session in a new worktree | | gwt split "<task>" | Decompose a task into parallel work streams | | gwt rescue <branch> | Resume a Claude session in an existing worktree | | gwt merge <branch> | Merge a worktree branch (no AI) | | gwt delete <branch> | Remove a worktree and its branch | | gwt status | Show all worktrees and running sessions | | gwt docs [topic] | Built-in documentation for any command or topic |

Examples

Single task — fully automatic:

gwt "Add unit tests for the auth module"

Parallel tasks — split and run simultaneously:

gwt split "add JWT auth, write API tests, update the docs" --max-budget-usd 5

Work only — review before merging:

gwt "Refactor the database layer" --work-only
# inspect changes, then:
gwt merge gwt/task-20260206-a1b2

Rescue a crashed session:

gwt rescue gwt/task-20260206-a1b2

Check what's running:

gwt status

Configuration

| Flag | Description | |------|-------------| | -p, --print | Non-interactive mode (headless) | | --model <model> | Claude model override (opus, sonnet, haiku) | | --max-budget-usd <n> | Cost limit for the session | | --permission-mode <mode> | Permission mode for Claude | | --from <ref> | Base worktree on a specific branch, tag, or commit | | --work-only | Skip merge/push/cleanup (work phase only) | | --no-push | Skip push after merge | | --no-cleanup | Keep worktree after merge | | -- | Pass remaining flags to claude verbatim |

See the full CLI reference for every command and option.

VS Code extension

A sidebar panel for managing worktrees, launching sessions, and tracking status — all from VS Code. See the VS Code extension docs.

Requirements

Documentation

License

MIT