Linting
Lint and fix -- the agent runs go vet, staticcheck, and golangci-lint, then cleans up.
What you'll see
- Launch
ryshin a Go project; double-Esc to prompt mode. - Prompt: "lint this project and fix the warnings."
- The
linttool runs go vet, staticcheck, and golangci-lint and returns each finding; no approval to lint. - Fixes are approval-gated file edits; after approving, the agent re-lints to verify.
Commands shown
rysh
lint this project and fix the warnings
Keys used
EnterEscape
Transcript
0:00Lint and fix -- the agent runs go vet, staticcheck, and golangci-lint, then cleans up.
0:03Launch rysh inside your project.
0:08Double-press Escape for prompt mode.
0:13Ask it to lint and fix. The lint tool runs the standard Go linters -- go vet, staticcheck, and golangci-lint -- and returns each finding. Running the linters needs no approval; the agent reads the warnings straight back.
0:30As with build and test, the actual code fixes are approval-gated -- you review the diff before any change is written, then it re-lints to verify.
0:37Clean code, on request -- linters run, fixes reviewed.
Key takeaway
The lint tool runs the standard Go linters and the agent fixes findings, with edits gated by approval.