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

gm-codex

v2.0.1060

Published

State machine agent with hooks, skills, and automated git enforcement

Downloads

63,495

Readme

gm-codex for Codex

Installation

One-liner (recommended)

bun x gm-codex@latest

Installs the plugin to ~/.codex/plugins/gm-codex AND wires ~/.codex/config.toml so Codex auto-loads hooks, MCP servers, and skills on next start. No manual TOML editing required. Idempotent — re-run to upgrade.

What gets registered in config.toml

Inside a managed block fenced by # >>> gm-codex managed / # <<< gm-codex managed sentinels:

  • [features].codex_hooks = true
  • [[hooks.<Event>]] blocks for PreToolUse, PostToolUse, SessionStart, UserPromptSubmit, Stop — pointing at the bundled plugkit and node hook scripts under the install dir
  • [mcp_servers.<id>] for any MCP servers declared in bundled .mcp.json
  • [[skills.config]] entries for every bundled skill folder

Content outside the managed block is preserved verbatim. The installer never edits user-authored sections.

Repository Installation (Project-Specific)

cd /path/to/your/project
npm install gm-codex
npx gm-codex-install

Copies plugin assets into <project>/.codex/plugins/gm-codex and writes the same managed block into <project>/.codex/config.toml (project-trusted layer).

Uninstall

npx gm-codex-uninstall

Removes the plugin directory and strips the managed block from config.toml, leaving any user-authored content untouched.

Manual Installation

Windows and Unix:

git clone https://github.com/AnEntrypoint/gm-codex ~/.codex/plugins/gm-codex

Windows PowerShell:

git clone https://github.com/AnEntrypoint/gm-codex "\$env:APPDATA\codex\plugins\gm-codex"

Installed Layout

After install, the Codex plugin directory contains:

plugins/gm-codex/
├── .codex-plugin/plugin.json
├── .agents/plugins/marketplace.json
├── agents/
├── hooks/
├── scripts/
├── skills/
├── .mcp.json
├── gm.json
└── plugin.json

Runtime Behavior

  • Hooks call bin/plugkit through ${CODEX_PLUGIN_ROOT}.
  • plugkit binaries are bundled in bin/ for every supported platform; the plugin ships ready-to-run.
  • plugkit uses:
    • rs-exec for execution/runtime process management
    • rs-codeinsight for AST/project analysis
    • rs-search for search/MCP search behavior

Environment

  • CODEX_PLUGIN_ROOT: plugin root used by hooks
  • CODEX_PROJECT_DIR: project root for hook/runtime operations

Features

  • Stateful agent policy via agents/gm.md
  • Hook enforcement for session lifecycle
  • Rust-backed execution and background task control
  • Rust-backed code insight and search integrations
  • Generated Codex plugin metadata and marketplace manifests

Update Procedures

User-wide install

bun x gm-codex@latest

Project-level install

npm update gm-codex
npx gm-codex-install

Troubleshooting

Hooks run but plugkit is missing

  • Reinstall the plugin; plugkit binaries are shipped in bin/ via CI and should not need to be downloaded.

Hook path issues

  • Verify CODEX_PLUGIN_ROOT points to the installed plugin root.
  • Confirm hooks/hooks.json commands resolve to ${CODEX_PLUGIN_ROOT}/bin/plugkit.

Plugin loaded but behavior is incomplete

  • Check skills/, scripts/, and agents/ were copied by installer.
  • Re-run installer and restart Codex.

License

MIT