lightonai / colgrep-agent-2B-GGUF

huggingface.co
Total runs: 765
24-hour runs: 0
7-day runs: 349
30-day runs: 349
Model's Last Updated: October 12 2026
text-generation

Introduction of colgrep-agent-2B-GGUF

Model Details of colgrep-agent-2B-GGUF

ColGrep Agent 2B

The model behind colgrep --agent .

ColGrep Agent is a small code-localization agent. Give it a question about a repository ("where are retries configured?", "why does the export crash on empty files?") and it searches the code with colgrep (semantic + regex search), reads the candidate files through a read-only terminal, and returns the files and line ranges that answer the question. It runs locally, on the GPU when there is one, and works as a search sub-agent for a larger coding agent.

colgrep: a semantic search, then colgrep --agent

Quick start
1. Install colgrep and the model

Homebrew (macOS / Linux):

brew install lightonai/tap/colgrep && colgrep --install-agent

Shell installer (macOS / Linux):

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.sh | sh && "${CARGO_HOME:-$HOME/.cargo}/bin/colgrep" --install-agent

Windows (PowerShell):

irm https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.ps1 | iex
colgrep --install-agent

Cargo (from source):

cargo install colgrep && colgrep --install-agent

colgrep --install-agent downloads colgrep-agent-2B-Q8_0.gguf from this repository (one time, 2.5 GB), checks that it loads, and prepares the prompt cache so the first question is as fast as the next ones. Nothing else is needed: no Python, no server, no API key.

2. Index a repository
cd /path/to/project
colgrep init

After the first init , every search notices changed files and updates the index before answering.

3. Ask a question
colgrep --agent "where does the agent decide which GPU backend llama.cpp uses"

The tool calls and answer of a real session on colgrep's own source code (M3 Pro, Metal; each call's result line is left out):

$ colgrep --agent "where does the agent decide which GPU backend llama.cpp uses"
◆ colgrep agent  · colgrep-agent-2B-Q8_0.gguf (GPU)
❯ where does the agent decide which GPU backend llama.cpp uses

  ● colgrep   llama.cpp GPU backend
  ● terminal  cat -n agent/src/llm/llama.rs
  ● terminal  cat -n agent/src/llm/server.rs
  ● terminal  cat -n agent/src/engine.rs
  ● terminal  cat -n agent/src/llm/llama.rs | sed -n '80,150p'
  ● terminal  cat -n agent/src/llm/server.rs | sed -n '65,130p'
  ● colgrep   find_gpu
  ● terminal  cat -n agent/src/llm/server.rs | sed -n '1,100p'
  ● finish    agent/src/llm/server.rs:103-105, agent/src/llm/server.rs:65-69, …

✓ 5 locations · 9 turns · 2 searches · 6 terminal commands · 21.7s

agent/src/llm/server.rs:103-105
agent/src/llm/server.rs:65-69
agent/src/llm/llama.rs:101-101
agent/src/llm/llama.rs:115-116
agent/src/engine.rs:57-67

Progress goes to stderr, and only on a terminal; stdout carries just the file:start-end locations, so the output pipes cleanly into other tools.

More ways to ask:

colgrep --agent "crash when the config file is empty" ./backend -c   # scope to a folder, print the lines
colgrep --agent --json "where are retries configured"              # JSON, for scripts and agents
Use it from a coding agent

colgrep installs hooks and skills for coding agents:

colgrep --install-claude-code   # Claude Code
colgrep --install-codex         # Codex
colgrep --install-opencode      # OpenCode

Once the model is installed, the Claude Code hooks tell the coding agent about colgrep --agent , so it can hand open-ended "where is X handled?" questions to this model and get back exact locations, instead of spending its own context on exploratory searches and file reads.

What happens during a question
  • Read-only. The model's terminal is interpreted inside colgrep: no process is spawned and no file is opened for writing. cat , head , tail , sed -n , grep , find , wc , pipes and globs work; redirections, sed -i , rm , interpreters and git are refused. Paths are confined to the repository.
  • Reproducible. The sampling seed is fixed: the same question on the same repository state gives the same answer, run after run ( colgrep settings --agent-seed N draws other samples).
  • Local GPU inference. On Apple Silicon, llama.cpp is built into colgrep and runs on Metal. On Linux, Windows and Intel Macs, colgrep downloads ggml-org's official llama.cpp build (pinned, SHA-256 verified) and uses the GPU through Vulkan (NVIDIA, AMD, Intel) when a driver is installed, or the CPU otherwise.

Measured on an M3 Pro with the Q8_0 file, for typical 6–10 turn sessions: about 20 s per question on Metal and 75–90 s on CPU only, with 3–4 GB of peak memory.

Files

colgrep downloads Q8_0 by default. To use another quantization, for a smaller download or faster CPU-only inference, select it with colgrep settings --agent-model-file colgrep-agent-2B-Q4_K_M.gguf . Only Q8_0 has been evaluated through colgrep; the smaller quantizations may localize code less accurately.

