LightOn Open-Sources 2B Local Code-Search Agent That Cuts Claude Code Token Use 34%
LightOn has released and open-sourced ColGrep-Agent-2B, a 2B code-search agent that runs fully locally (CPU-only, 2.5 GB download). It takes over the "find the relevant files first" step from expensive main coding models using ColGREP, a late-interaction multi-vector retrieval tool that combines grep-style features with multi-vector search, then returns code locations and content directly to the main agent. The project was built by LightOn intern @Aarush1003, Amelie Tabatta and colleagues; the blog, model weights, GGUF builds, the colgrep tool and the paper are all public.
Confirmed
- Benchmark setup: in Claude Code, on 52 code-search questions across 13 recent repos (deliberately new to avoid memorization), comparing grep, ColGrep, ColGrep-Agent and the default Balanced mode, totaling 624 benchmark sessions.
- Headline numbers: ColGrep-Agent-2B cut Claude Code API token use by 34.3% and cost by 40%; average turns per question fell from 5.5 to 3.9 and tool calls from 7.1 to 4.0 (grep/find/ls 5.1→2.0, file reads 2.0→0.9), with savings coming from fewer repeated searches and file reads.
- Accuracy: grep baseline 83.3%, pure ColGrep 79.5% (-3.8pt), ColGrep-Agent-2B 80.8% (-2.6pt); the default Balanced mode combining direct semantic search with the local agent matched grep at 83.3% while cutting tokens 21% and cost 30%.
- Trade-off: delegating to the local agent is slower—21.6s per question vs 13.0s for grep; Balanced mode 17.7s, trading acceptable latency for cost savings.
- Capability: on adapted SWE-bench Lite and Multi-SWE-bench Flash code-localization evals, file F1 of 76.18 and 62.57 respectively, competitive with open models 10x its size; base model is MiniCPM5-2B with Qwen3-based retrieval distillation, per the paper.
- Integration: the model is integrated into NextPlaid via ColGrep, running locally as a model-in-the-middle search layer.
Why it matters
Coding agents burn a large share of tokens on repeated grepping and file reading. A small local 2B model as a search middle layer delivers major API cost savings with essentially no accuracy loss, runs fully on-device for privacy, and offers a reproducible open-source template for hierarchical "big model orchestrates, small model works" agent architectures.
2026-10-12 ~ 2026-10-14 · 25 related posts
Primary sources
- ColGrep-Agent-2B: a local code-search agent that cuts 34% of API tokens — IgorCarron · 2026-10-12
- Benchmarking Claude Code search tools: grep vs ColGrep on 52 code-search tasks — IgorCarron · 2026-10-12
- ColGrep-Agent cuts Claude Code API tokens 34.3% and cost from 7.3¢ to 4.4¢ per question — IgorCarron · 2026-10-12
- ColGrep-Agent cuts per-question tool calls from 7.1 to 4.0 by searching locally — IgorCarron · 2026-10-12
- LightOn's 2B search agent matches 27B open-source models on adapted SWE-bench evals — IgorCarron · 2026-10-12
- [source] LightOn ships 2B code-search agent ColGrep with model, GGUF and paper — IgorCarron · 2026-10-12
- ColGrep-Agent-2B cuts Claude Code API tokens 34% and costs 40% with local code search — IgorCarron · 2026-10-12
- With ColGrep-Agent, Claude Code drops from 5.5 to 3.9 turns per question — IgorCarron · 2026-10-12
- ColGrep Balanced matches grep accuracy (83.3%) while saving 21% of API tokens — IgorCarron · 2026-10-12
- Local search agents trade latency for savings: ColGrep Balanced cuts cost 30% at 17.7s per question — IgorCarron · 2026-10-12
- 2B-parameter ColGrep-Agent matches 10x larger models: 76.18 file F1 on SWE-bench Lite — IgorCarron · 2026-10-12
- ColGrep-Agent: a 2B-parameter local semantic-search agent matches 10x larger models on code localization — IgorCarron · 2026-10-12
- ColGrep-Agent-2B: open local multi-vector search model built for coding agents — IgorCarron · 2026-10-12
- ColGREP-agent: a local model to stop coding agents wasting tokens on file search — IgorCarron · 2026-10-12
- [source] LightOn's open-source ColGrep-Agent-2B offloads Claude Code, cutting API tokens 34% — IgorCarron · 2026-10-12
- ColGrep-Agent-2B: a 2B local model claims to cut your Claude usage by 34% — antoine_chaffin · 2026-10-14
9 near-duplicate retellings: IgorCarron · IgorCarron · IgorCarron · IgorCarron · lmoroney · lmoroney · IgorCarron · IgorCarron · IgorCarron