The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
Go — LSP setup
- Builtin server:
gopls—gopls - Extensions:
.go - Install hint:
go install golang.org/x/tools/gopls@latest
Install
- macOS:
go install golang.org/x/tools/gopls@latest(orbrew install gopls) - Linux:
go install golang.org/x/tools/gopls@latest - Windows:
go install golang.org/x/tools/gopls@latest
Requires the Go toolchain. go install drops the binary in $GOPATH/bin
(default ~/go/bin) — that directory must be on PATH.
export PATH="$PATH:$(go env GOPATH)/bin"
Confirm it resolves:
command -v gopls
Configure
Builtin — usually NO config needed (auto-resolved by extension). Configure only to set priority, init options, override extensions, or disable. Same JSON shape in every harness's project config (per-harness paths: the Configure step in SKILL.md):
{ "lsp": { "gopls": { "priority": 100 } } }
For builtin ids in a PROJECT config, command is supplied automatically — only set priority/initialization/extensions/disabled (a project entry drops env). env, and a fully custom (non-builtin) server with its own command, must go in your harness's USER config (see the Configure step in SKILL.md).
Initialization options (only if commonly needed)
None commonly required. To enable extra analyses or staticcheck:
{ "lsp": { "gopls": { "initialization": { "staticcheck": true } } } }
Alternatives
None — gopls is the official and de facto sole Go language server.
Troubleshooting
- PATH:
goplsmust be on PATH; ensure$(go env GOPATH)/binis exported, then reopen the shell. - No diagnostics / "no required module": open the directory containing
go.modas the workspace root. Outside a module, gopls degrades. Rungo mod tidyif dependencies are unresolved. - Stale toolchain: reinstall with
go install golang.org/x/tools/gopls@latestafter upgrading Go.
Verify
bun ../../scripts/verify-lsp.ts path/to/file.go