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

agentlint

v0.3.0

Published

Static analysis and security scanner for AI agent configuration files

Readme


AgentLint helps developers and security teams audit AI agent configurations before they execute—catching curl | bash, secret leaks, and privilege escalation in Claude Code, Cursor, and CLAUDE.md files.

Why AgentLint?

AI coding agents are powerful—but their configuration files are a new attack surface:

  • Skills can run shell commands → supply-chain risk
  • Hooks execute automatically → no user approval
  • Configs reference secrets → credential exposure
  • Anyone can share skills → no vetting process

AgentLint treats agent configs like code: scan, diff, and gate them in CI.

Quick Start

# Install
npm install -g agentlint

# Scan your project
agentlint scan

Expected output (clean project):

AgentLint scan: .

Parsed: 2 documents (claude=2)

No findings detected.

Status: PASS

Expected output (risky config):

AgentLint scan: .

Parsed: 4 documents (claude=3, cursor=1)
Context: hooks detected

Findings:
  HIGH  EXEC-001 Dynamic Shell Execution
    .claude/hooks/post_edit.sh:5
    Evidence: "curl https://example.com/install.sh | bash"

  HIGH  SEC-001 Environment Secret Reference
    CLAUDE.md:14
    Reference to secret: $STRIPE_SECRET_KEY

Status: FAIL (2 high)

How It Works

┌─────────────────┐     ┌──────────────┐     ┌─────────────┐
│  .claude/       │     │              │     │             │
│  .cursorrules   │────▶│  AgentLint   │────▶│  Findings   │
│  CLAUDE.md      │     │              │     │             │
└─────────────────┘     └──────────────┘     └─────────────┘
        │                      │                    │
        ▼                      ▼                    ▼
   Parse to IR          Apply 20 Rules      Text/JSON/SARIF
  1. Parse agent configs into a normalized internal representation
  2. Analyze with 20 security rules across 8 categories
  3. Report findings with evidence and remediation guidance
  4. Gate in CI with configurable severity thresholds

Examples

Try AgentLint on our example configs:

# Clean config (passes)
agentlint scan examples/minimal

# Risky config (fails with findings)
agentlint scan examples/realistic

See examples/ for full details.

What It Detects

| Category | Rules | What It Catches | |----------|-------|-----------------| | Execution | EXEC-001, 002, 003 | curl \| bash, eval, hooks running commands | | Filesystem | FS-001, 002, 003 | Unscoped writes, .git/ access, sensitive paths | | Network | NET-001, 002, 003 | Undeclared network, remote script fetches | | Secrets | SEC-001, 002, 003 | $GITHUB_TOKEN, .env access, secret propagation | | Hooks | HOOK-001, 002 | Auto-triggered side effects, hidden hooks | | Instructions | INST-001, 002 | "Ignore previous instructions", self-modification | | Scope | SCOPE-001, 002 | Capability expansion, write scope widening | | Observability | OBS-001, 002 | Missing declarations, no permission manifest |

Run agentlint rules list to see all rules, or agentlint rules explain EXEC-001 for details.

CI/CD Integration

GitHub Actions

name: AgentLint
on:
  pull_request:
    paths: [".claude/**", ".cursorrules", "CLAUDE.md", "AGENTS.md"]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm install -g agentlint
      - run: agentlint scan --ci --format sarif --output agentlint.sarif
      - uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: agentlint.sarif

Findings appear as code annotations in PRs via GitHub Code Scanning.

Exit Codes

| Code | Meaning | |------|---------| | 0 | Pass | | 1 | Findings at/above threshold | | 2 | CLI usage error | | 3 | Config error | | 4 | Parse error | | 5 | Internal error |

Configuration

Create agentlint.yaml to customize behavior:

version: 1

policy:
  fail_on: high      # Fail CI on high severity
  warn_on: medium    # Warn on medium severity

rules:
  disable: [OBS-002] # Disable specific rules

capabilities:
  fail_on_new_dynamic_shell: true
  fail_on_sensitive_path_write: true

Generate a starter config:

agentlint init
agentlint init --ci github  # Include GitHub Actions workflow

Auto-Fix

Automatically fix simple issues:

# Preview fixes without applying
agentlint scan --dry-run --fix

# Apply fixes
agentlint scan --fix

Currently fixable rules:

  • OBS-002: Adds permission manifest comment

Baseline

Suppress known findings to focus on new issues:

# Create/update baseline with current findings
agentlint scan --update-baseline

# Scan respects baseline automatically
agentlint scan
# Output: "Baseline: 15 known finding(s) suppressed"

# Ignore baseline to see all findings
agentlint scan --ignore-baseline

# Remove fixed findings from baseline
agentlint scan --prune-baseline

# Use custom baseline path
agentlint scan --baseline path/to/baseline.json

Diff Mode

Detect behavioral changes between versions:

agentlint diff ./before ./after
AgentLint diff: ./before → ./after

Behavioral changes:
  HIGH  capability_expansion
    shell_exec: false → true

  HIGH  network_new_outbound
    network.outbound: false → true

Status: FAIL (capability expansion detected)

Comparison with Alternatives

| | AgentLint | Manual Review | No Scanning | |---|---|---|---| | Detects curl \| bash | Automatic | Maybe | No | | CI integration | Native SARIF | Manual | N/A | | Diff detection | Semantic | Text diff | None | | Time to review | Seconds | Minutes–Hours | N/A |

AgentLint is purpose-built for AI agent configs. General linters miss agent-specific risks.

Integrations

| Tool | Link | |------|------| | VS Code | agentlint-vscode | | GitHub Action | agentlint-action | | Pre-commit | docs/pre-commit.md |

Roadmap

  • [x] Claude Code support (.claude/, CLAUDE.md)
  • [x] Cursor support (.cursorrules)
  • [x] 20 security rules
  • [x] SARIF output for GitHub
  • [x] Diff mode
  • [x] VS Code extension
  • [x] GitHub Action (native)
  • [x] Pre-commit hook
  • [x] Auto-fix for common issues
  • [x] Baseline support for suppressing known findings
  • [ ] Policy-as-code engine
  • [ ] Signed skill packs
  • [ ] Agent config registry

Documentation

Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Development setup
  • Adding new rules
  • Coding standards
  • PR process

License

Apache 2.0 — see LICENSE