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

agent-ctx

v2.0.0

Published

CLI tool to initialize and manage AI agent context for your projects

Downloads

21

Readme

agent-ctx

CLI to initialize and manage AI agent context in your projects

npm version License: MIT

Español | English

What is agent-ctx?

agent-ctx is a CLI tool that sets up a standardized context structure (.context/) so any AI agent (Cursor, Windsurf, Claude, Copilot, Cline, etc.) can understand your project consistently.

Why use it?

  • Cross-platform — Works on Windows, Mac, and Linux without bash dependencies
  • Easy to distribute — Just run npx agent-ctx init and you're done
  • Single source of truth — Centralized context for all your agents
  • Self-healing — Detects and repairs broken configuration files
  • Modular skills — Reusable skill structure for sharing knowledge across projects

Installation

# Direct usage with npx (recommended)
npx agent-ctx init

# Or install globally
npm install -g agent-ctx

Commands

agent-ctx init

Initializes the .context/ structure and generates bridge files for different editors.

npx agent-ctx init                    # Current directory
npx agent-ctx init ./my-project       # Specific directory
npx agent-ctx init --yes              # Non-interactive mode
npx agent-ctx init --force            # Overwrite existing files
npx agent-ctx init --dry-run          # Preview changes only

agent-ctx update

Regenerates bridge files with the latest templates without touching .context/.

npx agent-ctx update                  # Interactive
npx agent-ctx update --yes            # Update all

agent-ctx centralize

Finds scattered skills in editor folders (.cursor/skills, .windsurf/skills, etc.) and moves them to .context/skills/.

npx agent-ctx centralize
npx agent-ctx centralize --dry-run

agent-ctx clean

Removes redundant editor folders that duplicate skills/rules.

npx agent-ctx clean
npx agent-ctx clean --yes             # Skip confirmation
npx agent-ctx clean --dry-run

agent-ctx doctor

Checks the integrity of .context/ and bridge files, offers repairs.

npx agent-ctx doctor                  # Diagnosis only
npx agent-ctx doctor --fix            # Auto-repair

Global Flags

| Flag | Description | |------|-------------| | -q, --quiet | Suppress non-essential output | | -v, --version | Show version | | -h, --help | Show help |

Project Configuration

Create an .agent-ctx.json file in your project root:

{
  "editors": ["cursor", "claude", "copilot"],
  "language": "en",
  "backups": true
}

Generated Structure

your-project/
├── .context/
│   ├── architecture.md       # Stack and project structure
│   ├── project_state.md      # Current state, TODOs, bugs
│   ├── rules/
│   │   └── coding-standards.md
│   ├── skills/
│   │   └── _template_skill.md
│   ├── docs/
│   │   └── README.md
│   └── mcp/
│       └── README.md
├── AGENTS.md                 # Master index for agents
├── CLAUDE.md                 # Instructions for Claude Code
├── .cursor/
│   └── rules/
│       └── global.md         # Bridge for Cursor (modern format)
├── .agent/
│   └── rules/
│       └── context.md        # Bridge for Antigravity
└── .github/
    ├── copilot-instructions.md           # Bridge for Copilot (global)
    └── instructions/
        └── context.instructions.md       # Bridge for Copilot (scoped)

Contributing

Found a bug or have an idea? Feel free to open an issue or PR.

License

MIT © avicdro