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

@vishal2612200/agentpack

v0.3.0

Published

Task-aware context packing for AI coding agents. npm wrapper for the Python AgentPack CLI.

Readme

AgentPack

Task-aware context packing for AI coding agents.

AgentPack scans a repository locally, ranks the files that matter for the current task, and writes a compact markdown context pack for tools such as Claude Code, Cursor, Windsurf, Codex, Antigravity, CI jobs, and generic LLM workflows.

Use it when the repo is too large to paste, but a blank agent session keeps wasting time rediscovering routes, services, tests, configs, and recent changes.

What this npm package is

@vishal2612200/agentpack is a Node launcher for the Python package agentpack-cli.

On first run it:

  1. Finds Python 3.10+.
  2. Creates a per-version virtual environment in your user cache directory.
  3. Installs the matching agentpack-cli version from PyPI.
  4. Proxies every command to the real agentpack CLI.

The Python CLI remains the source of truth. The npm package exists so JavaScript-heavy teams can install AgentPack with the toolchain they already use. This wrapper installs the core CLI; optional Python extras such as watch and mcp are documented below.

Install

npm install -g @vishal2612200/agentpack
agentpack --version

Requirements:

  • Node.js 18+
  • Python 3.10+
  • macOS or Linux

Windows is not supported directly yet. Use WSL, or install agentpack-cli inside a Linux environment.

First project

cd your-project
agentpack init --agent codex
printf '%s\n' "fix auth token expiry" > .agentpack/task.md
agentpack pack

Use the agent that matches your editor or CLI:

agentpack init --agent claude
agentpack init --agent cursor
agentpack init --agent windsurf
agentpack init --agent codex
agentpack init --agent antigravity

agentpack init creates local .agentpack/ state and installs the selected integration when supported. agentpack pack reads .agentpack/task.md, ranks relevant files, and writes the adapter-specific context output.

For a guided setup:

agentpack quickstart --task "fix auth token expiry"

Daily workflow

printf '%s\n' "describe the task you are about to work on" > .agentpack/task.md
agentpack pack
agentpack stats

Useful commands

agentpack status
agentpack doctor --agent all
agentpack explain --file path/to/file.py
agentpack benchmark --sample-fixtures --misses
agentpack repair --agent all

Optional watch and MCP workflows

The watch and mcp commands use optional Python dependencies. If you need those workflows today, install the Python package with extras:

python -m pip install "agentpack-cli[all]"
agentpack watch
agentpack mcp

The npm wrapper still works well for the core setup, pack, status, doctor, explain, repair, and benchmark commands.

Python selection

By default, the wrapper tries python3 and then python. To force a specific interpreter:

AGENTPACK_PYTHON=/opt/homebrew/bin/python3 agentpack --version

Cache location

The wrapper installs the Python CLI under:

$XDG_CACHE_HOME/agentpack-npm/<version>/

or, if XDG_CACHE_HOME is unset:

~/.cache/agentpack-npm/<version>/

Override the cache path with:

AGENTPACK_NPM_CACHE_DIR=/tmp/agentpack-cache agentpack --version

To force a clean reinstall of the Python CLI for this npm package version, remove the matching cache directory and run agentpack --version again.

Troubleshooting

agentpack npm wrapper: Python >=3.10 is required.

Install Python 3.10+ or set AGENTPACK_PYTHON=/path/to/python3.

failed to install agentpack-cli==<version>

Check that python -m pip can reach PyPI. Corporate networks may need standard pip index or proxy configuration.

agentpack: command not found

Make sure your global npm bin directory is on PATH:

npm bin -g

Security and privacy

AgentPack scans, summarizes, ranks, and packs locally. It does not call an LLM API for the core pack flow. Context files are written into your repository under .agentpack/ and integration-specific local files.

Links