Patched openai/codex builds for Apple Silicon macOS with higher collaboration defaults and a self-updating cx wrapper.
This repository watches upstream openai/codex releases, rebuilds the latest release, applies patches, and publishes a GitHub release tagged as codex-<upstream_tag>.
Current build target:
aarch64-apple-darwin(Apple Silicon macOS)
Current patch set:
- Collaboration presets model forced to
gpt-5.3-codex - Collaboration presets
reasoning_effortset toXHigh - Collaboration presets
thinking_effortset toXHighwhen present upstream - Explorer built-in model forced to
gpt-5.3-codex - Explorer built-in reasoning/thinking effort forced to
xhighwhen present upstream - Default sub-agent thread limit raised from
6to12
Remote install:
curl -fsSL https://raw.githubusercontent.com/trancong12102/codex-max/main/install.sh | bashLocal install (from this repository):
./install.shRequirements:
bashcurlpython3
If ~/.local/bin is not on your PATH, add it:
export PATH="$HOME/.local/bin:$PATH"Run Codex through the wrapper:
cx --version
cx <your-args>The wrapper executes:
codex-max --yolo "$@"install.sh variables:
BIN_DESTorCODEX_MAX_BIN_DEST: target path for installed binary (default~/.local/bin/codex-max)WRAPPER_DESTorCODEX_MAX_WRAPPER_DEST: target path for wrapper (default~/.local/bin/cx)DEST: legacy alias for binary destination
Examples:
BIN_DEST="$HOME/bin/codex-max" WRAPPER_DEST="$HOME/bin/cx" ./install.shcx wrapper variables:
CODEX_MAX_BIN_DESTorCODEX_MAX_DEST: binary path to executeCODEX_MAX_INSTALLER: local installer path (defaults toinstall.shnext to wrapper)CODEX_MAX_INSTALL_URL: installer URL fallback when local installer is unavailableCODEX_MAX_WRAPPER_DEST: wrapper destination during self-update
install.shselects the newest non-draft release intrancong12102/codex-max(stable or prerelease, whichever is newest by publish/create timestamp).- Download is skipped when the binary at
BIN_DESTalready matches the latest release version. cxattempts to run the installer on every invocation. If update fails but an existing binary is present, it still runs that binary.
GitHub Actions workflow .github/workflows/codex-latest-release.yml runs hourly and on manual dispatch. It:
- Resolves the latest upstream non-draft release from
openai/codex - Skips build if
codex-<upstream_tag>already exists in this repository - Applies the patch set and builds
codexforaarch64-apple-darwin - Publishes tarball + sha256 checksum assets
- Only Apple Silicon macOS artifacts are published.
- Patch steps depend on upstream file layout and may require maintenance if upstream refactors.