gstack 1.102.0.0 loads the right skill and guards rm -rf in Claude Code

11 hours ago

gstack 1.102.0.0 turns its helper hooks on by default in Claude Code: a routing hook that gets the right skill loaded, the /review contract, and a new destructive-command check that blocks force-pushes to main and home-folder deletes while letting scratch deletes through. Also: a quick pre-commit /verify, a second-model review that keeps its result, data PRs /ship can review, and gstack's hooks on Codex.

Ask about this presentation

Chapters

  1. 0:00Hooks on by default
  2. 0:14Named skills get loaded
  3. 0:29Scratch deletes stop asking
  4. 0:44Asks first, or blocked
  5. 0:59Warnings when unattended
  6. 1:12Your skills get suggested
  7. 1:24Commits and reviews
  8. 1:26Quick /verify before commits
  9. 1:41Second-model review
  10. 1:52Cut-off output fails
  11. 2:05/ship
  12. 2:06Capy stops posting as you
  13. 2:18Data PRs get reviewed
  14. 2:32Three /ship fixes
  15. 2:44Codex
  16. 2:46Hooks on Codex
  17. 3:00Codex skill names
  18. 3:11Verdict
Show transcript
  1. gstack now turns its helper hooks on in Claude Code by default. One names the skill a prompt fits. One holds /review until its reviewers ran. And a new one checks every shell command first.

    Slide text
    gstack logo

    gstack 1.102.0.0 loads the right skill and guards rm -rf in Claude Code

    $ ./setup
    prompt routing on
    skill contract on
    destructive check on · new
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  2. On Opus 5.5, in unattended sessions, a skill named by the routing hook loaded in 58 of 60 runs. Left to its own description, the same skill loaded in none.

    Slide text

    A hook line naming the skill gets Claude Code to load it

    Skill named by the hook line
    58 of 60
    Skill left to its own description
    0 of 60
    Opus 5.5 · unattended sessions
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  3. The destructive-command check stops asking about deletes in temp folders, caches and build output. Across about a quarter million replayed agent commands, those were 95 percent of its false asks.

    Slide text

    Deleting temp files, caches and build output no longer asks

    95%
    of the check’s false asks, in a replay of 254,322 agent commands
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  4. It now asks before deletes outside the session's folder, lost uncommitted work, history rewrites and database resets. Deleting your home folder, force-pushing to main or wiping a disk is blocked outright.

    Slide text

    The check now catches the damage it used to miss

    Asks first

    Deletes outside the session’s folder
    Discarding uncommitted work
    History rewrites, database resets, cloud deletes

    Blocked

    Recursive delete of /, home or a system folder
    Force-push to main
    Wiping a whole disk
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  5. In unattended Claude Code runs and Agent SDK programs, the check warns instead, because the SDK refuses any unanswered ask. The blocked commands stay blocked there too.

    Slide text

    Unattended runs and Agent SDK apps get a warning instead of a question

    claude -p · Agent SDK programs
    warning printed, command runs
    blocked commands stay blocked
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  6. The routing hook can now suggest skills you installed yourself, when they list triggers, so your own bug-fix skill shows up for bug reports. And everyday wording stops sending bugs to /qa.

    Slide text

    The routing hook now suggests skills you installed yourself

    Any skill with triggers: in its SKILL.md
    At most two skills per line, and gstack’s wins a tie
    Ordinary bug reports stop routing to /qa
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0 · GST-3123
  7. Commits and reviews.

    Slide text
    02
    Hooks Commits /ship Codex
  8. Newer Claude Code builds run a skill named verify before most commits. gstack's /verify now answers with typecheck, lint and matching tests, no edits, no questions. A check that times out fails the commit.

    Slide text

    Claude Code’s pre-commit /verify now gets a quick check

    $ gstack-checks quick
    VERIFY PASS
    VERIFY FAIL: tests TIMEOUT
    VERIFY skipped: <reason>
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0 · GST-3150 · GST-3201
  9. Codex used to overwrite the reviewer's result with its short closing note, so the review was lost. And a provider's payment refusal now reports as a budget stop.

    Slide text

    The second-model review keeps the review Codex wrote

    Codex’s closing note goes to its own file
    HTTP 402 reads as a used-up budget, not “exit 1”
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  10. Bun can report success while handing back only part of a large output. So a diff over 64 megabytes could slip a credential past the pre-push hook. Those reads now fail.

    Slide text

    A diff over 64 MiB can no longer carry a credential past the pre-push hook

    Bun spawnSync · exit 0 · output past the read limit
    SPAWN_OUTPUT_INCOMPLETE
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  11. Ship.

    Slide text
    03
    Hooks Commits /ship Codex
  12. On Capy, the GitHub CLI is signed in as the machine owner, so /ship's review notes landed under the owner's name. Now the agent posts them through Capy's own tool.

    Slide text

    On Capy, /ship stops editing pull requests under your name

    PR body edited as the machine owner
    HOST_PUBLISH: text saved for Capy’s own PR tool
    Nothing changes outside Capy
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  13. A results pull request of almost 14 megabytes, mostly session data, could never fit /ship's 2 megabyte review limit. Now a policy can mark data folders. Source files there still get read.

    Slide text

    /ship can now review pull requests that publish raw session data

    gstack-evals #352
    13.8 MB
    /ship’s review limit
    2 MB
    Source files in a data folder still get reviewed
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  14. Changing a limit from 120 to 30 no longer flags every test that says limit. Test workers in their own session stop dying as stalled. And a second review round reads the fix.

    Slide text

    /ship stops on fewer false alarms

    Tests that only share a word with a changed number stop counting#4478
    Test workers in their own session aren’t killed as stalled#4477
    A second review round reads the fix before it says done
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  15. Codex.

    Slide text
    04
    Hooks Commits /ship Codex
  16. On Codex, setup now adds skill suggestions, the /review contract and the destructive-command check. Codex can't ask per command, so a force-push is blocked. Native Windows Codex can't run them yet.

    Slide text

    gstack’s hooks now run on Codex too

    Skill suggestions, the /review contract and the destructive check
    Codex 0.170 or newer, once you trust the hooks
    Native Windows Codex can’t run them yet
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  17. On Codex, gstack's hints used skill names Codex doesn't know, so picking one loaded nothing. Now the names match, and office hours and plan design review load again.

    Slide text

    On Codex, $review loads the skill it suggests

    $gstack-review
    $review
    office-hours, plan-design-review and gstack-upgrade load again
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0
  18. If you use gstack with Claude Code, I would say upgrade. One setup or upgrade run turns the hooks on, and hooks you turned off stay off. The skill-loading result covers Opus 5.5, unattended, only.

    Slide text
    gstack logo

    Use gstack with Claude Code? Upgrade.

    One setup or upgrade run turns the hooks on
    A hook you turned off stays off
    58 of 60 is Opus 5.5, unattended only
    gstack CHANGELOG.md · docs/skill-routing-and-contracts.md
    Hooks Commits /ship Codex
    garrytan/gstack · CHANGELOG.md · 1.102.0.0

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York