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 🙏

© 2025 – Pkg Stats / Ryan Hefner

agents-link

v1.1.3

Published

Sync AGENTS.md to AI coding environment rule files

Readme

agents-link

Ensure AGENTS.md is the single canonical rules file in your repository and automatically expose it to major AI coding environments.

agents-link follows the AGENTS.md standard—a simple, open format for guiding coding agents, used by over 20k open-source projects.

What it does

agents-link treats AGENTS.md as the single source of truth and creates symlinks (or managed copies when symlinks aren't available) to the following target rule files:

  • CLAUDE.md (Claude Code)
  • .cursor/rules/AGENTS.md (Cursor)
  • .cursorrules (Cursor legacy)
  • .windsurf/rules/AGENTS.md (Windsurf)
  • .github/copilot-instructions.md (GitHub Copilot)
  • .rules (Zed)

Installation

Local installation (recommended)

Install as a dev dependency in your project:

npm install agents-link
# or
pnpm add agents-link

Global installation

Install globally to use agents-link from any directory:

npm install -g agents-link
# or
pnpm add -g agents-link

After global installation, you can run agents-link from any directory without needing it in your project's dependencies.

Usage

Commands

# Create symlinks or managed copies from AGENTS.md
agents-link init

# Re-sync content to managed copies (when AGENTS.md changes)
agents-link sync

# Remove only symlinks and managed copies
agents-link clean

# Print all target file paths and their status
agents-link print-targets

As an npm script

Add to your package.json:

{
  "scripts": {
    "agents:init": "agents-link init",
    "agents:sync": "agents-link sync",
    "agents:clean": "agents-link clean"
  }
}

Then run:

npm run agents:init

How it works

  1. Auto-creates AGENTS.md: If AGENTS.md doesn't exist, agents-link init creates it with a default template
  2. Symlinks first: The tool attempts to create symlinks to AGENTS.md
  3. Fallback to managed copies: If symlinks fail (e.g., Windows without developer mode), it creates a copy with a header marker
  4. Safe and idempotent: Never overwrites existing non-managed files
  5. Sync on demand: Use agents-link sync to update managed copies when AGENTS.md changes

Managed copies

When symlinks aren't available, agents-link creates managed copies with a header:

<!-- agents-link:managed:... -->
<!-- This file is auto-managed by agents-link. Do not edit manually. -->
<!-- Source: AGENTS.md -->

The tool uses this marker to identify files it can safely update or remove.

Requirements

  • Node.js >= 18.0.0
  • AGENTS.md will be created automatically if it doesn't exist when you run agents-link init

Development

Setup

git clone https://github.com/YOUR_USERNAME/agents-link.git
cd agents-link
npm install

Testing locally

# Test the CLI
./bin/agents-link.js --help

# Test in another directory
mkdir ~/test-agents-link && cd ~/test-agents-link
echo "# Test" > AGENTS.md
npm install /path/to/agents-link
npx agents-link init

Publishing

The project uses GitHub Actions for automated publishing:

  • Manual release: Go to Actions → "Publish to NPM" → Run workflow and select version bump type
  • Automatic release: Push to main and it auto-bumps patch version and publishes

See .github/workflows/README.md for setup instructions.

License

MIT