47thtechcorner

RayCodes ColGrep — Development skill for Claude Code

Development community

ColGrep Agent 2B: Cut Claude Code API Costs by 40% Locally.

How to install RayCodes ColGrep

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 47thtechcorner/RayCodes_ColGrep and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What RayCodes ColGrep does

ColGrep Agent 2B: Cut Claude Code API Costs by 40% Locally! Intelligent local code search assistant cutting tokens and costs.

Alternatives in Development

  • Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
  • Claude Instructions For Local Skill Loading — This file tells Claude how to load skills locally 845 ★
  • Cost Xray — See what Claude Code and Codex actually send to the API — and what each part costs 586 ★

README

⚡ ColGrep Agent Code Search

Intelligent local code-search assistant powered by ColGrep-Agent-2B that cuts cloud coding agent tokens by 34% through local code localization.


Step 1: Input Step 2: AI Action Step 3: Result
Natural language code query Semantic search & read-only analysis Pinpoint files and exact line ranges

🌟 Key Superpowers

  • ⚡ Local Code Localization: Pinpoints exact file paths and line ranges using semantic code understanding.
  • 📉 Significant Token Savings: Offloads exploratory codebase searches, cutting API tokens by 34%.
  • 💰 Lower Inference Costs: Reduces cache-aware API expenses by up to 40% on complex repositories.
  • 🔒 Private Repository Search: Operates directly on your machine without transmitting source code to external servers.
  • 🔌 Seamless Integration: Ready-to-use hooks for Claude Code, Codex, and OpenCode environments.

🛠️ Tech Stack & Requirements

  • Model: ColGrep-Agent-2B (MiniCPM5-2B base architecture, Apache-2.0)
  • Local Engine: ColGrep (NextPlaid multi-vector late-interaction retrieval)
  • Inference Runtime: llama.cpp / GGUF (Metal, Vulkan, or CPU)
  • Language & Environment: Python 3.10+ / Standalone CLI binary

📋 File Explanation

  • main.py: Core application script executing semantic search queries, analyzing repository files, and producing structured code location summaries.
  • Modelfile: Ollama model manifest configured to register the local colgrep-agent-2B-Q8_0.gguf checkpoint.
  • requirements.txt: Python package requirements.

🚀 Quick Setup & Installation

1. Download Model Checkpoint

Download the off