Skip to content
Agentmart
Submit a tool

colgrep

Search code by meaning with colgrep instead of literal grep.

Skill by thunter009

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/thunter009-colgrep

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search code by meaning with colgrep instead of literal grep.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/colgrep

Tools it pre-approves 1

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash(colgrep:*)

What's inside

Skill name
colgrep
Description
Search code by meaning with colgrep instead of literal grep.
License
MIT
Allowed tools
Bash(colgrep:*)
Instructions
80 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Semantic Code Search

`colgrep` is installed at `~/.cargo/bin/colgrep` — a semantic code search CLI using ColBERT embeddings.

**Use `colgrep` as your PRIMARY search tool** instead of Grep/Glob for code search.

## Quick Reference

```bash
# 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>" ./crate-a ./crate-b             # Search multiple directories

# File filtering
colgrep --include="*.rs" "<query>"                # Include only .rs files
colgrep --include="*.{rs,md,py}" "<query>"        # Multiple file types
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
colgrep -e "<literal>" -F "<semantic query>"      # Hybrid with fixed string
colgrep -e "<word>" -w "<semantic query>"         # Hybrid with whole word match

# Output options
colgrep -l "<query>"                              # List files only
colgrep -n 6 "<query>"                            # Show N context lines
colgrep -c "<query>"                              # Show full function/class content
colgrep --json "<query>"                          # JSON output for scripting

# Index management
colgrep init /path/to/project                     # Build/update index
colgrep init -y                                   # Auto-confirm large projects
colgrep status                                    # Check index health
colgrep clear                                     # Clear current project index
```

## When to Use What

| Task                            | Tool                                         |
| ------------------------------- | -------------------------------------------- |
| Find code by intent/description | `colgrep "query" -k 10`                      |
| Explore/understand a system     | `colgrep "query" -k 25`                      |
| Search by pattern only          | `colgrep -e "pattern"`                       |
| Know text exists, need context  | `colgrep -e "text" "semantic query"`         |
| Search specific file type       | `colgrep --include="*.ext" "query"`          |
| Search multiple directories     | `colgrep "query" ./src ./lib ./api`          |
| Exact string/regex match only   | Built-in `Grep` tool                         |
| Find files by name              | Built-in `Glob` tool                         |

## Key Rules

1. **Default to `colgrep`** for any code search task
2. **Auto-indexes on first search** — no need to `colgrep init` manually (but init is faster for large repos)
3. **Increase `-k`** when exploring (20-30 results)
4. **Use `-e`** for hybrid text+semantic filtering
5. **Use `--exclude-dir`** to filter noise (tests, vendors, generated code)
6. **Subagents should also use `colgrep`** — when spawning Task/Explore agents, instruct them to use colgrep
7. **Fall back to Grep** only for exact literal/regex matches where semantic search adds no value

## Why Semantic Search Matters

Keyword grep misses code that implements a concept without using the expected words. Example:

**Task:** "Find all authentication logic"
- `grep -rl "auth\|jwt\|login\|password"` finds files with those literal strings
- But misses: TOTP/2FA in `crypto_utils.py`, role-based access in `decorators.py` (`require_role`), RBAC policies in `policies.py` (`has_permission`, `enforce_authorization`)
- `colgrep "authentication and authorization logic" -k 15` finds ALL of them because it understands that TOTP, role guards, and permission checks are auth concepts

When searching for a concept (not a literal string), always use colgrep.

From thunter009/skills, MIT.

More from thunter009/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 14, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from thunter009

Cite this page

colgrep skill. Agent Mart. https://agentmart.dev/skills/thunter009-colgrep (last updated 2026-10-24)