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

@aurelienbbn/agentlint

v0.7.0

Published

Deterministic findings and explicit judgment gates for coding agents

Readme

agentlint

CI npm version License: MIT

Your AGENTS.md rules are followed most of the time. agentlint turns the important ones into a gate and keeps a committed record of every exception.

Agents get the mechanical part right and slip on judgment: a payment call without an idempotency key, a dropped column without a backfill, a fallback that hides a failure, an unbounded read that was fine in the fixture.

| Tool | With a judgment call | | ------------- | ----------------------------------------------- | | Prompt | Asks the agent to remember | | Linter | Can only say "always wrong" | | AI reviewer | Says something different on every run | | Tired human | Approves a big diff because the tests are green | | agentlint | Blocks until someone records a reason |

Every finding is accepted or it blocks

 repository ──▶ deterministic ──▶ finding + your ──▶ acceptance with     ──▶ gate open
 evidence        detector          standard           reason + authority
                                        │
                                        └── no compatible acceptance ──────▶ gate closed
  • Deterministic. Rules match a code shape or a normalized Git change. No model, network, or clock.
  • The standard travels with the finding: text, checks, permitted examples. The agent doesn't rely on recall.
  • Exceptions are reviewable. An acceptance needs a reason and the right authority (agent or human, per rule). It lives in .agentlint/acceptances.jsonl, shows in the PR diff, and expires when the code materially changes: an eslint-disable that needs a reason, an authority, and a new review when the code moves.
  • Humans decide in a keyboard-first local UI or in PR threads, with code, standard, and the agent's proposal side by side.

An open gate means every current finding in the reported scan scope has a compatible recorded decision. It does not prove the judgment was correct, or that unconfigured concerns were reviewed.

agentlint ships no rules and prescribes no agent harness. Your repository and plugin packages own the standards, detectors, and policy.

Install and run the gate

Let your agent do it: the package ships agent skills.

Install @aurelienbbn/agentlint and follow its setup skill
(node_modules/@aurelienbbn/agentlint/skills/agentlint/setup/SKILL.md).

Or by hand:

pnpm add -D @aurelienbbn/agentlint
pnpm agentlint init          # creates .agentlint/config.ts
pnpm agentlint rules test    # replays every rule's fixtures
pnpm agentlint check --all   # the gate

Commit the config, and .agentlint/acceptances.jsonl once it exists. Every command accepts --help.

A rule is a code shape plus a standard

import { defineConfig, defineRule } from "@aurelienbbn/agentlint";

const boundedReads = defineRule({
  lifecycle: "state",
  standard: {
    id: "data/bounded-reads",
    revision: 1,
    title: "Production reads are bounded",
    guidance: { standard: "Reads that scale with production data have an explicit bound or pagination contract." },
  },
  detector: {
    id: "prisma/find-many-without-take",
    version: 1,
    match: { pattern: "$DB.findMany($$$ARGS)", where: { notHas: "take: $_" }, message: "$DB has no explicit bound." },
    fixtures: { mustReport: ["db.users.findMany({})"], mustStaySilent: ["db.users.findMany({ take: 50 })"] },
  },
  binding: { id: "data/bounded-reads", authority: "agent", include: ["src/**/*.ts"] },
});

export default defineConfig({ rules: [boundedReads] });

The standard is revisioned policy, the detector a versioned trigger, and the binding your scope and authority. A change rule judges the Git diff from the merge base instead of the current code.

Exit codes

| Exit | Meaning | | ---- | --------------------------------------------------------- | | 0 | Every current finding has a compatible acceptance | | 1 | One or more findings are unresolved | | 2 | Invalid usage, configuration, or evidence; internal error |

Every command exits 2, never 1, on an internal error. Local and CI semantics are identical.

What do you want to do?

| Goal | Start with | Guide | | -------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------ | | Turn a repeated correction into a rule | the rule-advisor skill | Get started | | Write state and change rules | defineRule | Write rules | | Close a finding | agentlint accept 1 --reason "..." | Acceptance | | Hand the agent its next finding | agentlint next --format json | Acceptance | | Decide as a human | agentlint review | Review | | Calibrate a rule before it gates | agentlint rules scan --review | Calibration | | Gate pull requests and agent turns | the GitHub action or a Stop hook | CI and hooks | | Look up a command or flag | agentlint --help | CLI reference | | Know what the gate guarantees | | Guarantees |

The required CI check is the real gate; local hooks are feedback. On GitHub:

steps:
  - uses: actions/checkout@v5
    with: { fetch-depth: 0 } # required: change rules use the merge base
  - uses: actions/setup-node@v5
    with: { node-version: 22 }
  - uses: aurelienbobenrieth/agentlint/[email protected]

The full workflow is in the CI guide.

Public entry points

| Import | Exports | | ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- | | @aurelienbbn/agentlint | defineConfig, defineRule, rule and config types, detector contexts, change evidence and outcome schemas, tagged errors | | @aurelienbbn/agentlint/testing | Promise-based fixture helpers | | @aurelienbbn/agentlint/contract | Review wire contract, including NextResult | | @aurelienbbn/agentlint/calibration | Calibration report schemas and pure helpers |

Every type, schema, and error: Public API.

License

MIT