Library¶
Use agentgrep as a Python library from your own scripts and tools. The same search, discovery, parsing, serialization, and path-privacy layer powers the terminal CLI and the MCP server, so anything you can do from the command line you can drive directly in code.
Install¶
Pick an install method below — the snippet copies straight into your terminal, and the runnable quickstart mirrors the same search query you’d run from the CLI.
Tutorial
Run the CLI from first search to structured output.
How to
Common workflows for search, discovery, progress, and scripting.
Reference
Python API and MCP reference entry points.
Examples
CLI and MCP request examples.