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

@dotagents-io/xagents

v1.0.2

Published

Sync AGENTS.md files with configuration files across your project

Readme

xagents

Keep AGENTS.md files in sync with your coding tool configuration files.

Purpose

xagents is part of the dotagents initiative to make AI coding tool configuration interoperable across your project. This tool ensures that every AGENTS.md file in your repository has a corresponding configuration file (like CLAUDE.md) that references it.

Only use this tool for coding tools that do not already pick up AGENTS.md natively. Check https://dotagents.io for the current support matrix.

How It Works

xagents scans your project for AGENTS.md files and verifies that each one has a companion configuration file for your AI coding tool that includes it. By design, all writes are restricted to locations within your project root, preventing unintended changes to shared or global locations.

Installation

npm version npm downloads license

Install globally:

# Use as: xagents
npm install -g @dotagents-io/xagents

Or run with npx:

# Use as: npx @dotagents-io/xagents
npx @dotagents-io/xagents

Usage

Basic Usage

xagents

Scans from the current directory and syncs all AGENTS.md files with CLAUDE.md files.

Custom Config Filenames

xagents --filenames=CLAUDE.md,GEMINI.md

Syncs AGENTS.md files with multiple config files. Separate filenames with commas.

Skip Reference Check

xagents --nocheck

By default, xagents checks if a reference already exists before appending, using case-insensitive substring matching. Use --nocheck to skip this check and always append. This is useful if substring matching causes false positives in your setup.

Integration

npm Scripts

Add to your package.json:

{
  "scripts": {
    "dotagents": "npm run dotagents:xagents && npm run dotagents:xmcp",
    "dotagents:xagents": "xagents",
    "dotagents:xmcp": "xmcp"
  }
}

Run both tools:

npm run dotagents

Git Hooks with Husky

For teams that checkout changes, add xagents to your post-merge hook so configs stay in sync automatically:

echo "npm run dotagents" >> .husky/post-merge
echo "npm run dotagents" >> .husky/pre-commit

Without a hook, run npm run dotagents manually after pulling.

.gitignore Recommendations

If you're generating config files with this tool and not creating them manually, add them to .gitignore:

# Generated config files (manage with xagents)
CLAUDE.md
GEMINI.md

Verify that ignoring these files doesn't interfere with your coding tool of choice.

Filename Validation

Filenames must contain only alphanumeric characters, hyphens, underscores, and periods.

Other Workarounds

  • xmcp — Syncs .agents/mcp.json with each coding tool's native MCP configuration locations

Contribution

Found a bug or have a suggestion? Open an issue.

To contribute, see the main dotagents repository.


Disclaimer

xagents is a community-driven tool maintained by an individual developer. It is not affiliated with any vendor, software company, or open-source project, including Anthropic, GitHub, or any AI coding tool provider. This tool is not for profit and holds no ownership over the specification, mechanics, or concepts behind dotagents.

Support

If this tool saves you time or improves your workflow, consider supporting the project:

ko-fi