Skip to content

Integrate caveman as a native plugin within Codex#732

Open
jamesqo wants to merge 4 commits into
JuliusBrussee:mainfrom
jamesqo:codex/native-codex-hooks
Open

Integrate caveman as a native plugin within Codex#732
jamesqo wants to merge 4 commits into
JuliusBrussee:mainfrom
jamesqo:codex/native-codex-hooks

Conversation

@jamesqo

@jamesqo jamesqo commented Jul 22, 2026

Copy link
Copy Markdown

I noticed that with Claude the caveman speak seemed a lot more ingrained, but with Codex it would eventually stop and go back to normal language over time. Codex recently caught up to Claude Code and added native support for plugins; this PR adds it as a native plugin to Codex so it doesn't "drift" back to the normal speak over time -- I've tested it on my local machine (M4 MacBook Air), and it seems to be working well.

One thing to note is that if you run Codex from the command line it's gonna be slightly annoying because it'll remind you with every prompt that it's running the caveman hook (unlike Claude which lets you silence that). But if you're running it from the desktop app, it's not an issue.

I asked my agent (5.6 Sol) to look over this PR a few times to add tests / validate correctness and make sure it follows the repo's coding conventions -- also did a manual review once it was finished. Let me know if there's anything else you think I can add!

jamesqo added 4 commits July 20, 2026 22:25
Load Caveman through Codex's plugin manifest so session startup and per-prompt mode reinforcement work automatically. Document hook trust, fresh-task activation, verification, and local development setup.
Keep SessionStart output structured for every mode. Make marketplace setup and forced reinstalls idempotent, cover Codex state transitions with a fake CLI, and remove the stale nested manifest.
Use plugin-only hook config to avoid project/plugin double execution. Parse Codex token usage from CODEX_HOME for /caveman-stats.
Use cumulative Codex usage snapshots to avoid double-counting repeated events. Ship native plugin metadata in npm packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant