Data flows¶
These diagrams show how data moves through a CodeNavi install: from your files to the index, from a question to an answer, and out of your network. Each section has one diagram. For the list of outbound connections with every field they send, see What CodeNavi sends.
Overview¶
Every client uses one port. The request handlers drive two engines, search and the indexer. Both use the same GPU models and the same local stores.
/mcp/{codebase}, then the bearer token, then the licence. Chat is served by POST /chat, the web UI and the CLI. It is not an MCP tool.Indexing¶
The scanner runs before the embedder. A detected secret is replaced before it can reach the vector store or a client.
- The walk follows
INCLUDE_EXTENSIONS,EXCLUDE_DIRS,.gitignoreandMAX_FILE_SIZE. It does not read.dockerignore. See Configuration. - Languages without a grammar (SQL, templates, YAML, Markdown and others) are split by lines or landmarks. See Supported languages.
- The rules are in
data/secret_rules.json. At start-up, new rules from the image are added to that file and your edits stay.
Search¶
semantic_search uses two models and no LLM. Your agent gets ranked chunks with citations and writes the answer itself.
find_callers,impact_analysisanddiff_impactdo not use the GPU. They read the call graph that indexing built.grep_searchsearches the redacted text by default (since 1.3.76).
What leaves your network¶
By default one connection leaves your network: the daily update check. Every other outbound path starts only when you configure it.
What CodeNavi sends lists what each connection sends and how to turn it off. Network & authentication lists the ports CodeNavi listens on.
Updates¶
The connected update and the air-gapped update use the same signature check. Both stop if the signature cannot be verified.
--allow-unsigned, and the updater prints a warning. The daily check downloads a renewed licence key once and checks its signature before it installs it.See Updating CodeNavi and Air-gapped install.
Logs and metrics¶
Logs stay on disk in the install directory. A value that was redacted at index time stays redacted in the logs.
GET /metrics on port 8765, behind the token. /health always answers, so a client without the token can see that the server is up. The version and licence details need the token.See Observability.