macOS
brew install cgreplocal Homebrew formula metadata
brew
Context-aware grep for source code. Version 9.2.3 via Homebrew; verified 2026-05-12.
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 | cli | global executable |
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 |
| Package manager page | https://formulae.brew.sh/formula/cgrep |
| Homepage | https://awgn.github.io/cgrep/ |
| Repository | https://github.com/awgn/cgrep |
| Upstream docs | https://awgn.github.io/cgrep |
| License | GPL-2.0-or-later |
| Source archive | https://hackage.haskell.org/package/cgrep-9.2.3/cgrep-9.2.3.tar.gz |
| Last updated | 2026-05-12T21:36:29Z |
| Pulse | updated |
| Dependencies | gmp |
| Build dependencies | cabal-install, ghc, pkgconf |
| Uses from macOS | libffi |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cgrep |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cgrep 8.1.0-129
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.