Skip to content

feat(codex): optimize generated skills for Codex host - #1162

Closed
giaphutran12 wants to merge 2 commits into
garrytan:mainfrom
giaphutran12:codex/full-skill-review-agents
Closed

giaphutran12 wants to merge 2 commits into
garrytan:mainfrom
giaphutran12:codex/full-skill-review-agents

Conversation

@giaphutran12

Copy link
Copy Markdown

Summary

  • Make Codex-host generation default to the gpt-5.4 model overlay instead of the Claude overlay.
  • Add a Codex host runtime patch that is injected into every generated Codex skill, including no-preamble control skills like /freeze, /careful, /guard, /unfreeze, and /gstack-upgrade.
  • Rewrite Claude-only generated vocabulary in Codex output (Agent tool, Claude subagent, subagent_type: "general-purpose") into Codex-native guidance (Codex subagent, agent_type: "default", shell/native edit tool mapping).
  • Keep the full-skill review-agent change: spawned review voices must read the full relevant SKILL.md before reviewing.
  • Bump VERSION/package to 1.6.2.0 and update CHANGELOG.

Verification

  • bun run gen:skill-docs --host all
  • bun run skill:check
  • bun test test/gen-skill-docs.test.ts
  • bun test test/host-config.test.ts test/gen-skill-docs.test.ts
  • bun test
  • Local Codex install proof: ~/.codex/skills/gstack-ship/SKILL.md has MODEL_OVERLAY: gpt-5.4 and Host Runtime Patch (OpenAI Codex CLI); ~/.codex/skills/gstack-freeze/SKILL.md has the same Codex/GPT patches.

@scarson

scarson commented Apr 23, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1175 Add gpt-5.5 model overlay alongside gpt-5.4

@time-attack

Copy link
Copy Markdown
Contributor

@16francej — recommend closing this PR. The changes combine stale defaults with generated churn, while #1163 separates the remaining Codex work into a clearer scope. Please preserve attribution from #1162 for the model-default and no-self-invocation requirements in #1163.

ashcharus-hue added a commit to ashcharus-hue/gstack that referenced this pull request Jul 16, 2026
Codex uses AGENTS.md as its project instruction file, but the codex host
config's pathRewrites omit the CLAUDE.md -> AGENTS.md rewrite that
hosts/hermes.ts already has. Generated Codex-host skills therefore still
reference CLAUDE.md: the routing preamble checks `[ -f CLAUDE.md ]`, and the
routing-injection step can create and `git commit` a CLAUDE.md in a Codex
repo (auto-applied in spawned/headless runs). Mirrors the hermes.ts pattern.

Refs garrytan#1163. Complements garrytan#1162 (Codex model/tool rewrites, which did not
include this filename rewrite).

Co-Authored-By: Claude Opus 4.8 <[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.

3 participants