Codex gets gstack's skill routing hint and destructive-command check (GST-3172) (#4512)

`./setup --host codex` now adds gstack's skill-routing hint and
destructive-command check to Codex's `~/.codex/hooks.json`, next to your
own hooks, so Codex users get the same guardrails Claude Code users
have.

Codex runs a hook only after you trust it, so nothing fires until you
accept gstack's hooks at Codex's startup prompt or in `/hooks`;
`gstack-doctor` shows whether you have.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#1 reader=red-team
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-19 11:09:11 +00:00
1 parent 55aaa6c4a5
commit 944b41e24d
24 files changed
+1263 -39

No files matched your search

@@ -1 +1 @@
{"blob":"6f9f93ff672653c72d9e0d97ff9499b6062890a3","since":6,"nonBehavioral":"adds crew/scripts/release-notes.ts to the free-only list beside release-cut.ts"}
{"blob":"5fa6f0beccfc08d49513c6cca9b1ae29a09265d8","since":6,"nonBehavioral":"Adds the new Codex hooks workflow to FREE_ONLY_PR_FILES; no paid case reads it, so no eval verdict can change"}
+1
View File
@@ -268,6 +268,7 @@ export const FREE_ONLY_PR_FILES = [
'.github/workflows/actionlint.yml',
'.github/workflows/arm-setup-smoke.yml',
'.github/workflows/ci-image.yml',
'.github/workflows/codex-hooks.yml', // Installs the pinned Codex CLI and runs the free test/codex-hooks-real-codex.test.ts; no paid case reads it.
'.github/workflows/cso-runtime-images.yml',
'.github/workflows/cso-runtime-promote.yml',
'.github/workflows/cso-runtime-qualification.yml',