Skip to content

v0.5.0 — bug/style tiers

Choose a tag to compare

@kidandcat kidandcat released this 02 Jul 07:49
· 19 commits to master since this release

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 check runs 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 list marks 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 .go files 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_FLAGS passes extra flags through (e.g. --all).

Notes

  • gox baseline still captures the full analyzer set, so check --all filters against a complete snapshot.
  • Re-run gox install claude (or grok) after upgrading to refresh the hook script.