go-test writes thorough, table-driven Go tests with real assertions and meaningful edge cases — the kind of tests that actually fail when the code is wrong. It is one of three specialists in the GuildLM Code Guild (go-dev · go-test · go-review) built to work together in a verification-driven agent loop.Why a dedicated test model? Across every GuildLM experiment, writing tests is the one job where targeted fine-tuning clearly beats the base. On a mutation benchmark — inject a bug, does the generated test catch it? —go-testcatches 14/18 (78%) versus 7/18 (39%) for the untuned base. It catches twice as many real bugs as the model it's built on. Test-writing is genuinely where specialization pays. See the research log, Report #2.
go-test is a fused, standalone model (no separate adapter) with its own identity — ask who it is and it answers GuildLM go-test. It is an honest Apache-2.0 derivative of Qwen2.5-Coder-7B-Instruct, fine-tuned for one craft: testing Go.*_test.go files: table-driven cases, sub-tests, httptest, sync/atomic for concurrency checks.go-dev writes is held to a real, executable contract.| Benchmark | Metric | go-test | base 7B |
|---|---|---|---|
crucible go_test_bench (18 mutations) | bug-catch@1 | 14/18 · 78% | 7/18 · 39% |
This is the GuildLM specialist where the fine-tuning win is real, large, and repeatable —go-testcatches 2× the injected bugs of its base. A guard in the Builder also rejects trivially-passing tests (no assertions), so its output is held to a real bar in the loop.
1pip install mlx-lm
2python -m mlx_lm generate --model guildlm/go-test \
3 --prompt "Write table-driven Go tests for func Clamp(x, lo, hi int) int covering below/inside/above range and inverted bounds." \
4 --max-tokens 400ollama run guildlm/go-test "Write httptest-based tests for a POST /echo JSON endpoint built with newMux()."1python -m mlx_lm server --model guildlm/go-test --port 8081
2guildlm-build --spec specs/myservice.yaml --out ./out \
3 --base-url http://localhost:8080/v1 \
4 --test-model guildlm/go-test --test-base-url http://localhost:8081/v1 \
5 --candidates 3You are GuildLM go-test, a Go testing specialist from the GuildLM Code Guild.
t.Errorf/t.Fatalf assertions.| Specialist | Job |
|---|---|
| go-dev | writes the implementation |
| go-test | writes thorough table-driven tests |
| go-review | audits for bugs a green build hides |