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

agentfork

v0.1.0

Published

Spawn isolated git worktrees for AI coding agents.

Readme

agentfork

Spawn isolated git worktrees for AI coding agents.

The problem

Running Claude Code, Cursor, or aider in parallel? Each agent needs its own directory or they stomp on each other's changes. git worktree gives you isolated folders, but it doesn't copy your .env files, run npm install, or keep track of what's where.

agentfork closes the gap in three commands.

Install

npm install -g agentfork
# or
pnpm add -g agentfork

Quickstart

# 1. Create an isolated worktree for a new feature
agentfork new search

# 2. Open Claude Code inside it
agentfork run search claude

# 3. See all your worktrees
agentfork list

Commands

agentfork new <name> [options]

Creates a worktree at ../<repo>-<name>, copies declared env files, and optionally runs your install command.

| Option | Description | |---|---| | --branch <branch> | Branch name to use (defaults to <name>) | | --no-install | Skip the install command from config |

agentfork new search                     # worktree on new `search` branch
agentfork new hotfix --branch fix-pay    # worktree using existing branch `fix-pay`
agentfork new experiment --no-install    # skip npm/pnpm install

agentfork list (alias: agentfork ls)

Lists all worktrees for the current repo: name, branch, last modified date, path.

agentfork list
NAME       BRANCH        MODIFIED    PATH
──────────────────────────────────────────────────────────
myrepo     main          Jun 07 2026 /Users/you/myrepo  (main)
myrepo-s…  search        Jun 08 2026 /Users/you/myrepo-search
myrepo-h…  fix-pay       Jun 08 2026 /Users/you/myrepo-hotfix

agentfork run <name> <agent>

Starts an agent inside a named worktree. The agent command is resolved via config.agents, falling back to the raw string.

agentfork run search claude      # runs `claude` in the search worktree
agentfork run hotfix cursor      # runs `cursor .` in the hotfix worktree
agentfork run search "aider ."   # raw command

agentfork clean <name> [options]

Removes a worktree. Optionally deletes its branch and prunes stale refs.

| Option | Description | |---|---| | --force | Force removal even with uncommitted changes | | --delete-branch | Also delete the worktree's git branch |

agentfork clean search
agentfork clean hotfix --delete-branch
agentfork clean experiment --force --delete-branch

Config

Place .agentfork.json in your repo root. All keys are optional.

{
  "basePath": "..",
  "copy": [".env.local", ".env.development"],
  "install": "pnpm install",
  "agents": {
    "claude": "claude",
    "cursor": "cursor ."
  }
}

| Key | Default | Description | |---|---|---| | basePath | ".." | Where to create worktrees, relative to repo root | | copy | [".env", ".env.local"] | Files to copy into each new worktree | | install | (none) | Command to run in the new worktree after creation | | agents | { "claude": "claude", "cursor": "cursor ." } | Aliases for agent commands |

Common workflows

Two agents on the same repo

agentfork new feature-a    # agent 1 works here
agentfork new feature-b    # agent 2 works here

# In two separate terminals:
agentfork run feature-a claude
agentfork run feature-b cursor

Reviewing an agent's work

agentfork list             # see what branches exist
cd /path/to/myrepo-feature-a
git diff main             # review changes
git merge feature-a       # merge when happy
agentfork clean feature-a --delete-branch

Using an existing branch

git fetch origin fix-important-bug
agentfork new bugfix --branch fix-important-bug
agentfork run bugfix claude

With custom install

{
  "install": "pnpm install --frozen-lockfile"
}
agentfork new myfeature    # runs pnpm install automatically

GIF placeholder — parallel agents demo coming soon.

FAQ

What about pnpm workspaces? Set "install": "pnpm install" in .agentfork.json. Each worktree gets its own node_modules via pnpm's virtual store — it's fast.

What about monorepos? agentfork works at the git repo level. For monorepos, set basePath to a sibling directory and install to your workspace install command. Multi-repo support is out of scope for v1.

Will this conflict with my main worktree? No. Each worktree is a fully independent directory with its own branch. Changes in one cannot affect another until you merge.

Can I use it with aider? Yes. Set "agents": { "aider": "aider" } in .agentfork.json or just run agentfork run <name> "aider .".

Running tests

npm install && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

github/janaMabbu

License

Released under the MIT license.