Repository navigation
v0.5.0 — bug/style tiers
gox check now defaults to the bug tier
A month of real agent transcripts (100 Stop-hook blocks, 2799 reported issue lines for only 665 unique findings) showed that style rules, enforced inside an agent loop, overwhelmingly produce suppression annotations instead of fixes — noise that drowns the rules that catch real bugs.
Changed
gox checkruns only the bug tier by default:bodyclose,contextcheck,errcheck,errorlint,exhaustive,forcetypeassert,httptimeout.- The style tier (
banany,goroutine,namedargs,noglobals,shadow) is opt-in:gox check --all(env:GOX_ALL=1). gox listmarks opt-in rules.
Added
--skip=a,b,...(env:GOX_SKIP) to exclude analyzers per run; unknown names are an error.- Claude/Grok Stop hook v2:
- only checks packages whose
.gofiles were modified during the turn (mtime vs the transcript's last user message) — a file left dirty in git no longer re-blocks unrelated turns; - never re-blocks a session with a byte-identical report (also prevents stop-loops);
GOX_HOOK_FLAGSpasses extra flags through (e.g.--all).
- only checks packages whose
Notes
gox baselinestill captures the full analyzer set, socheck --allfilters against a complete snapshot.- Re-run
gox install claude(orgrok) after upgrading to refresh the hook script.