Automic VaultAutomic Vault

brew

Install cgrep with Homebrew, pacman

Context-aware grep for source code. Version 9.2.3 via Homebrew; verified 2026-05-12.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cgrep

local Homebrew formula metadata

overview

Package summary

Context-aware grep for source code

Commands and aliases

  • cgrep

history

Project history and usage

CGrep is a Haskell context-aware grep for source code that searches by code, comment, literal, token kind, file type, and semantic patterns.

Project history

The official documentation frames CGrep as an extension of traditional grep for source code, adding language-aware context filters and semantic matching.

Adoption history

The project is distributed through Hackage and from source on GitHub. Official docs document cabal, stack, and source installation paths.

How it is used

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.

Why package nerds care

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.

Timeline

  • v8.0.0: Changelog notes performance improvements and expanded language/configuration support.
  • v9.2: Official docs describe faster token and semantic search, UTF-8 support, and semantic test filtering.
  • v9.2.2: Official homepage documents this release line.

Related projects

  • The official README links CGrep to Hackage for package distribution and GitHub for source development.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.cgreprc~/.cgreprc/etc/cgreprc

executables

Installed executables

CommandKindExposureNote
cgrepcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version9.2.3
manager updated2026-05-12
local dataok
upstreamnot checked
latest detectednot detected

https://awgn.github.io/cgrep/

install metadata

Package metadata

Package keybrew:cgrep
Version9.2.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cgrep
Homepagehttps://awgn.github.io/cgrep/
Repositoryhttps://github.com/awgn/cgrep
Upstream docshttps://awgn.github.io/cgrep
LicenseGPL-2.0-or-later
Source archivehttps://hackage.haskell.org/package/cgrep-9.2.3/cgrep-9.2.3.tar.gz
Last updated2026-05-12T21:36:29Z
Pulseupdated
Dependenciesgmp
Build dependenciescabal-install, ghc, pkgconf
Uses from macOSlibffi
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecgrep
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • aerleon
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

pacman95%

cgrep 8.1.0-129

A context-aware grep for source codes

https://awgn.github.io/cgrep/

sudo pacman -S cgrep
  • License: GPL2
  • Architecture: x86_64
  • 29 dependencies
  • normalized package name match
  • Matched by: Cgrep
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cgrep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment