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

adocs-cli

v0.1.2

Published

CLI for inspecting and locally overriding repository instruction files

Readme

adocs

Quick Start

Run without installing:

npx adocs-cli

Install globally:

npm install -g adocs-cli

Then use:

adocs
adocs ./repo
adocs override --source ~/docs/agent-context
adocs restore

Overview

adocs is a CLI for managing repository-local AGENTS.md and CLAUDE.md files.

It was built for a simple reason: many repositories add too many AI instruction files, often spread across nested directories, and they end up adding noise instead of clarity. When you work locally, you may want a short, consistent set of instructions that matches how you prefer to work, without editing the repository for everyone else.

adocs automates that local workflow. It helps you inspect instruction files, temporarily override them on your machine, and restore the tracked versions later.

How It Works

adocs supports three main workflows:

  1. Find instruction files and show them as a pruned tree.
  2. Remove tracked instruction files locally and mark them with Git skip-worktree.
  3. Copy your local override directory into the target root, then restore the tracked files later when needed.

By default, mutating commands operate only on Git-tracked instruction files so the original state can be restored safely.

Commands

Show instruction files

npx adocs-cli
npx adocs-cli ./repo
npx adocs-cli --json
npx adocs-cli --excluded

Shows all discovered AGENTS.md and CLAUDE.md files under the target directory as a pruned tree. Excluded directories such as node_modules are hidden unless --excluded is passed.

Apply a local override

npx adocs-cli override --source ~/docs/agent-context
npx adocs-cli override --source ./agent-context ./repo
npx adocs-cli override --source ./agent-context --excluded

This command:

  1. Resolves the Git repository root.
  2. Finds tracked AGENTS.md and CLAUDE.md files in scope.
  3. Removes those tracked files and any tracked root .claude or .codex files from the working tree.
  4. Marks those tracked files with Git skip-worktree.
  5. Removes root AGENTS.md, CLAUDE.md, .claude, and .codex before applying the new override.
  6. Copies AGENTS.md from the source directory into both root AGENTS.md and root CLAUDE.md when present.
  7. Recursively copies source .claude and .codex directories when present.
  8. Adds the generated local artifacts to .git/info/exclude.

The source path must be a directory. Missing AGENTS.md, .claude, or .codex entries are allowed and will simply be omitted from the override.

Restore tracked files

npx adocs-cli restore
npx adocs-cli restore ./repo

This clears skip-worktree, restores tracked files from HEAD, removes temporary root override artifacts that were not tracked, and clears the local .git/info/exclude entries added by adocs.

Local Development

Install dependencies:

bun install

Run the local source tree:

bun run ./index.ts

Run tests:

bun test