Repository navigation
[codex] Update Codex docs for current config behavior - #731
Closed
manoelcalixto wants to merge 2 commits into
Closed
manoelcalixto wants to merge 2 commits into
manoelcalixto wants to merge 2 commits into
Conversation
Adapt Superpowers to Codex native skill discovery and multi-agent patterns. - add role configs, prompt examples, hooks, and skill metadata - rewrite Codex-facing docs and skills around native roles and tools - add real Codex integration coverage and multi-agent E2E validation Co-authored-by: Codex <[email protected]>
4 of 5 tasks
3 of 5 tasks
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.
Summary
The current Codex examples still imply two behaviors that no longer hold once users copy them into a real
~/.codexinstall. Thebrowser_debuggerrole example bakes in a transport-specific browser MCP snippet, and the hooks example still uses relativehooks/...commands even though Codex executes hooks from the session working directory.Problem
That drift creates two practical failure modes for users following the current docs. If someone adapts the browser role and leaves behind a partial
mcp_serversblock, Codex ignores the role file as malformed. If someone copieshooks.jsoninto~/.codex, commands likepython3 hooks/session-start.pyresolve from the active session cwd instead of the copied config location, so the hooks fail at runtime.Root cause
The example bundle had not been updated to match current Codex behavior. In current Codex, role files work best as transport-agnostic layers that inherit browser MCP configuration from the user's main
config.toml. Hook commands also need absolute paths or OS-specific wrappers after copy because they are not resolved relative tohooks.json.Fix
This PR removes the transport-specific MCP block from the
browser_debuggerexample role, updates the example config and Codex docs to tell users to configure browser MCP in their real config layer, and switcheshooks.jsonto obvious placeholder absolute paths. It also updates the install and troubleshooting docs to explain why copied hook configs must be rewritten, including the Windows wrapper caveat, and strengthens the Codex example validation script so these regressions are caught automatically.Validation
I ran
python3 tests/codex/validate_examples.pyandgit diff --check.