Pgr
Enhances code search for AI agents by prioritizing relevant results and shaping output to optimize decision-making.
Pgr is an experimental, stateless code-search server designed to optimize repository exploration for coding agents. It wraps local `ripgrep` searches, then applies sophisticated ranking and output shaping to surface critical implementation files, de-prioritize less relevant matches like tests, and format results for efficient agent comprehension. This approach aims to reduce agent thrashing, improve initial query quality, and accelerate the identification of relevant code, supporting research into more effective agentic search strategies.
主な機能
01Stateless operation with no indexing or background daemon required
02Leverages local `ripgrep` for fast content search and file listing
03Provides MCP tools for `search_code`, `read_code`, `find_files`, and `list_dir`
046 GitHub stars
05Agent-centric code search ranking and result shaping
06Includes public datasets and benchmarks for research and evaluation
ユースケース
01Conducting research on agentic code search, ranking, and output shaping strategies
02Integrating enhanced code search capabilities into MCP clients for AI agents
03Benchmarking the effectiveness of different code search methodologies for agent workflows