News for hackers. Stuff that matters.
Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by marcoaapfortes on Tuesday January 06, 2026 @08:48AM (#46512186)
Author here!

Some context: I published this 48 hours ago and it was auto-listed on MCPMarket (the MCP tools directory). Got 700+ organic downloads with zero marketing—developers were actively searching for exactly this solution.

The "Git Accelerator" optimization story:

Initially used a file walker that took 6.6s on Chromium. Profiling showed 90% was filesystem I/O. The fix: git ls-files returns 480k paths in ~200ms. Added smart heuristics for untracked files (only scan dirs <50k files), bringing total to 0.46s.

Why this matters: Agents can't wait 10 seconds for search. Sub-500ms makes it feel instant, changing how they explore codebases.

Installation: • Cursor: npx mantic.sh@latest • VS Code: npx mantic.sh@latest • CLI: npm i -g mantic.sh

Limitations: Mantic is optimized for precise queries ("find stripe webhook") where structure matters. For fuzzy exploratory search, traditional embeddings may still be better. Curious if HN has ideas for hybrid approaches.

Happy to answer questions!

Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by oooyay on Tuesday January 06, 2026 @03:40PM (#46518365)
Hello! Cool tool, I'm going to give it a try on my personal assistant. The vector DB prices look a bit cynical to me, even incredible. Do you think you could break down how you arrived at the cost estimation both for competing vector DBs and Mantic? For example, I use Weaviate at the moment and I don't come close to this cost even at a years perspective with a generous amount of usage from multiple users (~60)
Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by marcoaapfortes on Tuesday January 06, 2026 @04:02PM (#46518682)
Thanks for the kind words and for giving Mantic.sh a spin, excited to hear how it works for your personal assistant!

The cost estimates were rough illustrations for high-usage cloud setups (100 devs × 100 searches/day = ~3.65M queries/year):

Vector embeddings: ~$0.003/query (OpenAI embeddings + managed DB like Pinecone) → $10,950/yr Sourcegraph: Older Enterprise rate (~$91/user/mo) → $109k/yr Mantic: $0 (local, no APIs/DBs)

You're spot on—these are high-end, Weaviate (esp. self-hosted/compressed) can be way cheaper for moderate use like your ~60 users.

I leaned toward worst-case managed pricing to highlight the "no ongoing cost" upside.

Let me know how the trial feels!

Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by raylad on Tuesday January 06, 2026 @03:49PM (#46518482)
MANTIC_IGNORE_PATTERNS seems not to be implemented, or am I missing something?
Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by marcoaapfortes on Tuesday January 06, 2026 @04:30PM (#46519097)
You're absolutely right, it wasn't implemented, just documented. Thanks for catching that!

I just shipped v1.0.13 (literally 5 minutes ago) that implements all three environment variables:

• MANTIC_IGNORE_PATTERNS - Custom glob patterns to exclude files • MANTIC_MAX_FILES - Limit number of files returned • MANTIC_TIMEOUT - Search timeout in milliseconds

Also fixed the regex bug that was breaking glob pattern matching.

Appreciate you pointing it out, having users actually test the features is way more valuable than my own QA.