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

claude-to-codex

v0.1.3

Published

Convert Claude Code repo artifacts (CLAUDE.md, skills, commands, agents) into Codex-native equivalents

Readme

claude-to-codex

[!WARNING] This project was primarily vibe-coded with GPT-5.4. It works, but review the output before trusting it blindly.

Convert Claude Code repo artifacts into Codex-native equivalents. Run it once to migrate your project's CLAUDE.md files, skills, commands, and agent configs to the Codex format.

What it converts

  • CLAUDE.mdAGENTS.md (and CLAUDE.local.mdAGENTS.override.md, .claude/CLAUDE.md.agents/AGENTS.md)
  • .claude/skills/.agents/skills/ — entire skill directories copied with all supporting files
  • .claude/commands/.agents/skills/ — commands converted to Codex skills
  • .claude/agents/.codex/config.toml + .codex/agents/*.toml — agent roles, MCP servers, model, sandbox mode
  • Path references in all text content automatically rewritten to Codex equivalents
  • disable-model-invocation → generates Codex openai.yaml policy files
  • Symlinks between CLAUDE.mdAGENTS.md replaced with concrete files

Usage

# Preview what would change (dry-run is the default)
npx claude-to-codex@latest

# Preview with machine-readable output
npx claude-to-codex@latest --json

# Apply changes
npx claude-to-codex@latest --write

Works with any Node package runner:

bunx claude-to-codex@latest --write
pnpm dlx claude-to-codex@latest --write

Options

--dry-run                     Plan changes without writing files (default)
--write                       Write the planned changes
--json                        Print machine-readable output
--emit-report                 Write codex-migration-report.json after a successful write
--root-dir <path>             Explicit conversion root
--dangerous-allow-dirty-git   Allow writes when the git worktree has uncommitted changes
--dangerous-no-git-backup     Allow writes without git-backed rollback safety

Details

Agents

Agent markdown files (.claude/agents/<name>.md) are converted into a central .codex/config.toml (enabling multi_agent and registering all roles) plus per-agent .codex/agents/<role-id>.toml files containing developer_instructions, model, sandbox_mode, and mcp_servers.

Converted agent features:

  • Markdown body → developer_instructions
  • Inline mcpServers definitions (command, args, url, env, etc.) → [mcp_servers.<name>] in role TOML
  • description → registered in config.toml
  • Tool restrictions and permission modes → sandbox_mode inference (see Models, Roles & Permissions)

Dropped agent features (no Codex equivalent — warnings emitted):

  • maxTurns, skills (preload), hooks, memory, background, isolation
  • MCP servers referenced by name only (string array) — concrete config unavailable
  • permissionMode: dontAsk and permissionMode: bypassPermissions

Paths

All text content (instruction files, skills, commands) is scanned for Claude-specific path references which are rewritten to Codex equivalents:

  • CLAUDE.mdAGENTS.md
  • CLAUDE.local.mdAGENTS.override.md
  • .claude/CLAUDE.md.agents/AGENTS.md
  • .claude/skills/.agents/skills/
  • .claude/agents/.codex/config.toml and .codex/agents/

Exact artifact source-to-target paths are applied first, then generic patterns catch remaining references. Binary files in skill directories are copied verbatim without rewriting.

Models, Roles & Permissions

Model mapping:

  • opusgpt-5.5 with model_reasoning_effort = "high"
  • sonnetgpt-5.5 with model_reasoning_effort = "medium"
  • haikugpt-5.5 with model_reasoning_effort = "low"

Built-in role mapping:

  • Exploreexplorer
  • general-purposeworker (approximated)
  • Planplanner (forced read-only sandbox)

Permission and sandbox inference:

  • permissionMode: plansandbox_mode = "read-only"
  • permissionMode: acceptEdits → inherited (approximated)
  • tools allowlist without Edit/Writesandbox_mode = "read-only"
  • disallowedTools blocking Edit/Writesandbox_mode = "read-only"

Safety

  • Dry-run by default — nothing is written unless you pass --write.
  • Refuses to write in a dirty worktree unless you pass --dangerous-allow-dirty-git.
  • Refuses to write outside a git repo unless you pass --dangerous-no-git-backup.
  • Never writes to gitignored target paths.
  • Skips files that are already up to date (content-equal check).
  • Never deletes files it didn't create.
  • Pass --emit-report with --write to generate a codex-migration-report.json with full details on what was discovered, converted, skipped, dropped, and approximated.

License

MIT