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

@iamdevlinph/codex-kit

v1.0.9

Published

Portable Codex subagents and project AGENTS.md defaults.

Readme

@iamdevlinph/codex-kit

Portable Codex setup for new devices and multiple projects. It provides:

  • three automatically routed roles plus a manual quick implementer
  • automatic global role routing
  • a reusable, stack-neutral AGENTS.md template
  • safe commands for global setup, project synchronization, and reconciliation

The package contains no credentials. Global installation does not modify the Codex model configuration; configuration is a separate, explicit command.

Install on a device

No npm or GitHub login is required. For regular use, install the CLI globally:

pnpm add --global @iamdevlinph/codex-kit@latest
codex-kit global install
codex-kit global configure

Start a new Codex task or restart the client after installation. Codex may ask you to review and trust the new command hooks once; approve them after confirming that they run the installed ${CODEX_HOME:-~/.codex}/codex-kit/routing-hook.js.

npm install --global @iamdevlinph/codex-kit@latest works as an alternative. For one-off use without a global installation, prefix a command with pnpm dlx @iamdevlinph/codex-kit@latest.

global install copies reusable agents to ${CODEX_HOME:-~/.codex}, maintains a marked routing section in the global AGENTS.md, and adds package-owned handlers to the global hooks.json without replacing existing hooks.

The Sol root plans, routes, coordinates, and validates. On every prompt, the routing hook supplies the current SUBAGENT_ROUTING.md; the root classifies the task and delegates substantive work to the exact matching role. The role's agent TOML—not the routing policy—selects its model and reasoning effort. To avoid subagent startup overhead, the root may directly handle planning, conversation, read-only checks, documentation, bookkeeping, and clear changes spanning up to roughly three files. Automatic delegation is reserved for broad discovery, large multi-file implementation or debugging, and high-risk review.

quick-implementer remains installed for explicit manual delegation but is not selected by the default automatic route. The root reuses delegated test evidence and normally performs only lightweight integration checks.

global configure sets these defaults while preserving unrelated settings:

model = "gpt-5.6-sol"
model_reasoning_effort = "low"
plan_mode_reasoning_effort = "high"

This keeps ordinary root work light while retaining high reasoning in Plan Mode. Override either effort independently when needed:

codex-kit global configure \
  --reasoning-effort low \
  --plan-reasoning-effort high

Automatic role models are tuned by task shape: Terra-medium performs broad repository exploration, Luna-high performs large implementation slices, and Sol-high reviews consequential changes. Luna-medium quick-implementer remains manual-only.

Delegation is time-bounded. The root waits once for up to 60 seconds, requests one progress update, and then enforces a three-minute read/review/manual-quick deadline or five-minute implementation deadline. Validation commands that make no progress for two minutes are stopped unless the repository documents a longer normal runtime. Root and worker never run the same validation concurrently.

Before changing these keys, codex-kit creates a timestamped config.toml backup and records their previous values. global uninstall restores those values without replacing unrelated configuration changed afterward.

Use a different Codex home when needed:

pnpm dlx @iamdevlinph/codex-kit@latest global install \
  --codex-home /path/to/.codex
pnpm dlx @iamdevlinph/codex-kit@latest global configure \
  --codex-home /path/to/.codex

Inspect the installed setup:

pnpm dlx @iamdevlinph/codex-kit@latest global list

The summary shows the Codex home, orchestrator, normal and Plan-mode reasoning effort, routing-file and routing-hook status, and installed custom agents without dumping unrelated configuration.

Uninstall package-managed global files:

pnpm dlx @iamdevlinph/codex-kit@latest global uninstall

Uninstall removes only codex-kit's handlers from hooks.json and preserves other hooks. Modified managed files are preserved unless --force is supplied.

Commands

| Action | Command | | --- | --- | | Show command help | codex-kit --help | | Print the installed version | codex-kit --version | | Install global agents and routing | codex-kit global install | | Configure the orchestrator | codex-kit global configure | | Inspect global configuration | codex-kit global list | | Remove package-managed global files | codex-kit global uninstall | | Initialize project guidance | codex-kit project init | | Refresh the project template reference | codex-kit project sync | | Check template reconciliation | codex-kit project status | | Record completed reconciliation | codex-kit project mark-applied | | Check for a package update | codex-kit version check |

Apply to a project

For a project without AGENTS.md:

cd /path/to/project
pnpm dlx @iamdevlinph/codex-kit@latest project init

This creates:

  • AGENTS.md, containing the reusable defaults and a project-specific section
  • TEMPLATE_AGENTS.md, a local reference copy used for future comparisons
  • .codex-kit-state.json, reconciliation bookkeeping

The template reference is not an active Codex instruction file. Add repository commands, paths, architecture, integrations, and exceptions to the project-specific section of AGENTS.md.

Generate project-specific guidance

For an existing project, use this prompt after initialization. For a new project, scaffold the initial stack first.

Explore this repository before changing code. Identify its languages,
frameworks, package manager, scripts, directory structure, styling and component
systems, form and validation libraries, data-access patterns, testing tools, and
generated files.

Update only the project-specific section of AGENTS.md with concise guidelines
derived from the repository's actual dependencies, configuration, scripts, and
established code patterns. Include exact verification commands. Preserve the
managed shared-template block, avoid speculative preferences, and do not add
rules for tools the repository does not use.

Synchronize template updates

Refresh a project's local template reference:

pnpm dlx @iamdevlinph/codex-kit@latest project sync
codex-kit project status

project sync never edits AGENTS.md. It prints a prompt asking Codex to merge only applicable reusable changes while preserving local adaptations. After reviewing the semantic merge, record the applied template hash:

codex-kit project mark-applied

mark-applied updates only .codex-kit-state.json; it does not validate or modify AGENTS.md.

If TEMPLATE_AGENTS.md was modified locally, synchronization preserves it and asks for review instead of overwriting it. Use --force only after intentionally discarding the local candidate changes.

Synchronize multiple projects

Install the CLI once and keep a local path list:

pnpm add --global @iamdevlinph/codex-kit

while IFS= read -r repo; do
  [ -n "$repo" ] && codex-kit project sync --cwd "$repo"
done < ~/.config/codex-kit/projects.txt

Update global agents and routing separately when those assets change:

pnpm add --global @iamdevlinph/codex-kit@latest
codex-kit global install

Check for a new version

codex-kit version check

The command queries the public npm registry only when requested. Normal project commands do not add network latency or depend on registry availability.

Requirements

  • Node.js 20 or newer
  • Codex with custom subagent and lifecycle-hook support

The published package has no runtime dependencies and uses only Node.js standard-library modules.

License

UNLICENSED. Public availability on npm does not grant permission to reuse or redistribute the package beyond applicable law and npm's service terms.

References