Skip to content

[codex] Update Codex docs for current config behavior - #731

Closed
manoelcalixto wants to merge 2 commits into
obra:mainfrom
manoelcalixto:codex/codex-native-superpowers
Closed

manoelcalixto wants to merge 2 commits into
obra:mainfrom
manoelcalixto:codex/codex-native-superpowers

Conversation

@manoelcalixto

Copy link
Copy Markdown

Summary

The current Codex examples still imply two behaviors that no longer hold once users copy them into a real ~/.codex install. The browser_debugger role example bakes in a transport-specific browser MCP snippet, and the hooks example still uses relative hooks/... 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_servers block, Codex ignores the role file as malformed. If someone copies hooks.json into ~/.codex, commands like python3 hooks/session-start.py resolve 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 to hooks.json.

Fix

This PR removes the transport-specific MCP block from the browser_debugger example role, updates the example config and Codex docs to tell users to configure browser MCP in their real config layer, and switches hooks.json to 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.py and git diff --check.

manoelcalixto and others added 2 commits March 14, 2026 14:12
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]>
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