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

agentpilot

v0.1.1

Published

CLI for AgentPilot — one-click IDE hook setup for AI agent monitoring

Readme

agentpilot

CLI for AgentPilot — one-click IDE hook setup for AI agent monitoring.

Quick Start

npx agentpilot init

This will:

  1. Authenticate with your API key
  2. Auto-detect your IDE (Claude Code, Cursor, or Windsurf)
  3. Create an agent on your dashboard
  4. Install hook scripts with safe settings merge
  5. Verify the connection

Commands

init

Interactive setup wizard. Auto-detects IDE, creates agent, installs hooks.

npx agentpilot init                                            # interactive
npx agentpilot init --key ap_xxx --type claude-code --name "X" # non-interactive
npx agentpilot init --key ap_xxx --type cursor --yes           # skip confirmations

status

List your agents and their current status.

npx agentpilot status

login

Store your API key for future use.

npx agentpilot login --key ap_xxx

Flags

| Flag | Description | |------|-------------| | --key ap_xxx | API key (or set via stored config) | | --type <type> | IDE type: claude-code, cursor, windsurf | | --name <name> | Agent name (defaults to directory name) | | --yes | Skip confirmation prompts | | --base-url <url> | Custom API base URL | | --version | Show version | | --help | Show help |

Environment Variables

| Variable | Description | |----------|-------------| | AGENTPILOT_BASE_URL | Override API base URL (for self-hosted/staging) |

Credentials

API keys are stored in ~/.agentpilot/config.json with mode 0600 on Unix. On Windows, the file is protected by the user's home directory ACLs.

Get your API key at app.agentpilot.dev/settings/integrations.

Settings Merge

The CLI safely merges hooks into your IDE config:

  • Creates a timestamped backup before any change
  • Only touches the hooks section, preserving all other settings
  • Idempotent: running twice is a no-op
  • Shows a diff before applying (skip with --yes)

Backup Files

Backup files (*.bak.<timestamp>) are kept in the same directory. Only the 3 most recent backups per file are retained. Add *.bak.* to your .gitignore.

Development

Building

cd packages/cli
npm run build        # compile TypeScript → dist/

Testing

npm test             # run tests once (vitest)
npm run test:watch   # watch mode

Publishing to npm

The package name is agentpilot (unscoped). Before publishing for the first time:

  1. Log in to npm: npm login (or npm whoami to verify)
  2. Preview the package: npm pack --dry-run
  3. Publish: npm publish from packages/cli/

The prepublishOnly script automatically runs build + tests before every publish.

After publishing, verify: npx agentpilot --version

Note: If the unscoped name agentpilot is unavailable on npm, switch to a scoped name (e.g. @agentpilot/cli) in package.json and publish with npm publish --access public. Update all npx agentpilot references in the codebase accordingly.

Requirements

  • Node.js 18+
  • bash (Git Bash on Windows, native on macOS/Linux)
  • curl (included in Git Bash, native on macOS/Linux)