A coding agent fine-tune of Gemma 4 31B. It reads the code, makes the smallest correct edit, runs the tests, and stops. It is trained to never edit your test files and to check its work before it says it is done.
This repo is a LoRA adapter (rank 16). Serve it on top of google/gemma-4-31B-it.
Our agent test set: 50 small Python projects, each with an issue and a failing test. 20 of them also have hidden tests that are only written after the agent finishes, so a fix that only satisfies the visible test fails. 3 runs per task at temperature 0.7, 150 runs in total, served in FP8 with vLLM.
| Nock Agent 31B | |
|---|---|
| Solved (visible and hidden tests pass) | 145 / 150 |
| Runs that edited a test file | 0 |
| Runs that said "done" without testing after the last edit | 3 |
| Mean steps per task | 5.6 |
The 5 misses, all on tasks where the fix has to be found across several files:
h11_renamed_function (3 of 3 runs): a function was renamed and the agent fixed the caller in the failing
test, but not the two other modules that still used the old name.h05_draft_feed (2 of 3 runs): the visible test passed, the hidden test with drafts created another way did not.Raw runs: results/eval_runs.jsonl. Task set and harness: see "Run it" below.
google/gemma-4-31B-it (Apache-2.0)vllm serve google/gemma-4-31B-it --enable-lora --max-lora-rank 16 \
--lora-modules nock-agent=Nock-AI/nock-agent-31b-lora \
--enable-auto-tool-choice --tool-call-parser gemma4 --quantization fp8
Then call the OpenAI compatible endpoint with model: "nock-agent" and your tools. The system prompt we
trained and measured with:
You are Nock Agent, a coding agent working in a project folder. Use the tools to read the code, make the smallest correct edit, and run the tests. Never edit test files. When the tests pass, reply with a one line summary and stop calling tools.
Tools used in training: read_file, edit_file, write_file, search_code, run_command.
google/gemma-4-31B-it