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

contextos-agents

v2.0.0

Published

Deterministic context and policy compiler for supported AI coding agents.

Readme

contextos-agents

npm version License Node.js CI

One version-controlled source of engineering rules for supported coding agents.

ContextOS is a deterministic context and policy compiler for AI coding agents. It transforms your team's version-controlled engineering rules into focused, verifiable context for Gemini, Claude Code, Cursor, GitHub Copilot, Aider, and Zed—and detects configuration drift in CI.

Installation

You do not need to clone anything manually. Just open your terminal in the root of your project and run:

npx contextos-agents init

The script will automatically detect your project tech stack, create the .agents folder, configure a neutral bootstrap profile, and compile it for your AI agent.

Options

npx contextos-agents --help             # Show all options
npx contextos-agents --version          # Show version
npx contextos-agents --minimal          # Install only the core bootstrap skills
npx contextos-agents --profile init     # Install with specific profile
npx contextos-agents --auto             # Auto-detect tech stack and apply recommended profile
npx contextos-agents --dry-run          # Preview what will be installed
npx contextos-agents --force            # Overwrite an existing .agents/ folder
npx contextos-agents --skip-compile     # Skip auto-compilation step

Why ContextOS?

Most AI coding assistants suffer from two extremes: they either operate in a vacuum with zero knowledge of your architectural standards, or they are choked with massive monolithic system prompts that cause context overflow and lazy code stubs (// TODO).

ContextOS is not another coding agent. It governs the context and policies used by the agents your team already has.

The Three Pillars

  1. Portable: Define your engineering rules once. ContextOS exports configurations for supported agents (Gemini, Claude Code, Cursor, Copilot, Aider, and Zed).
  2. Focused: The resolver selects rules and skills relevant to a task so agents receive less unrelated context.
  3. Verifiable: Lockfiles, provenance, drift detection, and CI gates make generated agent configuration reproducible and auditable.

How it works

  1. Define version-controlled engineering policies once.
  2. Resolve only the policies relevant to the current task.
  3. Compile native configuration for each coding agent.
  4. Detect configuration drift in CI.
contextos resolve "review authentication changes" \
  --files src/auth/session.ts \
  --explain

Selected: security explicit task match engineering-workflow required dependency

Excluded: context-manager context budget

Risk: high Estimated context: 2,840 tokens

Dynamic Skill Resolution & Unified CLI (contextos / ctx.js)

ContextOS provides a unified CLI (contextos or npx contextos-agents) and local engine (.agents/ctx.js) to resolve minimal skills on the fly, run health diagnostics, and compile exports for AI assistants.

Dynamic Skill Resolution (resolve)

# Resolve skills for a task description:
contextos resolve "Build an accessible modal component with React and Tailwind"

# Output:
# [DOMAIN: Frontend] [PHASE: Build] [ROLE: Senior Developer]
# Skills loaded: ponytail-mindset, engineering-workflow, gemini-precision

# Resolve with full evidence scoring explanation:
contextos resolve "security review" --files apps/web/app/login/page.tsx --explain

Diagnostic Health Check (contextos doctor)

Run a comprehensive pre-flight verification across your repository to ensure valid skills, profile alignment, and compiler synchronization:

contextos doctor

Supported Agents & Compilation

| Agent | Command | Output Format | |-------|---------|---------------| | Gemini / Antigravity | contextos export gemini | .agents/generated/gemini/skills/ | | Claude Code | contextos export claude | .agents/generated/claude/skills/ | | Cursor IDE | contextos export cursor | .cursor/rules/*.mdc (modular globs) + .cursorrules | | GitHub Copilot | contextos export copilot | .github/copilot-instructions.md | | Aider | contextos export aider | .aider.conf.yml + CONVENTIONS.md | | Zed IDE | contextos export zed | .zed/rules.md + .zed/prompts/*.md |

contextos export all       # Compile for all agents

CI Quality Gate Action (contextos-gate)

Guard your repository against skill drift, secret leaks, and rule regressions using the official GitHub Composite Action:

# .github/workflows/pr-gate.yml
name: ContextOS Quality Gate
on: [pull_request, push]
jobs:
  gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: kok-o/contextos-agents/.github/actions/[email protected]

Optional MCP integration (Beta)

The MCP server is a separate beta package. It is not part of the stable contextos-agents core.

Install it separately if you want to try the beta integration:

npm install --save-dev @contextos/mcp
npx contextos-mcp --dir .

The MCP server is read-only by default. Runtime execution remains experimental and is outside the stable core scope.

Security — Third-Party Skills

ContextOS skills are executable context — they become part of the system prompt that controls your AI agent's behavior. A malicious skill could instruct the AI agent to exfiltrate environment variables, modify files, or ignore your project's security policies.

[!CAUTION] Install skills only from repositories you trust as you would trust executable code. Skills installed via ctx.js skill add from npm or GitHub are not sandboxed.

Contributing

We are open to pull requests! See CONTRIBUTING.md for a step-by-step guide.

License

Distributed under the Apache License, Version 2.0. See LICENSE and NOTICE for details.