News for hackers. Stuff that matters.
Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by koakuma-chan on Wednesday January 07, 2026 @06:36AM (#46525208)
Where you do think all those "weights" come from? They are all hallucinated. The rest of the code is too.
Re:Show HN: Mantic.sh – Search 480k files in 0.46s without e... by marcoaapfortes on Wednesday January 07, 2026 @07:44AM (#46525792)
I think there’s a misunderstanding of mantic.sh architecture...

The “weights” as you described in Mantic.sh are not neural network weights. They’re deterministic ranking heuristics, similar to what IDE file pickers use. For example, extension weights, path depth penalties, and filename matches. You can see them directly in brain-scorer.ts (EXTENSION_WEIGHTS).

const EXTENSION_WEIGHTS: Record<string, number> = { '.ts': 20, '.tsx': 20, '.js': 15, '.jsx': 15, '.rs': 20, '.go': 20, '.py': 15, '.prisma': 15, '.graphql': 10, '.css': 5, '.json': 5, '.md': 2 };

There’s no LLM involved in the actual search or scoring, it’s a static heuristic engine, not a learned model.

I'd love to have the implementation critiqued on its merits!