Quantization Size SHA-256 Notes
Q4_0 1,490,355,392 bytes 919c11f974b636537cc74a79d544acc73c02ec03c80fbfb0e5c3c7e3a6991ff4 Smallest
Q4_K_M 1,561,318,592 bytes 65cb965a195181694fea1310c6b7b1351f7c9d5c4d602d1e1ce8d1a170fe1e06 Size/quality balance
Q5_K_M 1,808,061,632 bytes 7b73895d00d35c370e9aa7812abb35960fcab2d9caaa631ef6b48efe02159d3b Higher quality
Q6_K 2,070,226,112 bytes 20bd8535d564c4d30fe3addffe12a6ac80ecee2fa6c4f31e61150e378d4e659e Very high quality
Q8_0 2,679,710,912 bytes f238da91e6e95b1de1aaf7fefdacd6db8eb47edb60ee038d3a6a6642e9a97ccf Near-lossless; colgrep's default
BF16 5,039,006,912 bytes c9cfcc3eb3940086e37f7d48d3d9a378cdd69b77ad2d6e51c0e0026c235aa339 Native source precision
F16 5,039,006,912 bytes 9a5dde8bb690fa073899a853eeaec811c39aa36c64d1914a2ce339649c1cc11e Full 16-bit compatibility

The model is a 2B-parameter, 42-layer Llama-family model with a 131,072-token context window. The tokenizer and chat template are embedded in every file.

Serving the model on a GPU server

colgrep can send the agent's prompts to any OpenAI-compatible server through /v1/completions , so no server-side tool parser is needed:

# llama.cpp: --special keeps the tool-call tokens in the output
llama-server -m colgrep-agent-2B-Q8_0.gguf --port 8000 --special
colgrep settings --agent-endpoint http://localhost:8000/v1

colgrep settings --agent-endpoint default switches back to the local model.

Evaluation
Metric SWE-bench Lite Multi-SWE-bench Flash
File F1 (%) 76.18 ± 0.93 62.57 ± 0.62
Line F1 (%) 19.92 ± 0.95 15.93 ± 0.76
Avg. assistant turns (including finish) 6.19 6.75
Avg. colgrep calls 2.26 2.41
Avg. terminal calls 2.94 3.34
Avg. generated tokens per trajectory 314 307
Avg. final context tokens 5,924 6,809

F1 values are mean ± 95% confidence interval across five evaluation seeds (300 tasks per benchmark), using strict predictions without rescue.

Runs of lightonai colgrep-agent-2B-GGUF on huggingface.co

765
Total runs
0
24-hour runs
349
3-day runs
349
7-day runs
349
30-day runs

More Information About colgrep-agent-2B-GGUF huggingface.co Model

More colgrep-agent-2B-GGUF license Visit here:

https://choosealicense.com/licenses/apache-2.0

colgrep-agent-2B-GGUF huggingface.co

colgrep-agent-2B-GGUF huggingface.co is an AI model on huggingface.co that provides colgrep-agent-2B-GGUF's model effect (), which can be used instantly with this lightonai colgrep-agent-2B-GGUF model. huggingface.co supports a free trial of the colgrep-agent-2B-GGUF model, and also provides paid use of the colgrep-agent-2B-GGUF. Support call colgrep-agent-2B-GGUF model through api, including Node.js, Python, http.

colgrep-agent-2B-GGUF huggingface.co Url

https://huggingface.co/lightonai/colgrep-agent-2B-GGUF

lightonai colgrep-agent-2B-GGUF online free

colgrep-agent-2B-GGUF huggingface.co is an online trial and call api platform, which integrates colgrep-agent-2B-GGUF's modeling effects, including api services, and provides a free online trial of colgrep-agent-2B-GGUF, you can try colgrep-agent-2B-GGUF online for free by clicking the link below.

lightonai colgrep-agent-2B-GGUF online free url in huggingface.co:

https://huggingface.co/lightonai/colgrep-agent-2B-GGUF

colgrep-agent-2B-GGUF install

colgrep-agent-2B-GGUF is an open source model from GitHub that offers a free installation service, and any user can find colgrep-agent-2B-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of colgrep-agent-2B-GGUF install, users can directly use colgrep-agent-2B-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

colgrep-agent-2B-GGUF install url in huggingface.co:

https://huggingface.co/lightonai/colgrep-agent-2B-GGUF

Url of colgrep-agent-2B-GGUF

colgrep-agent-2B-GGUF huggingface.co Url

Provider of colgrep-agent-2B-GGUF huggingface.co

lightonai
ORGANIZATIONS

Other API from lightonai

huggingface.co

Total runs: 9.8K
Run Growth: 9.2K
Growth Rate: 93.65%
Updated:April 21 2026
huggingface.co

Total runs: 9.1K
Run Growth: -1.7K
Growth Rate: -18.83%
Updated:July 06 2026
huggingface.co

Total runs: 3.0K
Run Growth: 786
Growth Rate: 26.44%
Updated:February 10 2025
huggingface.co

Total runs: 1.7K
Run Growth: -2.4K
Growth Rate: -137.62%
Updated:November 13 2024
huggingface.co

Total runs: 1.6K
Run Growth: -2.0K
Growth Rate: -128.74%
Updated:December 10 2024
huggingface.co

Total runs: 1.4K
Run Growth: -855
Growth Rate: -58.97%
Updated:May 19 2022
huggingface.co

Total runs: 689
Run Growth: -195
Growth Rate: -28.30%
Updated:August 17 2026
huggingface.co

Total runs: 637
Run Growth: 616
Growth Rate: 96.70%
Updated:January 06 2025
huggingface.co

Total runs: 27
Run Growth: -5
Growth Rate: -18.52%
Updated:November 07 2024
huggingface.co

Total runs: 10
Run Growth: -1
Growth Rate: -10.00%
Updated:February 18 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2023