bun x gm-codex@latestInstalls 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.
Inside a managed block fenced by # >>> gm-codex managed / # <<< gm-codex managed sentinels:
[features].codex_hooks = true[[hooks.<Event>]]blocks forPreToolUse,PostToolUse,SessionStart,UserPromptSubmit,Stop— pointing at the bundledplugkitand 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.
cd /path/to/your/project
npm install gm-codex
npx gm-codex-installCopies plugin assets into <project>/.codex/plugins/gm-codex and writes the same managed block into <project>/.codex/config.toml (project-trusted layer).
npx gm-codex-uninstallRemoves the plugin directory and strips the managed block from config.toml, leaving any user-authored content untouched.
Windows and Unix:
git clone https://github.com/AnEntrypoint/gm-codex ~/.codex/plugins/gm-codexWindows PowerShell:
git clone https://github.com/AnEntrypoint/gm-codex "\$env:APPDATA\codex\plugins\gm-codex"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
- Hooks call
bin/plugkitthrough${CODEX_PLUGIN_ROOT}. plugkitbinaries are bundled inbin/for every supported platform; the plugin ships ready-to-run.plugkituses:rs-execfor execution/runtime process managementrs-codeinsightfor AST/project analysisrs-searchfor search/MCP search behavior
CODEX_PLUGIN_ROOT: plugin root used by hooksCODEX_PROJECT_DIR: project root for hook/runtime operations
- 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
bun x gm-codex@latestnpm update gm-codex
npx gm-codex-install- Reinstall the plugin;
plugkitbinaries are shipped inbin/via CI and should not need to be downloaded.
- Verify
CODEX_PLUGIN_ROOTpoints to the installed plugin root. - Confirm
hooks/hooks.jsoncommands resolve to${CODEX_PLUGIN_ROOT}/bin/plugkit.
- Check
skills/,scripts/, andagents/were copied by installer. - Re-run installer and restart Codex.
MIT