Marmot gives coding agents structured Go diagnostics
A compiler error can carry the source span, surrounding code and a proposed edit together. Gaurav Gosain’s Marmot, an experimental Go compiler, returns structured JSON diagnostics when run under a coding agent. Its MCP interface exposes building, testing, checking and explaining errors.
The project also prompted an independently confirmed upstream Go compiler fix: a particular combination of inlined calls and append could lose a side effect. Go’s development branch has the fix; backport requests remain separate from released versions.
Marmot has its own runtime and remains explicitly unsuitable for production. We inspected the code and documentation without installing it or reproducing its benchmarks.
Confirmed Go issue:
github.com/golang/go/issues/83209
