This directory contains the automation entrypoints for exporting, restoring, validating, and auditing the Codex environment.
- Export:
export-from-local.shrender-portable-rules.sh
- Install and bootstrap:
install.shbootstrap.shinstall-codex-agents.sh
- Verification and audit:
check-toolchain.shcheck-repo-consistency.shverify.shaudit-codex-agents.shcodex-activate.shself-test.sh
- Release packaging:
build-release-bundle.sh
- Version management:
sync-codex-version.sh
- OS-specific installers:
os/README.mdos/<os>/README.mdos/<os>/install/*
- Shared shell helpers:
os/common/platform.shos/common/layout.sh
- Export from a known-good source machine with
export-from-local.sh. - Refresh portable rules through
render-portable-rules.shwhen the curated manifest changes. - Restore with
install.shorbootstrap.sh. - Validate with
check-repo-consistency.sh,check-toolchain.sh,verify.sh,audit-codex-agents.sh, andcodex-activate.sh --check-only. - Build distributable release artifacts with
build-release-bundle.shwhen preparing tagged releases.
GitHub Actions reuses the same repository entrypoints for repository consistency, agent audit, and release-bundle validation so CI stays aligned with the documented operator flow.
These scripts are the operational surface of the repository.
If you change any export, manifest, parity, or restore behavior, update the relevant documentation under docs/ and re-run the verification chain before merging.
The current implementation is built around a profile-aware OS-first layout:
- shared agent profiles are resolved through
scripts/os/common/layout.sh - the current primary exported runtime profile is
codex/os/linux/runtime/* - macOS and Windows keep explicit native profile slots
- install and verify fall back to the primary exported payload when a native OS payload is not present yet
- export writes only to the runtime profile that matches the actual source OS
audit-codex-agents.sh also attempts an additional OpenAI skill-creator validation when the local quick_validate.py helper and its Python dependency set are available.