Discover and explore top open-source AI tools and projects—updated daily.
yoanbernabeuSemantic code search and call graph analysis for AI agents
New!
Top 43.4% on SourcePulse
grepai is a CLI-native tool that provides semantic code search and call graph analysis, designed to offer privacy-first, high-quality context to AI coding assistants. It addresses the limitations of traditional text-based search by indexing code meaning via vector embeddings, enabling natural language queries to find conceptually related code, thereby improving AI agent efficiency and developer productivity.
How It Works
grepai indexes code semantics using vector embeddings, allowing users to query codebases with natural language descriptions of functionality, rather than relying on exact keywords or regex patterns. It also analyzes code structure to generate call graphs, identifying function callers and callees. This approach yields more relevant results than traditional search tools, providing richer context for AI agents and simplifying complex code exploration.
Quick Start & Requirements
curl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | sh or download from releases.grepai init, start indexing with grepai watch, search semantically with grepai search "query", or trace call graphs with grepai trace callers "function".Highlighted Details
grepai agent-setup.grepai_search, grepai_trace_callers, etc., as native tools for AI agents..grepai/config.yaml.Maintenance & Community
The project appears actively maintained, with a self-update mechanism (grepai update) fetching the latest releases from GitHub. No specific community channels (like Discord/Slack) or notable contributors are mentioned in the provided README.
Licensing & Compatibility
The project is released under the MIT License, which is permissive and generally compatible with commercial use and closed-source linking.
Limitations & Caveats
grepai is a CLI-native tool, which may present a learning curve for users unfamiliar with command-line interfaces. The "fast" trace mode relies on regex, potentially offering less precision than the "precise" (tree-sitter) mode. The effectiveness of semantic search is dependent on the chosen embedding model and its quality.
2 days ago
Inactive
yetone