LightOn releases a small local model that searches code
In short
- The French AI company LightOn released ColGrep-Agent-2B in October 2026: a small open model that runs on your own computer and does the "where is this code?" searching for a larger, paid coding agent.
- In LightOn's own test of Claude Code with Sonnet 5.5 on 52 questions, handing the searches to the small model cut the paid API tokens by 34.3% and the cache-aware cost per question from 7.3 to 4.4 cents, compared with plain grep.
- The catch: answers took longer (21.6 seconds against 13.0 per question), and accuracy was 80.8% against 83.3% for grep, a gap LightOn says is not statistically significant but cannot rule out.
Is ColGrep-Agent-2B free to use?
2B model class, built on OpenBMB's MiniCPM5-2B (Hugging Face counts about 2.5 billion parameters); Apache 2.0 licence: commercial use allowed, weights not gated; 2.5 GB the default Q8_0 GGUF file the installer downloads; 34.3% fewer API tokens than grep in LightOn's 52-question test
LightOn put the model on Hugging Face on 3 October 2026 and a GGUF version for the llama.cpp engine on 9 October, in seven precisions from 4-bit to full 16-bit. The blog post, by Maxence Lasbordes, Raphael Sourty, Aarush Sinha and Amélie Chatelain, followed on 12 October. A companion preprint, not peer reviewed, went up on arXiv on 4 October under a CC BY 4.0 licence. Apache 2.0 is a permissive licence: in our plain reading, anyone may download, run, change and sell products built on the model, as long as they keep the licence and copyright notice.
Getting it running takes one command (colgrep --install-agent). It needs no Python set-up, inference server or API key, the blog says. On an Apple M3 Pro laptop a question takes about 20 seconds and up to 3 to 4 GB of memory. Ready-made installers connect it to Claude Code, Codex and OpenCode.
Grep, semantic search and why turns cost money
A coding agent that is asked to fix a bug first has to find the code. Usually it does this with grep, a tool that finds exact words in files. The agent guesses a function name, greps for it, opens a file, follows a reference and tries again. Each step is a tool call and a new turn, and every turn resends the whole conversation to the paid model. In LightOn's runs that was about 23,000 tokens per turn.
ColGrep, LightOn's earlier open search tool, matches by meaning as well as by spelling. A tiny 17-million-parameter model, LateOn-Code-edge, keeps a vector for each word of the code and compares it with the words of the question. A search for "custom attributes" can then find a function called fieldDefinition. The index stays on the user's machine.
ColGrep-Agent-2B is the next step. Instead of the big agent running the searches itself, it sends one question to the local model. That model searches with ColGrep, reads files with read-only commands, follows references for up to 10 turns, and returns file paths, line ranges and the code itself.
Does a small local model cut a coding agent's costs?
LightOn picked 13 public code repositories created in 2026, so that the models were less likely to have seen them in training. They are written in Rust, Go, TypeScript and Python and range from 17,000 to 1.8 million lines. It wrote 52 questions: 39 that need several places in the code found, and 13 about a single behaviour. Each question ran three times in four set-ups, 624 sessions in all, with Claude Opus 5.5 grading the answers without knowing which set-up produced them. The token counts cover only the paid Claude API, not the tokens the free local model generates.
The saving comes from fewer rounds. With grep, Claude averaged 5.5 turns, 5.1 grep, find or ls commands and 2.0 file reads per question. With the agent it averaged 3.9 turns, 2.0 grep commands and 0.9 file reads. The agent used fewer tokens on 88% of the questions and saved tokens on all 13 repositories. The saving grew with size: 19% below 50,000 lines, 29% from 50,000 to 150,000, and 40% from 150,000 to 600,000. On the two repositories over a million lines, ColGrep and the agent saved 37 to 46%.
This is a test of finding code, not of fixing it: LightOn says the results are for code-search questions, not end-to-end coding tasks. Each repository had only four questions, so per-repository figures are noisy, and the 95% confidence interval on the accuracy change runs from −10.9 to +5.1 points.
Speed is the price. On LightOn's GPU server a single call to the local agent took 7 seconds at the median and 22 seconds at the 90th percentile. The default setting is the Balanced mode, which matched grep's 83.3% accuracy while saving 21% of tokens. The integration only suggests the search tool to Claude; it does not force it.
How good is the small model on its own
LightOn also ran the model on code-search benchmarks built from real GitHub issues, averaged over five runs. On SWE-bench Lite it found the right lines best of all the models tested (line F1 19.92; F1 balances finding everything relevant against returning nothing irrelevant, higher is better), ahead of Google's Gemma 4 31B at 17.08. Larger models were still better at naming the right files: 79.93 for Gemma 4 31B against 76.18 for the 2B. On the multi-language Multi-SWE-bench Flash it scored 62.57 for files and 15.93 for lines, against 68.30 and 19.14 for Gemma 4 31B. The untrained MiniCPM5-2B base scored 66.72 and 9.62 on SWE-bench Lite.
How it was trained
LightOn started from MiniCPM5-2B. First a larger model, Qwen3.5-27B, solved search tasks in the same harness and the small model was fine-tuned on those worked examples. Then it was trained with reinforcement learning (a GRPO variant, 500 steps): it was rewarded for naming the right files and lines, penalised for extra turns, and given a tiny penalty for falling back on grep.
The preprint by Lasbordes and four co-authors studies the same recipe on smaller models of 1 to 1.7 billion parameters. On CPU, it reports that ColGrep cut mean end-to-end latency by 44.1% and used 29.1% fewer tokens than grep-based agents.
Where things stand
ColGrep-Agent-2B is free to download and use commercially. Every number above is LightOn's own, from a test it designed, with one paid agent and 52 questions; we found no independent test. For teams paying per token, the trade LightOn reports is about a third fewer tokens for slower answers.
Sources
- Maxence Lasbordes, Raphael Sourty, Aarush Sinha and Amélie Chatelain, ColGrep-Agent: Cutting Frontier Coding Agents' Tokens by a Third, LightOn blog on Hugging Face, 12 October 2026
- lightonai/colgrep-agent-2B and colgrep-agent-2B-GGUF, model cards, Hugging Face
- Maxence Lasbordes, Aarush Sinha, Raphael Sourty, Amélie Chatelain, Djamé Seddah, Small Agents with Semantic Search: Efficient Multilingual Code Localization, arXiv preprint, 4 October 2026
Sources
- ColGrep-Agent: Cutting Frontier Coding Agents' Tokens by a Third
- colgrep-agent-2B model card
- colgrep-agent-2B-GGUF model card
- Small Agents with Semantic Search: Efficient Multilingual Code Localization
Related stories
- Alibaba's Qwen releases open Qwen4-35B-A3B with 3B active
- Ai2 releases Molmo 3, an open model that judges depth in photos
- MiniMax releases M4, a 2.74T-parameter model; weights to follow
- Recension releases Coatl-1, an open model for DNA, proteins and text
- Google DeepMind releases CellGemma, an open cell-response model
- SpaceX renames its AI coding app Cursor as Grok Build
More from AI in Europe
- LightOn releases LightOnOCR-3, three open OCR models
- 4Director turns a photo into a video along drawn 3D object paths
- GPT-NL publishes training code for its Dutch language model
- Pleias releases traces of an AI model searching Wikidata in code
- Aleph Alpha releases Kolibri, a free open German-English model