mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
Claude Code now gets gstack's prompt-routing, skill-contract and destructive-command hooks on by default, and new OpenClaw and Hermes registrations get the start hook. On 60 real bug reports, routing now matches a bug-fix skill on 40 (was 22), but gstack's own skills route 14 (was 17). Why: on Opus 5.5, unattended, a hook line naming a skill got it loaded in 58 of 60 sessions, and a skill relying on its description in 0 of 60 (gstack-evals#369). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1v/outside-voice#1 reader=outside-voice Review-Finding: p1v/adversarial-native#4 reader=adversarial-native Review-Finding: p2/red-team#1 reader=red-team
11 lines
641 B
Bash
Executable File
11 lines
641 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Bash shim — Claude Code hooks run `command` strings via /bin/sh, so this
|
|
# wrapper makes the TypeScript hook executable via bun. Settings.json
|
|
# references this file directly (registered by ./setup unless destructive_guard is off).
|
|
#
|
|
# FAIL-OPEN: every failure path — bun missing, script crash — still exits 0.
|
|
GSTACK_BUN_CONFIG=/dev/null; case "${OSTYPE:-}" in msys*|cygwin*) if command -v cygpath >/dev/null 2>&1; then GSTACK_BUN_CONFIG=NUL; fi ;; esac
|
|
HERE="$(cd "$(dirname "$0")" && pwd)" || exit 0
|
|
bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" "$HERE/destructive-guard-hook.ts" || true
|
|
exit 0
|