Skip to content

Noesis

Noesis banner Noesis banner

Beyond search. Toward understanding.

Noesis is an AI-native code-understanding engine. It gives AI agents deep, current knowledge of your codebase through hybrid retrieval (dense embeddings + lexical BM25 + optional reranking), structural AST search, and local-first incremental indexing — with a human dashboard and a file watcher that keep the index fresh.

MCP is the primary interface (agents consume retrieval over MCP); REST is the secondary interface (dashboard + scripting). Everything runs on 127.0.0.1 only: after a one-time asset download, no code, query, or metadata ever leaves the machine (ADR-25).

How it works in 30 seconds

flowchart LR
    A["AI agent"] -->|MCP| S["Noesis service<br/>127.0.0.1:8000"]
    H["Human"] -->|dashboard| S
    S --> IDX["Indexer<br/>discover → hash-diff →<br/>cAST chunk → embed"]
    S --> RET["Retriever<br/>dense + BM25 → RRF<br/>(+ optional rerank)"]
    S --> AST["Structural search<br/>ast-grep on live files"]
    IDX --> Q[("Qdrant<br/>vectors")]
    IDX --> DB[("SQLite<br/>state")]
    RET --> Q
    W["File watcher"] -.->|pending changes| IDX
  1. Register a repo or folder. The indexer discovers indexable files, chunks them along AST boundaries, embeds each chunk locally, and writes vectors to Qdrant plus per-file state to SQLite.
  2. Search — a natural-language query fuses semantic and lexical results (optionally reranked), or an AST pattern matches the live filesystem.
  3. The watcher notices edits and (opt-in) re-embeds only changed files within seconds; the dashboard shows health, freshness, and usage.

Where to go

I want to… Start here
Install and index my first repo Installation → Quickstart
Connect Claude Code or another agent Connecting agents (MCP)
Understand the design Architecture and the other Concepts pages
Look up a tool, route, or config key MCP tools · REST API · Configuration
Read the code-level docs Internals · API reference
See why a decision was made Decision log — every decision carries a rationale
See what shipped Releases

The retrieval channels

Channel Model Role Default
Dense nomic-ai/CodeRankEmbed (768-dim) semantic "what does this mean" always on
Sparse Qdrant/bm25 (native IDF) lexical "find this exact token" always on
Rerank BAAI/bge-reranker-v2-m3 precision reorder of top candidates off (opt-in — measured)

Local-only by construction

Model calls go through two boundaries (core/embedder.py, core/reranker.py); nothing in core/ may make outbound HTTP, and CI greps enforce it. See the security model.