Skip to content

Codex skill suggestions name each skill the way Codex lists it (GST-3195) - #4523

Merged
capy-ai[bot] merged 1 commit into
mainfrom
codex-routing-hint-uses-codex-skill-names
Nov 19, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
codex-routing-hint-uses-codex-skill-names

Conversation

@garrytan

@garrytan garrytan commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

On Codex, gstack's routing hint now names each skill by the name: in its installed SKILL.md (review), the name Codex lists, so $review loads the suggested skill.
Before, the hint said gstack-review (the folder name), which Codex doesn't list, so mentioning it loaded nothing.
Nothing to do: the next ./setup --host codex picks it up. Claude Code's hint is unchanged.

What changed
  • scanCodexSkills keeps the front-matter name that scanInstalledSkills already read, and falls back to the folder name only when that name is missing or not a valid skill name. The matcher and Claude Code's wording are untouched.
  • Tests: a fixture whose folder (gstack-review) and name: (review) differ, a prefixed name (gstack-review), and missing or unusable names. A new real-Codex test runs Codex 0.170 against a local stub model (no API key): the name in the hint is the one Codex lists, $<that name> loads the skill body, and $gstack-review does not.
  • Docs: docs/skill-routing-and-contracts.md#codex.
Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL lib/skill-route.ts:375 codexHintLine's doc comment still gives gstack-review as the Codex name; the name is now the SKILL.md name (review).
  • Open, non-blocking (second-model read of the decision trail, GPT-6.2 Sol): when a user's own Codex skill is also named review, Codex 0.170 reportedly skips a bare $review mention, so neither skill loads. This is no worse than before (944b41e).
  • Open, non-blocking: a gstack-<x> folder whose name: was renamed to something outside ROUTED_SKILLS no longer routes.
  • Open, non-blocking: the real-Codex $gstack-review negative control would also pass if Codex sent zero requests.
  • Open and out of scope. Nine skill templates' codex_default_prompt still say $gstack-<name> (Codex render work).
  • Skipped: lib/skill-route.ts:225, a user's own Codex skill with the same name as a gstack skill makes the hint ambiguous. The suggested fix (keep the folder name on a clash) brings back the bug this PR fixes, and Codex's own skill list already shows both names.
Documentation

Status: current. The docs already match this change, so no edits were needed.

Scope: base 944b41e to head 74f97db, one commit and six files (changelog fragment, docs/skill-routing-and-contracts.md, the Codex routing hook, lib/skill-route.ts and two test files), with no staged, unstaged or new files. I searched every authored doc and template for the old Codex routing-hint wording and found no stale copies.

Documentation health:

  • docs/skill-routing-and-contracts.md: current. The Codex section says the hint uses each skill's SKILL.md name: (review, mentioned as $review) and falls back to the folder name.
  • changelog.d/codex-routing-hint-uses-codex-skill-names.md: current, and not modified.
  • README.md: reviewed and not modified. Its Codex host row still says 'ask for gstack-office-hours'; that is a possible follow-up.

Coverage debt: the new Codex naming rule has reference and explanation coverage in skill-routing-and-contracts.md, but no how-to coverage. Nine skill templates still put $gstack-<name> in codex_default_prompt, while installed Codex copies are named without the prefix; a separate change should check and fix that, then regenerate.

Diagram drift: none.

Agent notes

Plan: exempt: bug fix (--kind fix), reproduced at 944b41e with failing-first tests

Reported by GEVA-562's keyless probe, relayed by GEVA-2 on 2026-11-19. Reproduced here at 944b41e with codex-cli 0.170.0 against a local stub. The new tests fail at 944b41e (6 fail) and pass with the fix.

Open in Capy

