A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A structural code search engine for Al agents.
Mantic is a context-aware code search engine that prioritizes relevance over raw speed. After testing across 5 repositories (cal.com, next.js, tensorflow, supabase, chromium), it demonstrates superior result quality compared to grep/ripgrep, despite some trade-offs in speed for very large codebases.
Overall Assessment: 4/5 - Excellent for AI agents, good for developers, needs speed optimization for 100K+ file repos.
Enterprise-Grade Context Infrastructure
transformers.js) to find "conceptually relevant" code even without exact keyword matches.
mantic "verify user" --semanticmantic goto UserService returns the exact line number across your entire monorepo.mantic references handleLogin finds every usage, respecting .gitignore..mantic/search-patterns.json) and can be committed to git to share knowledge across your team.Performance Update: v1.0.25 is ~2x faster than previous versions, scanning Chromium (481K files) in <2 seconds.
Tested on 481K files (Chromium) with 100% multi-repo accuracy.
See the CHANGELOG for detailed release notes.
Mantic is an infrastructure layer designed to remove unnecessary context retrieval overhead for AI agents. It infers intent from file structure and metadata rather than brute-force reading content, enabling retrieval speeds faster than human reaction time.
For a team of 100 developers performing 100 searches per day (approx. 3M searches/year):
| Tool | Annual Cost (Est.) | Per-Search Cost | Privacy |
|---|---|---|---|
| Mantic | $0 | $0 | Local-First |
| Vector Embeddings (DIY) | $1,680 - $10,950* | $0.0005 - $0.003 | Cloud |
| SaaS Alternatives | $46,800+ | $0.015+ | Cloud |
Note: Mantic costs are zero. Vector/SaaS costs are estimates based on standard managed infrastructure (e.g. Pinecone/Weaviate managed pods + compute) or per-seat Enterprise licensing (e.g. GitHub Copilot Enterprise).
| Repository | Files | Query | Mantic v1.0.25 | ripgrep | fzf | Verdict |
|---|---|---|---|---|---|---|
| cal.com | 9.7K | "stripe payment" | 0.288s | 0.121s | 0.534s | Fast |
| next.js | 25K | "router server" | 0.440s | 0.034s | 0.049s | Fast |
| tensorflow | 35K | "gpu" | 0.550s | 0.022s | N/A | Fast |
| chromium | 481K | "ScriptController" | 1.961s | 0.380s | 0.336s | <2s (Massive) |
Speed Verdict:
"router server" in next.jspackages/next/src/server/lib/router-server.ts (Score: 220)"ScriptController" in chromiumscript_controller.h, script_controller.cc (Score: 200)script.*controller"gpu" in tensorflowtensorflow/lite/delegates/gpu/"blink renderer core dom" in chromiumthird_party/blink/renderer/core/dom/README.md| Feature | Mantic | ripgrep | ag | fzf |
|---|---|---|---|---|
| Text Search Speed | 2-10x slower | Fastest | Slow (large repos) | Very Fast |
| Relevance Ranking | Excellent | None | None | Basic |
| Path Structure Awareness | Perfect | None | None | Partial |
| CamelCase Detection | Yes | No | No | No |
| Exact Filename Matching | Yes | No | No | Yes |
| Multi-Word Queries | Semantic | Regex needed | Regex needed | AND logic |
| Go to Definition | Yes (Cross-Repo) | No | No | No |
| Find References | Yes | No | No | No |
| Impact Analysis | Yes | No | No | No |
| Zero-Query Mode | Yes | No | No | No |
Quick Start (no installation required):
npx mantic.sh@latest "your search query"
New Commands:
# Semantic Search (Neural Reranking)
npx mantic.sh@latest "verify user identity" --semantic
# Go to Definition
npx mantic.sh@latest goto "UserService"
# Find References
npx mantic.sh@latest references "handleLogin"
From Source:
git clone https://github.com/marcoaapfortes/Mantic.sh.git
cd Mantic.sh
npm install
npm run build
npm link
Mantic works as an MCP (Model Context Protocol) server for Claude Desktop, Cursor, VS Code, and other MCP-compatible tools.
One-Click Install:
Manual Configuration (for Claude Desktop or other MCP clients):
Add this to your MCP settings file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"mantic": {
"command": "npx",
"args": ["-y", "mantic.sh@latest", "server"]
}
}
}
Find files matching your intent:
mantic "stripe payment integration"
Returns JSON with ranked files, confidence scores, and token estimates.
Zero-Query Mode (proactive context):
mantic ""
# Shows modified files, related dependencies, impact analysis
Context Carryover (session mode):
mantic "auth logic" --session my-task
# Previously viewed files get +150 boost
Impact Analysis:
mantic "payment processing" --impact
# Shows blast radius and dependents
### Session Management (CLI)
You can manage sessions directly from the terminal to persist context across multiple runs:
```bash
# Start a named session with an intent
mantic session start my-feature --intent "implement payment webhook"
# List all active sessions
mantic session list
# Get detailed info (viewed files, query history)
mantic session info <sessionId>
# End a session
mantic session end <sessionId>
### CLI Options
```bash
mantic <query> [options]
Options:
--code Only search code files (.ts, .js, etc)
--config Only search config files
--test Only search test files
--json Output as JSON (default, includes metadata)
--files Output as newline-separated file paths
--markdown Pretty terminal output
--impact Include dependency analysis and blast radius
--session <id> Use session for context carryover
--path <dir> Restrict search to specific directory
--include-generated Include generated files (.lock, dist/, etc)
--quiet, -q Minimal output mode
--semantic Enable neural reranking (slower, but "smarter")
Code Intelligence Commands:
mantic goto <symbol> # Find definition of a symbol
mantic references <symbol> # Find all usages of a symbol
When using Mantic through MCP (Claude Desktop, Cursor):
search_files - Primary search (supports semantic: true for neural reranking)get_definition - Go to definition of a symbolfind_references - Find usages of a symbolget_context - Zero-query mode for proactive contextsession_start/end - Manage coding sessionssession_record_view - Track viewed filessession_list/info - View session historyanalyze_intent - Understand query intentWant Cursor or Claude to use Mantic automatically?
mantic to find context before writing code.User Query
↓
Intent Analyzer (categorizes: UI/backend/auth/etc)
↓
Brain Scorer (ranks files using metadata)
↓
File Classifier (filters by type: code/config/test)
↓
Impact Analyzer (calculates blast radius)
↓
Output (JSON/Files/Markdown/MCP)
git ls-files for tracked files (significantly faster than traversals)packages/features/payments indicates high signalstripe.service.ts > stripe.txt.service.ts boosted over .test.tsindex.ts or page.tsx ranked lowerMantic works out of the box with zero configuration for most projects.
MANTIC_MAX_FILES=5000 # Maximum files to scan
MANTIC_TIMEOUT=30000 # Search timeout in ms (default: 30000)
MANTIC_IGNORE_PATTERNS=... # Custom glob patterns to ignore
MANTIC_FUNCTION_SCAN_LIMIT=30 # Top files to scan for function names (default: dynamic, max 50)
Mantic.sh is Dual Licensed to support both open access and sustainable development.
Ideal for: Individuals, Internal Business Tools, Open Source Projects.
Ideal for: Commercial IDEs, SaaS Platforms, Proprietary Products.
Pricing:
Enforcement: All derivatives must comply with AGPL-3.0 unless under a commercial license. Unauthorized copying or rewrites may violate copyright laws.
Contributing: To maintain the dual-license model, all contributors must sign a Contributor License Agreement (CLA) granting relicensing rights.
Contact: license@mantic.sh
See LICENSE for the full AGPL-3.0 terms.
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba
MCP server integration for DaVinci Resolve Studio
A trilingual (繁中 / English / 简中) learning roadmap for agentic AI: from LLM basics to multi-agent systems, with 240+ cura