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

@pm990320/agent-hooks

v0.4.0

Published

One command for CI, pre-commit hooks, and agent feedback loops. Ships as a single binary.

Readme

agent-hooks

One command for CI, pre-commit hooks, and agent feedback loops.

CI npm License: MIT

What it does

  • Replaces per-repo CI glue with agent-hooks ci — one command that runs in GitHub Actions, locally, and inside git hooks
  • Gives coding agents sub-second feedback on file edits instead of waiting 3–10 minutes for a GitHub Actions run
  • Owns its own git hook installation — no wrapper, no separate tool, no generated second config to keep in sync
  • Supports service-owned monorepos: root manifest, per-service configs, repo-root coordination, and service-relative paths

Install

npm (Node 18+ or Bun):

# global
npm install -g @pm990320/agent-hooks

# or as a dev dependency
npm install -D @pm990320/agent-hooks

Bun:

# global
bun add -g @pm990320/agent-hooks

# or as a dev dependency
bun add -d @pm990320/agent-hooks

Standalone binary (no runtime required):

curl -fsSL https://github.com/pm990320/agent-hooks/releases/latest/download/install.sh | sh

Downloads a single native binary for your OS + arch. No Node or Bun needed.

Pin a version:

curl -fsSL https://github.com/pm990320/agent-hooks/releases/latest/download/install.sh | sh -s -- --version v0.2.0

Install to a specific directory:

curl -fsSL https://github.com/pm990320/agent-hooks/releases/latest/download/install.sh | sh -s -- --dir /usr/local/bin

GitHub Action (CI only):

- uses: pm990320/agent-hooks@v0
- run: agent-hooks ci

Manual download: grab the binary for your OS + arch from the latest release.

Quick start

cd your-repo
agent-hooks init          # scaffolds config + hooks, detects stack
agent-hooks doctor        # sanity check
agent-hooks ci            # run the full pipeline

init detects your stack (bun / npm / pnpm / yarn / uv / poetry / cargo / go / deno / terraform / Helm / KubeLinter / …), writes a starter .config/agent-hooks.yml, and installs shell stubs into .git/hooks/<name> that dispatch back into agent-hooks.

Your first config

# yaml-language-server: $schema=https://raw.githubusercontent.com/pm990320/agent-hooks/main/schema.json

steps:
  lint:
    run: eslint {files}
    files: "**/*.{ts,tsx}"
  typecheck:
    run: tsc --noEmit
    invocation: project
  test:
    # Two-form run: affected-only tests when an agent edits a file,
    # full suite in CI. This is the single biggest speed win for
    # agent feedback — a 90s full suite becomes a 2s related-test run.
    run:
      files: vitest related {files}
      project: vitest run
    files: "**/*.{ts,tsx}"

pipelines:
  ci:
    steps: [lint, typecheck, test]
  pre-commit:
    steps: [lint, typecheck, test]
    parallel: true
    exclude-tags: [slow]

See docs/pipelines-and-steps.md for the full run: syntax and recipes for Jest, pytest, Go, and other test frameworks.

Monorepos

Use a required root manifest plus service-owned configs:

root/
  .config/agent-hooks.yml
  services/
    service-a/
      .config/agent-hooks.yml

Root:

workspaces:
  - services/*

monorepo:
  run-workspace-selection-default: affected

Service config paths stay relative to the service root. From either the repo root or a workspace subdirectory:

agent-hooks ci

runs whole-monorepo CI. For targeted runs, use:

agent-hooks run lint --workspace service-a --files services/service-a/src/a.ts
agent-hooks run services/service-a:lint --changed

See docs/monorepo.md for the ownership model, selectors, migration notes, and hook fan-out rules.

The three contexts

Same config, three entry points.

| Context | Trigger | Scope | Command | |---|---|---|---| | CI | GitHub Actions | all files | agent-hooks ci | | Pre-commit | git commit | staged files | (automatic via .git/hooks/ stub) | | Agent edit | Claude Code PostToolUse | edited files | (automatic via hook command) |

GitHub Actions

name: CI
on: [push, pull_request]
jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: pm990320/agent-hooks@v0
      - run: agent-hooks ci

Coding agent integration

agent-hooks ships native hook handlers for 22 coding agents including Claude Code, Codex, Gemini CLI, GitHub Copilot, Windsurf, Cline, and more.

agent-hooks agent install claude    # writes .claude/settings.json
agent-hooks agent install codex     # writes .codex/hooks.json
agent-hooks agent install generic   # prints a shell snippet

The pipeline that runs for each hook lives in .config/agent-hooks.yml, not in the agent's settings.

See docs/agent-integration.md.

For AI coding agents

If you're a coding agent working in a repo that uses agent-hooks, these are the commands you need:

| When | Command | |---|---| | After editing a file | agent-hooks run agent-edit --files <paths> | | Before committing | agent-hooks run pre-commit --staged | | To verify CI will pass | agent-hooks ci | | To see available steps | agent-hooks list | | To check your environment | agent-hooks doctor |

Skipping: [skip agent-hooks] or [skip ci] in the commit message, or --skip <step> on the CLI.

Config location: .config/agent-hooks.yml — JSON-schema validated. Run agent-hooks list to see what steps and pipelines are defined.

Documentation

License

MIT