Discover and explore top open-source AI tools and projects—updated daily.
marcoaapfortesStructural code search engine for AI agents
New!
Top 71.3% on SourcePulse
Mantic.sh is a structural code search engine designed to drastically reduce context retrieval overhead for AI agents. It addresses the challenge of efficiently searching massive codebases by providing sub-500ms file ranking without relying on embeddings, vector databases, or external dependencies. This makes it ideal for AI agents, developers using AI coding assistants, and teams working with large code repositories, offering significant speed improvements, reduced token usage, and enhanced privacy through local execution.
How It Works
Mantic.sh employs a unique approach by inferring user intent from file structure and metadata rather than performing brute-force content analysis. Its architecture includes an "Intent Analyzer" to categorize search queries, a "Brain Scorer" that ranks files based on path relevance, filename matching, and business logic awareness, and a "File Classifier" to filter by file type. This method enables retrieval speeds consistently under 500ms, even for codebases with hundreds of thousands of files, and reduces token consumption by up to 63% by pre-filtering irrelevant files.
Quick Start & Requirements
For immediate use, run the CLI directly with npx mantic.sh@latest "your search query". Installation from source involves cloning the repository, running npm install, npm run build, and npm link. Mantic.sh also functions as an MCP (Model Context Protocol) server for tools like Claude Desktop and Cursor, installable via IDE extensions or manual configuration. No external dependencies like API keys or databases are required, though Node.js is implicitly needed.
Highlighted Details
Maintenance & Community
The project includes a CHANGELOG detailing release notes and requires contributors to sign a Contributor License Agreement (CLA), indicating structured development and a commitment to its licensing model. Specific community channels like Discord or Slack are not detailed in the provided README.
Licensing & Compatibility
Mantic.sh is dual-licensed:
Limitations & Caveats
The AGPL-3.0 license imposes significant copyleft obligations on distributed applications, which may necessitate a commercial license for proprietary integrations. While designed for speed, performance on extremely large or complex codebases may still warrant testing. Agent Rules for automatic Mantic usage are specified for IDEs only.
2 days ago
Inactive
yetone