colgrep

colgrep is a skill for Claude Code from lightonai/next-plaid. It costs 24 tokens per session (1,595 once invoked), scanned A, a copy of install, Apache-2.0.

Repository instructions for using colgrep, a command-line tool that searches code by meaning rather than only exact text.

In plain words
What is it for?
Use them to locate relevant code with natural-language queries or search selected files, folders, and file types.
Why use it?
They give agents a consistent search method and examples for exploring files and narrowing results.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is colgrep "<query>" ./src/parser # Search in specific folder.

Part of the colgrep plugin — 2 skills shipped together

Good fit Use them to locate relevant code with natural-language queries or search selected files, folders, and file types.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lightonai/next-plaid
agentmods
npx agentmods add skills/lightonai/next-plaid/colgrep

Made for: Claude Code.

Or install colgrep, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for colgrep

README.md
[![agentmods](https://agentmods.dev/badge/skills/lightonai/next-plaid/colgrep/github.svg)](https://agentmods.dev/skills/lightonai/next-plaid/colgrep)
Your own site
<a href="https://agentmods.dev/skills/lightonai/next-plaid/colgrep"><img src="https://agentmods.dev/badge/skills/lightonai/next-plaid/colgrep/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for colgrep

Your own site · 80×15
<a href="https://agentmods.dev/skills/lightonai/next-plaid/colgrep"><img src="https://agentmods.dev/badge/skills/lightonai/next-plaid/colgrep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01595
Opus 5.5 $0.00010 $0.00638
Sonnet 5.5 $0.00005 $0.00319
Haiku 4.5 $0.00002 $0.00160

Measured 12d ago against content hash ee48d23dadc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

colgrep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to install — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/colgrep/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This repository has colgrep installed - a semantic code search CLI.

Use colgrep as your PRIMARY search tool instead of Search / Grep / Glob.

Quick Reference

# Basic semantic search
colgrep "<natural language query>" --results 10   # Basic search
colgrep "<query>" -k 25                           # Exploration (more results)
colgrep "<query>" ./src/parser                    # Search in specific folder
colgrep "<query>" ./src/main.rs                   # Search in specific file
colgrep "<query>" ./src/main.rs ./src/lib.rs      # Search in multiple files
colgrep "<query>" ./crate-a ./crate-b             # Search multiple directories

# File filtering
colgrep --include="*.rs" "<query>"                # Include only .rs files
colgrep --include="src/**/*.rs" "<query>"         # Recursive glob pattern
colgrep --include="*.{rs,md}" "<query>"           # Multiple file types (brace expansion)
colgrep --exclude="*.test.ts" "<query>"           # Exclude test files
colgrep --exclude-dir=vendor "<query>"            # Exclude vendor directory

# Pattern-only search (no semantic query needed)
colgrep -e "<pattern>"                            # Search by pattern only
colgrep -e "async fn" --include="*.rs"            # Pattern search with file filter

# Hybrid search (text + semantic)
colgrep -e "<text>" "<semantic query>"            # Hybrid: text + semantic
colgrep -e "<regex>" -E "<semantic query>"        # Hybrid with extended regex (ERE)
colgrep -e "<literal>" -F "<semantic query>"      # Hybrid with fixed string (no regex)
colgrep -e "<word>" -w "<semantic query>"         # Hybrid with whole word match

# Output options
colgrep -l "<query>"                              # List files only
colgrep -c "<query>"                              # Show full function content (50 lines max)
colgrep -n 10 "<query>"                           # Show 10 context lines (default: 6)
colgrep --json "<query>"                          # JSON output

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +5 lines · +24 tokens per session ee48d23dadc9
  2. 1mo ago First seen · 103 lines · 0 tokens per session scan A 2e1ed35d1e2c

Subscribe to this mod's changes

colgrep is a skill published in the GitHub repository lightonai/next-plaid (599 stars, last pushed 11d ago), licensed Apache-2.0. It adds 24 tokens to every session and 1,595 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to install, differing in 11 lines, and is treated as a copy.