macOS
brew install cgreplocal Homebrew formula metadata
brew / rank 6016
Context-aware grep for source code. Version 9.2.3 via Homebrew; verified 2026-07-22. Also installable with pacman: sudo pacman -S cgrep.
install
brew install cgreplocal Homebrew formula metadata
sudo pacman -S cgrepArch Linux sync databases · cgrep · source: geo.mirror.pkgbuild.com
overview
Context-aware grep for source code
history
CGrep is a Haskell context-aware grep for source code that searches by code, comment, literal, token kind, file type, and semantic patterns.
The official documentation frames CGrep as an extension of traditional grep for source code, adding language-aware context filters and semantic matching.
The project is distributed through Hackage and from source on GitHub. Official docs document cabal, stack, and source installation paths.
CGrep is used to search source trees while limiting matches to code, comments, string literals, identifiers, native types, keywords, numbers, operators, file kinds, languages, or test/non-test code.
CGrep is interesting to package maintainers because it sits in the family of grep replacements but uses language parsing and Haskell packaging rather than plain byte or regex scanning alone.
security posture
No matching local secret-handling manifest was found for cgrep. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.cgreprc~/.cgreprc/etc/cgreprcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cgrep | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:cgrep |
|---|---|
| Version | 9.2.3 |
| Package manager | Homebrew |
| Homepage | https://awgn.github.io/cgrep/ |
| Repository | https://github.com/awgn/cgrep |
| Last updated | 2026-07-22T03:24:51Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cgrep 8.1.0-152
A context-aware grep for source codes
sudo pacman -S cgrepsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.