Skip to content

v0.1.0

Choose a tag to compare

@kidandcat kidandcat released this 13 May 11:17
· 35 commits to master since this release

First tagged release of gox.

Install

# from source
go install github.com/mentasystems/gox/cmd/gox@v0.1.0

# or download the binary for your platform below

After install, wire it into Claude Code:

gox install claude

What's in here

10 analyzers reimplemented from stdlib only (no golang.org/x/tools, no
third-party linter deps):

  • errcheck — dropped error returns
  • shadow — := shadowing an outer variable (except the ok idiom)
  • forcetypeassert — type assertions without comma-ok
  • namedargs — adjacent same-type args without /* paramName */ at call sites
  • exhaustive — non-exhaustive switch over iota enums and sealed interfaces
  • noglobals — mutable package-level var
  • banany — any / interface{} without justification
  • bodyclose — *http.Response.Body not closed
  • contextcheck — context.Background() inside a function that already has ctx
  • goroutine — go without a visible *errgroup.Group, sync.WaitGroup, or context.CancelFunc

Plus:

  • Per-package incremental cache (~/.cache/gox/v2) keyed by mtime+size.
  • Parallel package processing (worker pool sized to GOMAXPROCS).
  • gox baseline captures existing issues so adoption on legacy
    codebases is zero-day-1-work.
  • Generated files (// Code generated ... DO NOT EDIT.) are skipped.
  • gox install claude registers a PostToolUse hook in
    ~/.claude/settings.json so Claude Code runs gox after every Go file
    edit and must fix or annotate before continuing.

On the Agentero monorepo (442 packages): ~6.3s cold, ~2.5s warm cache.

BSD-3-Clause.