{
  "schema_version": 1,
  "pr": 4523,
  "head": "74f97dbdece02078ef6d77199ed4144c34bfc2a3",
  "version": "1.101.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1707,
      "fail": 0,
      "skip": 7
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44516729299,
      "attempt": 1,
      "tree": "0708fe5a9875b4209e480dfb3b06e4ee6808f47e"
    }
  ],
  "calls": 22,
  "session_kind": "unattended",
  "run": "ship-4523",
  "head_tree": "0708fe5a9875b4209e480dfb3b06e4ee6808f47e",
  "product_patch_id": "094bd8b5006c74192132fe6a9f4a26082a79c07e",
  "gstack_version": "1.101.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 13,
    "rules": "1afa38a4be3b5eef",
    "base": "ed267248d35ff225b1db9ca77ffdc2c2c5bbef2c",
    "registry": "ed267248d35ff225b1db9ca77ffdc2c2c5bbef2c",
    "gate_scan": {
      "tagged": 0,
      "head": "74f97dbdece02078ef6d77199ed4144c34bfc2a3"
    },
    "reasons": [
      "runtime=13"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @0708fe5a9875 (8 checks, current for 74f97dbdece0)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44516729299/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44516729299/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44513739788/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=0708fe5a9875 tests=38163 skipped=104 runs=44516729299/1 profiles=ci-reuse/free-tests heads=74f97dbdece0 verified=2026-11-19T11:53:16.516Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md against base 944b41e"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 3,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "unbound": 2,
    "dispatches": {
      "specialist": 4,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

…195)

The Codex routing hint now reads each skill's name from its installed
SKILL.md, the name Codex lists, so $review loads the suggested skill.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit be83949 into main Nov 19, 2026
78 of 79 checks passed
@garrytan garrytan mentioned this pull request Nov 19, 2026
capy-ai Bot added a commit that referenced this pull request Nov 19, 2026
- `gstack-artifact validate` no longer passes a run.json that gstack-autoplan never wrote. (#4494)
- /ship's changed-number check no longer stops on tests that only share a word with the change (#4478). (#4496)
- On Capy, /ship no longer edits or comments on pull requests as you. (#4518)
- The destructive-command check stops asking about scratch deletes and catches the real damage it used to miss. (#4513)
- The destructive-command check reads commands more carefully, closing gaps found after the last release. (#4525)
- The Codex readiness check and the second-model review now pick the same model for a custom Codex provider (GST-3089). (#4491)
- gstack's Codex hooks work when your Codex folder's path has a `(`, `&` or other shell character in it. (#4528)
- Uninstalling gstack keeps your own Codex hooks trusted. (#4528)
- Codex hook setup matches Codex more closely. (#4528)
- On Windows, setup copies the Claude Code hook code that gstack's Codex hooks import (#4528)
- /review's checklist on Codex reads shell commands more carefully. (#4528)
- On Codex, gstack now suggests the right skill for a prompt and stops destructive commands before they run. (#4512)
- On Codex, /review is now held once when it tries to finish without its adversarial pass or its report, as it already is on Claude Code. (#4522)
- On Codex, gstack's skill suggestion now names the skill the way Codex lists it. (#4523)
- On Codex, gstack's suggested prompts and docs now name skills the way Codex lists them. (#4524)
- /review on Codex with gpt-6.1-sol is no longer held back for a second-model pass it already ran. (#4526)
- On Codex, office-hours, plan-design-review and gstack-upgrade work again when you name them. (#4510)
- gstack knows when Codex is running unattended. (#4510)
- Codex reviewers start with a clean context. (#4510)
- Docs no longer say Codex has no hook support. (#4510)
- A command whose output was cut off no longer counts as a finished read. (#4492)
- A folder marked as published data can no longer hide source code or agent files from /ship's review. (#4516)
- Correction to the on-by-default helper hooks entry: the hook still routes only to /review, /qa and /verify, so skills you've installed yourself aren't suggested yet. With gstack's skills it routes 14 of 60 real bug reports (was 17), and long prompts are no longer skipped. (#4505)
- /sync-gbrain's read check now works when the first page in your code source is over 64 KB. (#4497)
- Free-suite CI no longer fails before any test runs when Ubuntu's package mirror is slow. (#4530)
- Syncing a second repo no longer makes the first one ask for /sync-gbrain again. (#4532)
- gstack's helper hooks are now on by default in Claude Code, OpenClaw and Hermes, and the prompt-routing hook fires on real bug reports. (#4503)
- `gstack-pregate clear --receipt` accepts a remote gate run from before a merged release when the release only regenerated a declared release output. (#4483)
- The second-model review now keeps the reviewer's own result, and reports a used-up budget as a budget stop. (#4515)
- When the reviewer wrote its review to the result file it was asked for, Codex then replaced that file with its short closing message ("Done, I wrote the review"), so the review was thrown away and reported as missing its markers. (#4515)
- When the provider refuses the call with HTTP 402 Payment Required (usually a metering proxy that hit its allowance, or an account out of credits or quota), gstack used to record only "exit 1". (#4515)
- The pre-commit /verify check now fails a check that times out, and its checks share one time budget (GST-3201). (#4527)
- /ship's review collector no longer reads a reviewer's own scope list or list of passed checks as findings (GST-3201). (#4527)
- Merge-queue stack tests fail when git cannot list a PR's added test files (GST-3201). (#4527)
- /ship can now review results PRs that publish raw session data. (#4511)
- /ship's review pass works when the checkout you ship isn't the project's default checkout. (#4507)
- A second review round no longer reports done when nothing was reviewed. (#4520)
- The prompt-routing hook now suggests skills you install yourself, and no longer sends ordinary bug reports to /qa (GST-3123). (#4506)
- gstack's script runner and merge-queue checks now also refuse cut-off output. (#4502)
- A failed second-model review reports the cause that actually stopped it, and the runner never deletes its own prompt. (#4519)
- `gstack-ship-queue ready` now fills in the trial merges and the second-model trail read instead of printing lines to fill. (#4529)
- Five small ship-tool fixes. (#4529)
- A ruling the owner gives while a `/ship` run is open can be relayed. (#4529)
- /ship no longer kills a working test run as stalled when the test command starts its workers in their own session. (#4533)
- /ship no longer stops a review because the state-machine reader started its reply the way its instructions say. (#4504)
- When Claude Code runs /verify right before a commit, it now gets a quick check instead of the full fix loop (GST-3150). (#4508)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.

1 participant