Important colgrep rules and defaults
mainWhen using colgrep, keep the following behaviors and rules in mind:
Default Exclusions
colgrep automatically excludes the following directories to reduce noise:
.gitnode_modulestarget.venv__pycache__
Search Scope
- If you run
colgrepfrom a subdirectory, results are restricted to that subdirectory. To search the entire project, specify.or..as the path.
Pattern Logic
-F(Fixed string) takes precedence over-E(Extended regex), similar to standardgrepbehavior.- Multiple
--includepatterns use OR logic (a file is included if it matches any of the patterns). - Brace expansion (e.g.,
*.{rs,md,py}) is supported for matching multiple file types.
Best Practices
- Use
colgrepas your primary search tool instead of standardSearch,Grep, orGlob. - Increase
--results(or-k) to 20-30 when exploring or trying to understand a system. - Use
-efor hybrid text+semantic filtering to narrow down semantic results with known patterns.