This guide explains how to install Humanize for Codex CLI, including the skill runtime ($CODEX_HOME/skills) and the native Codex Stop hook ($CODEX_HOME/hooks.json).
One-line install from anywhere:
tmp_dir="$(mktemp -d)" && git clone --depth 1 https://github.com/humania-org/humanize.git "$tmp_dir/humanize" && "$tmp_dir/humanize/scripts/install-skills-codex.sh"From the Humanize repo root:
./scripts/install-skills-codex.shOr use the unified installer directly:
./scripts/install-skill.sh --target codexThis will:
- Sync
humanize,humanize-gen-plan,humanize-refine-plan, andhumanize-rlcrinto${CODEX_HOME:-~/.codex}/skills - Copy runtime dependencies into
${CODEX_HOME:-~/.codex}/skills/humanize - Install/update native Humanize Stop hooks in
${CODEX_HOME:-~/.codex}/hooks.json - Enable the experimental
codex_hooksfeature in${CODEX_HOME:-~/.codex}/config.tomlwhencodexis available - Seed
~/.config/humanize/config.jsonwith a Codex/OpenAIbitlesson_modelwhen that key is not already set - Mark the install as
provider_mode: "codex-only"when using--target codex - Use RLCR defaults:
codex execwithgpt-5.4:high,codex reviewwithgpt-5.4:high
Requires Codex CLI 0.114.0 or newer for native hooks. Older Codex builds are not supported by the Codex install path.
ls -la "${CODEX_HOME:-$HOME/.codex}/skills"Expected directories:
humanizehumanize-gen-planhumanize-refine-planhumanize-rlcr
Runtime dependencies in humanize/:
scripts/hooks/prompt-template/templates/config/agents/
Installed files/directories:
${CODEX_HOME:-~/.codex}/skills/humanize/SKILL.md${CODEX_HOME:-~/.codex}/skills/humanize-gen-plan/SKILL.md${CODEX_HOME:-~/.codex}/skills/humanize-refine-plan/SKILL.md${CODEX_HOME:-~/.codex}/skills/humanize-rlcr/SKILL.md${CODEX_HOME:-~/.codex}/skills/humanize/scripts/${CODEX_HOME:-~/.codex}/skills/humanize/hooks/${CODEX_HOME:-~/.codex}/skills/humanize/prompt-template/${CODEX_HOME:-~/.codex}/skills/humanize/templates/${CODEX_HOME:-~/.codex}/skills/humanize/config/${CODEX_HOME:-~/.codex}/skills/humanize/agents/${CODEX_HOME:-~/.codex}/hooks.json${XDG_CONFIG_HOME:-~/.config}/humanize/config.json(created or updated only when Humanize config keys are unset)
Verify native hooks:
codex features list | rg codex_hooks
sed -n '1,220p' "${CODEX_HOME:-$HOME/.codex}/hooks.json"Expected:
codex_hooksistruehooks.jsoncontainsloop-codex-stop-hook.shandpr-loop-stop-hook.sh${XDG_CONFIG_HOME:-~/.config}/humanize/config.jsoncontainsbitlesson_modelset to a Codex/OpenAI model such asgpt-5.4- for
--target codex,${XDG_CONFIG_HOME:-~/.config}/humanize/config.jsonalso containsprovider_mode: "codex-only"
./scripts/install-skill.sh --target both# Preview without writing
./scripts/install-skills-codex.sh --dry-run
# Custom Codex skills dir
./scripts/install-skills-codex.sh --codex-skills-dir /custom/codex/skills
# Reinstall only the native hooks/config
./scripts/install-codex-hooks.shIf scripts are not found from installed skills:
ls -la "${CODEX_HOME:-$HOME/.codex}/skills/humanize/scripts"If native exit gating does not trigger:
codex features enable codex_hooks
sed -n '1,220p' "${CODEX_HOME:-$HOME/.codex}/hooks.json"