Building NeuroSift: Edge-First AST Engine, Hybrid Code Intelligence & 3D Knowledge Graph
Just wrapped up building and open-sourcing NeuroSift — a local, privacy-first semantic code search daemon and interactive 3D dependency visualizer.
When navigating large codebases, traditional string search is too noisy, and sending proprietary code to third-party cloud LLMs creates latency and privacy risks. NeuroSift solves this completely on-device.
What NeuroSift does under the hood:
Static AST & Complexity Auditing: Traverses Python abstract syntax trees to compute Cyclomatic Complexity and Halstead metrics while detecting code smells in real time.
Knowledge Graph & Blast Radius: Builds directed dependency graphs mapping function calls, module imports, and inheritance trees to instantly calculate downstream impact across the codebase.
Hybrid Search (Dense + BM25): Combines 384-dimensional vector embeddings with an exact-token BM25 lexical engine using Reciprocal Rank Fusion (RRF) for sub-15ms code retrieval.
Dual Interface (TUI & WebGL 3D Visualizer): Features a terminal dashboard and a browser-based D3/WebGL force-directed visualizer with code previews and live telemetry.
Zero Cloud Dependency: Runs 100% locally with 286+ unit tests passing cleanly.
- 2 devlogs
- 11h