Integrate caveman as a native plugin within Codex#732
Open
jamesqo wants to merge 4 commits into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!