ugrep
$ ugrep Community Low Riskugrep combines POSIX grep compatibility with SIMD-accelerated matching, native --json formatting, boolean search operators (--bool), and transparent searching inside .zip, .tar.gz, and .zst archives via -z.
brew install ugrep Local ugrep searches source trees and compressed archives in-process without MCP wrapper latency.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Offers native --json, --csv, --color=never, and non-interactive defaults unless -Q TUI mode is invoked.
- Supports
--json,--color=never, and standard grep exit codes
Strictly read-only local inspection; --ignore-files must be passed explicitly to skip .gitignore paths.
- Read-only search including
-zin-memory archive inspection
Packaged across brew, apt, winget, and source builds on macOS, Linux, and Windows.
- Prebuilt binaries and Homebrew/Linux packages available
Unique -z archive search and --bool logic reduce extra decompression or post-filtering steps.
- Searches compressed archives, PDFs/docs via filters, and fuzzy matches
Actively maintained by Genivia with frequent performance and format releases.
- Active
Genivia/ugreprepository under BSD-3-Clause
Thorough man page and ugrep.com examples, though dense flag surface takes care to navigate.
- Extensive manual and
ugrep --helpdocumentation
Security, Auth & Guardrails
None required; operates purely on local files and archives.
100% free, offline, and open-source (BSD-3-Clause).
# ugrep Agent Rules - Pass `--ignore-files` when searching git repos (not enabled by default like `rg`) and `--color=never` when needed. - Avoid `-Q` interactive TUI mode in headless agent runs.
Agent-Ready Command Recipes
Safe Read-Only Queries
ugrep -R --json --ignore-files "deprecated" src/
Recursively searches src/ honoring .gitignore (--ignore-files) and outputs JSON.
ugrep -z -l "ERROR" logs/archive.tar.gz
Streams compressed archive contents read-only using -z.
Strengths for Agents
- + Native
--jsonoutput and unique-zsupport for searching inside compressed archives. - + Boolean and fuzzy matching capabilities reduce multi-pass grep pipelines.
Caveats & Pitfalls
- ! Does not skip
.gitignoreby default unless--ignore-filesis passed. - ! Interactive
-Qquery TUI mode must never be invoked by headless agents.