Learn the product first · reference it second

Satori Docs

Satori is local-first semantic code search and code intelligence for developers and coding agents. Ask a repository question in natural language, let Satori combine semantic + lexical evidence, then follow the result into real owners, structure, relationships, references, and exact source.

Default managed path Potion + BM25 + LateOn + LanceDB · Beta · Linux x64/WSL2 and Linux ARM64 with glibc · no model API key after install
Five-minute path

Install Satori and ask about your repository

You do not need to learn the MCP tools before Satori becomes useful. The normal experience is an agent using those tools for you while you stay focused on the repository question.

1 · INSTALL
npx -y @satori-code/cli@latest install
npx -y @satori-code/cli@latest doctor

Detects Codex, Claude Code, OpenCode, Cursor, VS Code, Windsurf, and Pi. Restart the client after installation.

2 · OPEN A GIT REPO

Satori indexes eligible Git workspaces automatically. Pass --index during installation to index the current Git repository immediately.

3 · ASK
Where is auth refresh handled, what owns it, and what exact implementation should I inspect first?

Ask by behavior when you do not know the filename or symbol yet.

4 · VERIFY search → owner → outline / calls → exact source

Follow bounded evidence rather than opening large files by default.

Mental model

Repository intelligence, bound to one coherent generation.

A Publication is Satori's immutable snapshot of everything it knows about one repository generation. Search, symbols, structure, supported relationships, source checkpoints, and index policy are meant to agree about that same state.

Semanticbehavior by meaning
LexicalBM25 + exact identifiers
Ownerssymbols + structural spans
Relationsqualified navigation evidence
Freshnesssource + runtime compatibility
Sourceexact symbol or bounded lines

Satori is not a code editor, a generic chat-memory service, or a compiler-complete dependency oracle. It is the repository intelligence layer an agent consults before and during implementation work.

Install the MCP Server

Satori runs as an MCP server, so a compatible coding harness gains the repository-intelligence layer without implementing its own parser, symbol index, retrieval stack, freshness model, or call-navigation surface. The CLI installs the managed runtime and client configuration.

Recommended public setup: npx -y @satori-code/cli@latest install, then npx -y @satori-code/cli@latest doctor. No global install is required. The installer auto-detects supported Codex, Claude Code, OpenCode, Cursor, VS Code, Windsurf, and Pi. Antigravity (agy) is opt-in, and --client all configures every supported client. Inside a Git repository, pass --index to index the repository immediately during setup (or --no-index to leave indexing to agent startup). Restart the MCP client after install.

WSL2: inside WSL2, satori install configures the Linux $HOME paths used by terminal agents and Remote-WSL sessions.

Codex

npx -y @satori-code/cli@latest install --client codex

Writes the Satori MCP entry to ~/.codex/config.toml and installs the shared skill to ~/.agents/skills/satori/SKILL.md by default, which Codex loads natively. If the Claude Code install already placed the hook shim on disk, you can reuse it in Codex.

Claude

npx -y @satori-code/cli@latest install --client claude

Writes the Satori MCP entry to ~/.claude.json, links ~/.claude/skills/satori to the shared skill, and adds one read-only SessionStart hook in ~/.claude/settings.json.

OpenCode

npx -y @satori-code/cli@latest install --client opencode

Writes the Satori MCP entry to ~/.config/opencode/opencode.json; OpenCode loads the shared skill natively.

Cursor

npx -y @satori-code/cli@latest install --client cursor

Writes the Satori MCP entry to ~/.cursor/mcp.json.

VS Code

npx -y @satori-code/cli@latest install --client vscode

Writes the Satori MCP JSONC entry under servers.satori in ~/.config/Code/User/mcp.json on Linux (~/Library/Application Support/Code/User/mcp.json on macOS, %APPDATA%\Code\User\mcp.json on Windows).

Windsurf

npx -y @satori-code/cli@latest install --client windsurf

Writes the Satori MCP entry to ~/.codeium/windsurf/mcp_config.json.

Pi

npx -y @satori-code/cli@latest install --client pi

Writes the Satori MCP entry to ~/.pi/agent/mcp.json by default.

Antigravity

npx -y @satori-code/cli@latest install --client agy

Opt-in. Writes the Satori MCP entry to ~/.gemini/config/mcp_config.json and links ~/.gemini/skills/satori to the shared skill.

Use --client all to install every supported client, and uninstall with the same selector to remove only Satori-managed config and guidance. Run npx -y @satori-code/cli@latest doctor to check every supported client's applied runtime without starting an MCP client. The table shows configuration status, profile, embedding provider/model/dimension, reranker, vector store, and whether the values come from the managed launcher or client config. It never prints credentials or local artifact paths. Repository-backed development launchers retain the outside-managed-store warning while still reporting the profile they actually apply.

Test a Repository Build, Then Restore the Published Runtime

From a Satori checkout, the development installer builds and preflights the local Core, MCP, and CLI, then points the stable launcher at that checkout. It does not replace a globally installed published CLI.

pnpm dev:install-local-mcp -- --client opencode --runtime offline --reranker lateon

This selects OpenCode, Potion embeddings, LanceDB, and LateOn. Supported development options are:

  • --client auto|all|opencode|codex|claude|cursor|vscode|windsurf|pi|agy (default: opencode).
  • --runtime offline|voyage; omission preserves the managed selection, or starts offline when no launcher exists.
  • --reranker lateon|voyage|none, available only with the offline runtime.
  • --vector-store lancedb|milvus; offline requires LanceDB and Milvus requires Voyage.
  • --no-build, --home <path>, and --node <path> for existing-build or isolated testing.

Restore OpenCode to the published runtime with:

npx -y @satori-code/cli@latest install --client opencode --runtime offline --reranker lateon
npx -y @satori-code/cli@latest doctor

Restart OpenCode after either switch. If the latest CLI is already installed globally, the equivalent restore command starts with satori install instead of npx -y @satori-code/cli@latest install.

Upgrade Satori

satori upgrade

This updates the globally installed CLI, then stages and verifies that release's exact MCP and Core runtime before switching the stable launcher. Restart running coding agents after a successful runtime upgrade.

If you did not install the CLI globally, run npx -y @satori-code/cli@latest upgrade. Upgrade does not rewrite client configuration, indexes, hooks, or repository profiles.

Satori follows the exact MCP/Core versions declared by the latest CLI package; it does not mix independently selected latest package versions.

Use --profile default|minimal|all-text when the current repository should write or update repo-local satori.toml. This file controls index policy only; it is not a place for API keys, model names, Milvus endpoints, or tokens.

Codex Runtime Env

The installer stores the selected runtime in ~/.satori/bin/satori-mcp.js. The generated ~/.codex/config.toml entry forwards optional credentials and operational overrides; it does not duplicate a second provider/model selection. Install and uninstall commands show a concise summary by default; pass --format json for the complete machine-readable receipt.

Claude Runtime Env

The generated ~/.claude.json entry points Claude at the managed Satori launcher. Fresh installs omit empty mcpServers.satori.env overrides so the MCP process can inherit its host environment. Reinstall preserves existing non-empty Satori env values that Claude already owns.

OpenCode Runtime Env

The generated OpenCode entry writes mcp.satori.environment with {env:VAR} pass-through values. Replace any value with a literal to store it directly in OpenCode.

Startup Model

The installer resolves the package once, writes the runtime under ~/.satori/mcp-runtime/, creates the stable launcher ~/.satori/bin/satori-mcp.js, and points supported clients at that launcher with Node.

Do not use resident npx commands for supported clients; package-manager startup latency is exactly what the installer avoids.

Managed Files

  • Codex config: ~/.codex/config.toml.
  • Shared skill (installed by default; --no-skill skips): ~/.agents/skills/satori/SKILL.md.
  • Claude config and hook: ~/.claude.json and read-only SessionStart hook in ~/.claude/settings.json.
  • Claude skill link: ~/.claude/skills/satori.
  • OpenCode config: ~/.config/opencode/opencode.json.
  • Cursor config: ~/.cursor/mcp.json.
  • VS Code config: ~/.config/Code/User/mcp.json (JSONC servers.satori).
  • Windsurf config: ~/.codeium/windsurf/mcp_config.json.
  • Pi config: ~/.pi/agent/mcp.json.
  • Antigravity config: ~/.gemini/config/mcp_config.json.
  • Antigravity skill link: ~/.gemini/skills/satori.

Pass --no-skill to skip installing the shared skill (only refreshing an existing Satori-managed skill if already present), and --index or --no-index to control immediate Git repository indexing during setup. The installer refuses to overwrite unmanaged Satori entries. If you already have one, remove or align it before rerunning install.

Repo Config and Profiles

satori.toml is a repository-local index policy file. It is separate from installer-managed client config and from provider runtime environment variables.

Config Shape

[index]
profile = "minimal"

Missing config defaults to default. Invalid index.profile values fail closed with an explicit profile error.

default

Safe-broad indexing for source, docs/text, config, scripts, infra/query files, and known extensionless files such as Dockerfile, Makefile, Justfile, Taskfile, Procfile, Jenkinsfile, and .dockerignore.

minimal

Source plus docs/text only. Use it when you want lower indexing cost and do not need config, scripts, or infra files in the index.

all-text

Safe-broad plus unknown UTF-8 text files under the size cap. SATORI_ALL_TEXT_MAX_BYTES can override that cap. The hard denylist still applies first.

Index profiles decide what enters the index. Search scope decides what gets queried. search_codebase still defaults to scope=runtime, so indexing docs/config does not make documentation beat implementation code by default.

satori.toml, .gitignore, and .satoriignore are index-policy control files. Ordinary changes can converge through search freshness or manage_index action="sync". On managed offline runtimes, a tracked rebuild-safe incompatibility automatically starts or joins background reindex maintenance and returns not_ready / indexing; unsafe, failed, or connected-runtime cases can still return requires_reindex for operator recovery.

Minimum Runtime Setup

Select the runtime through the installer before indexing. Provider, model, dimension, reranker projection, and vector-store identity are compatibility inputs; changing an incompatible selection requires a reindex. Restart every Satori MCP client after changing the managed launcher.

Offline Potion

npx -y @satori-code/cli@latest install --runtime offline

Uses local Potion embeddings with BM25 and LanceDB. Qualified Linux x64/WSL2 and Linux ARM64 with glibc installs default to LateOn reranking; add --reranker none to disable neural reranking, or see Choose a Reranker for Voyage. Once installed, the qualified offline runtime requires no model API key and is designed for zero Satori runtime network requests.

Connected Voyage + LanceDB

VOYAGEAI_API_KEY=your-api-key \
npx -y @satori-code/cli@latest install --runtime voyage --vector-store lancedb

Uses Voyage Code 3 embeddings and local LanceDB storage.

Connected Voyage + Milvus

VOYAGEAI_API_KEY=your-api-key \
MILVUS_ADDRESS=your-milvus-endpoint \
MILVUS_TOKEN=your-optional-token \
npx -y @satori-code/cli@latest install --runtime voyage --vector-store milvus

Uses Voyage Code 3 embeddings with Milvus or Zilliz Cloud (MILVUS_TOKEN is the Zilliz API key). The installer sets VECTOR_STORE_PROVIDER=Milvus; a hand-configured MCP server must set it too, because MILVUS_ADDRESS alone does not select Milvus. Milvus is not accepted with the offline runtime.

Measured: across five pinned repositories, exact symbol lookup took 14–65 ms p50 on the pre-v0.14 offline Potion + LanceDB + LateOn runtime (8.8 ms p50 on satori in v0.14 with 1-call source hydration; raw results in docs/evidence/benchmarks/). Owner-oriented retrieval and bounded source reads keep broad files out of the model's context.

Measured Benchmarks (100% Local Offline)

Head-to-head results comparing 100% local offline Satori (local embeddings, local storage, and local CPU reranking—zero external API calls) against built-in file search (grep, find, read).

How the Agent Benchmark Works

We ran a fast Flash-class model (DeepSeek V4.1 Flash) on two everyday codebase tasks inside a ~1,350-file TypeScript repository: finding unfamiliar behavior from plain English, and locating a known symbol with its callers. Both sides ran 3 alternating repetitions per task under the exact same 24-call budget and output caps.

TaskMethodPass RateTool CallsSource OpenedInput TokensReasoning TokensWall Time
Unfamiliar behaviorNative search (grep / read)0/325Call 24 [16–26]201,9056,975151.4 s
Unfamiliar behaviorSatori (offline)3/35 (-80.0%)Call 2 [2–2]37,549 (-81.4%)1,571 (-77.5%)58.2 s (-61.6%)
Known symbol lookupNative search (grep / read)2/313Call 3 [3–3]77,7842,50473.5 s
Known symbol lookup (baseline)Satori (offline)3/39 (-30.8%)Call 2 [2–2]72,022 (-7.4%)1,257 (-49.8%)52.3 s (-28.8%)
Known symbol lookup (1-call source)Satori (offline, default)3/35 (-61.5%)Call 1 [1–1]39,045 (-49.8%)1,257 (-49.8%)57.1 s (-22.3%)

Combined pass rate: 6/6 (100%) for offline Satori vs 2/6 (33.3%) for native search (combined medians: -59.9% input tokens, -57.6% calls, -46.3% reasoning tokens, -35.0% wall time). Satori recorded 0 wrong code claims and 0 budget overflows. Full benchmark report and raw 12-run table.

Offline Ranking Accuracy & Speed

MetricBeforeCurrentChangeScope
Right owning symbol ranked #125/5830/58+20% (+5)5 open-source repos (React, FlatBuffers, Polars, Gin, Flask)
In top 5 / top 10 results41/58 · 47/5845/58 · 51/58+4 · +4 (0 regressions)Same 58 live offline queries
Candidate scoring latency (128 docs)235.80 ms72.11 ms-69.4%5-run median on React search candidates

Inspect ranking measurements on GitHub.

LateOn and Voyage on an offline index

Satori MCP 0.14.1 ran 30 behavior queries across TypeScript/TSX (tessera) and Python/Rust (claive) on the same offline Potion and LanceDB index. Each reranking option applied to all 30 queries.

RerankerHit@1Hit@3Hit@10MRR@10Warm p50Voyage tokens used
None (Potion + BM25 only)40.0% (12/30)60.0% (18/30)83.3% (25/30)0.530660 ms0
LateOn (local CPU, default)63.3% (19/30)86.7% (26/30)90.0% (27/30)0.7572.69 s0
Voyage rerank-383.3% (25/30)100.0% (30/30)100.0% (30/30)0.9171.48 s1.13M
Voyage rerank-3-lite (Satori's Voyage default)93.3% (28/30)100.0% (30/30)100.0% (30/30)0.9671.23 s1.14M

Full 45-query LateOn vs Voyage benchmark report.

1-Call Source Delivery on Exact Lookups (A/B Confirmation)

Across 27 interleaved runs (3 repetitions × 3 tasks on DeepSeek V4.1 Flash, 100% local offline), returning verified source code directly on clean exact symbol hits eliminated extra follow-up file reads (enabled by default).

MetricWithout 1-call sourceDefault (1-call source)Savings
Pass rate (9 runs each)8/9 (88.9%)9/9 (100%)+11.1 pp
Median input tokens56,81144,002-22.5%
Median time & tool calls60.3 s · 6 calls53.4 s · 5 calls-11.4% · -16.7%
Large target (~450 lines)58,276 tok · 7 calls39,045 tok · 5 calls-33.0% tokens
Small target (~55 lines)40,587 tok · 4 calls33,340 tok · 3 calls-17.9% tokens

Read the A/B confirmation report on GitHub.

Startup Speed & Language Coverage

AreaMeasured OutcomeScope
Cold-start first search5,747 ms → 4,563 ms (-20.6%) · -108 MB memoryFirst search on trufflehog (3,454 files, identical results)
TypeScript & multi-language precisionFaster batch type resolution and cleaner call-graph edges across 140 syntax-parsed languagesTypeScript, Python, Go, Java, C#, C/C++, Rust, Kotlin, PHP, Dart, Swift, and more

Cold-search report · Language-engine report.

Choose a Reranker

The reranker orders up to 64 retrieved candidates, with each candidate's role, callers, callees, and tests, so the owning code comes first. Change it at any time from the CLI. Embeddings, the vector store, and the index are not affected. Restart every Satori MCP client after a switch.

LateOn (default)

satori reranker use lateon

Local CPU reranking. Free, no API key, and no network requests. Offline runtime on Linux x64/WSL2 and Linux ARM64 with glibc only. offline is another spelling of lateon.

Voyage

satori reranker use voyage [--model <name>]
satori reranker status

The default model is rerank-3-lite. If VOYAGEAI_API_KEY is missing, the command asks for it with hidden input in a terminal and saves it to ~/.satori/.env with mode 0600. Press Enter to cancel. Without a terminal, set the key in the environment or in that file first. The command makes one test rerank call. If the call fails, the current reranker stays. Pass --no-verify to skip the call. Works with the offline and connected runtimes.

None

satori reranker use none

Retrieval order only. The fastest search, about 200 ms on React.

The installer takes the same choice: satori install --reranker lateon|voyage|none [--reranker-model <name>] [--no-verify]. Without a global install, use npx -y @satori-code/cli@latest in place of satori.

Compare first-ranked answers and warm latency in the 30-query reranker benchmark. See earlier reranking benchmarks for results on other repositories.

Privacy and billing. Select Voyage reranking explicitly with satori reranker use voyage. Reranking sends the query and candidate code excerpts to Voyage AI. If the reranker fails, Satori returns retrieval order with RERANKER_FAILED. See Voyage pricing and free quotas.

A hand-configured MCP client sets the reranker in its environment:

SATORI_RERANKER_PROVIDER=voyage
VOYAGEAI_API_KEY=<your key>
VOYAGEAI_RERANKER_MODEL=rerank-3-lite

Index the First Repo

Open the agent in your Git repository and give Satori an absolute repository path. The runtime indexes eligible workspaces in the background, subject to a 50,000-file cap.

1 Check automatic indexing

Offline sessions can auto-index up to 20 MiB at startup and up to 150 MiB on the first eligible Satori tool call. Connected runtimes defer indexing until tool use and auto-index up to 8 MiB.

2 Check readiness

Use manage_index action="status" to see index state. If indexing is in progress, use native reads and retry your search after the reported interval. For repositories beyond the automatic limits, use manage_index action="create" when you intend to index them explicitly.

3 Search

Run a plain-English behavior query, for example search_codebase path="/absolute/path/to/repo" query="where is authentication flow enforced". Defaults are scope=runtime, resultMode=grouped, and groupBy=symbol.

4 Navigate and read

Use file_outline to lock the owner symbol, then read_file to open that exact indexed symbol or a bounded source window. Use call_graph when relationship evidence is qualified for that symbol.

Practical workflows

Start from the job, not the tool name.

The default agent path starts with a repository question, narrows to the owner, and ends with exact evidence. The same primitives support onboarding, debugging, and change planning without requiring a different Satori mode.

LEARN A REPO “What owns this behavior?”

Search by intent, inspect the owning file, then read the exact symbol.

DEBUG “Where does this error originate?”

Use the literal clue plus semantic context, then follow supported relationship evidence.

PLAN A CHANGE “What should I inspect before editing this subsystem?”

Resolve the owner, structure, direct navigation evidence, and exact source before mutation.

1 Search

Use search_codebase with the user requested path and a behavior or concept query. Default scope is runtime, grouped by symbol, with changed-file awareness when the repository supports it. Prefer recommendedNextAction when present.

2 Outline

Use file_outline to lock symbol spans before reading or editing. Exact mode resolves symbolInstanceId and reports ambiguity instead of guessing.

3 Graph

Use call_graph with the returned callGraphHint.symbolRef. On symbol-owned flows, symbolRef.symbolId carries the exact symbolInstanceId. Treat the output as nearby context, not a complete impact guarantee.

4 Read exact evidence

Use read_file with the exact indexed symbol returned by navigation, or request a bounded source window. If graph traversal abstains, use the returned fallback plus scoped search rather than treating an unsupported relationship as missing code.

Managed offline runtimes normally turn a rebuild-safe incompatibility into background indexing automatically. If a tool still returns requires_reindex, automatic maintenance was unavailable, suppressed after failure, or unsafe for that authority; use manage_index(action="reindex") as the operator recovery override, then retry the original call.

If manage_index returns reason="runtime_owner_conflict", restart all Satori MCP clients so only one runtime fingerprint/config identity is active, then retry the mutation. MCP tools never kill processes or ask interactive cleanup questions.

Publication-Owned Navigation

Each completed Publication owns one immutable JSON navigation tree alongside its exact vector and source checkpoint. Reads select and pin that Publication before resolving symbols or relationships.

Symbol Registry

Grouped search returns owner symbols, not loose chunks. Matching chunks remain supporting evidence for the selected symbol, and synthesized file symbols provide a safe fallback for files without extracted source symbols. Exact navigation uses symbolInstanceId; symbolKey is stable-ish candidate lookup only.

Relationship Navigation

Publication relationship navigation stores conservative CALLS v0 edges plus TS/JS IMPORTS and EXPORTS v0 edges. Syntactic tiers may use bounded name-based evidence; CBM-backed languages require semantic target provenance. Ambiguous or unproved targets are skipped.

Current Limits

TS/JS import/export edges cover resolvable relative modules and unambiguous local export declarations only. Package imports, unresolved paths, ambiguous local exports, and multiline module syntax are intentionally skipped.

TypeScript, JavaScript, Python, Go, Java, C#, C++, Rust, and Scala provide production-ready CALLS v0 navigation when the current Publication has compatible relationship navigation. Resolved test-reference navigation remains separately qualified for TypeScript, JavaScript, Python, and Go. Python and Go additionally provide on-demand file_outline structural analysis for exact functions and methods. TypeScript, JavaScript, and Scala use Satori's syntax/name-based advisory resolver; Scala v1 admits direct non-member calls only when the indexed target is unique, while member/dynamic dispatch remains outside the claim. The CBM-backed languages expose conservative direct-call slices: Go excludes receiver/type, embedded/interface dispatch, callbacks, and callable aliases; Java and C# admit exact static bindings only within the same detected build root (Maven/Gradle or .csproj), falling back to the same source directory when no manifest establishes broader authority, and exclude receiver dispatch; C++ admits exact same-translation-unit direct calls and rejects unproved cross-translation-unit or conditional preprocessor cases; Rust requires Cargo package ownership and rejects receiver dispatch plus unmodeled cfg-dependent sources. Kotlin and PHP take their symbols from codebase-memory-mcp's definition extractors and add conservative CALLS v0; receiver dispatch abstains in both.

Runtime Navigation

call_graph traverses relationship navigation from the exact Publication pinned for the request. Immutable JSON is the serving representation; there is no alternate SQLite backend or fallback navigation authority.

MCP tools

The default registry exposes eleven repository tools and run_script for chaining calls. The optional compact profile exposes seven direct tools and routes specialists through run_script. See the reference for setup. Together they cover repository discovery, lifecycle, natural-language + lexical search and pagination, architecture, structural and relationship navigation, exact references, bounded source reads, and change orientation without adding source-code write commands.

run_script

Runs bounded JavaScript to combine Satori tool calls. Set SATORI_CODEMODE=0 to disable it.

list_codebases

Lists known indexed repositories with readiness and runtime-owner state so an agent can discover an existing Publication before starting another index operation.

manage_index

Supports create, reindex, sync, status, cancel, and clear. Indexing builds a complete staged generation before it becomes the current Publication; status separates durable Publication state from process-lifetime progress.

search_codebase

Searches by behavior or identifier with runtime, docs, or mixed scope, path operators, filters, agent-supplied alt_terms searched as fused extra passes, owner-symbol grouping, default-on 1-call bounded source hydration (hydrateExact) on clean unique exact symbol hits, freshness checks, structured warnings, and optional debug modes.

architecture_overview

Summarizes bounded Publication architecture evidence as logical areas, cross-area CALLS/IMPORTS boundaries, call hotspots, and coverage/filtering counts without inventing missing relationships.

continue_search

Reveals more groups from one frozen grouped-search result without rerunning embedding, retrieval, or reranking. Exact-offset retries are idempotent; expiry or authority drift fails closed.

file_outline

Returns the current structural outline for a file. Supported languages expose exact symbol ownership and spans; Python and Go also expose on-demand structural analysis details.

call_graph

Traverses bounded caller/callee relationship context and supported test references from either an exact symbolId or a direct { file, symbolLabel } reference. Output follows the language's declared capability boundary.

trace_path

Finds one deterministic shortest path between two exact published symbol IDs over selected persisted CALLS, IMPORTS, EXPORTS, or TESTS relationships with hard traversal budgets and CALLS-only recursion cycle diagnostics.

find_references

Scans validated published source for exact textual occurrences of one canonical symbol (by symbolId or { file, symbolLabel }), independent of semantic ranking, with exact spans and explicit complete/partial coverage.

detect_changes

Maps a Git diff to current indexed symbol seeds, bounded transitive callers, uncertainCallReferences, and candidate directSeedTestReferences so agents can orient a change without treating the result as complete blast-radius proof.

read_file

Reads exact multiline source windows or opens one exact indexed symbol (open_symbol) with named caller/callee relationships and opt-in line-numbered format: "text". Restricted to tracked searchable roots; never a general host-filesystem reader.

Publication Lifecycle

manage_index owns the public lifecycle. Use create for the first Publication, sync for ordinary source divergence, reindex when current authority is missing/corrupt/incompatible, status to inspect durable readiness, and clear only for intentional removal. Mutations are blocked when live runtime ownership would make authority ambiguous.

Sync

manage_index action="sync" converges ordinary source or ignore-rule changes. The replacement generation is assembled in staging and becomes current only after its search, symbol, structural, and relationship state is complete.

Reindex

manage_index action="reindex" creates a fresh Publication when the current generation is absent, corrupt, or incompatible with the running architecture/configuration, including Publications written in a retired format. Managed offline runtimes can start an eligible rebuild automatically. Use explicit reindex when automatic recovery is unavailable.

While a compatible background reindex runs, reads and searches continue serving the previous completed Publication without blocking. A failed build leaves that previous Publication in authority; partial staging is never promoted.

Clear

manage_index action="clear" is destructive. Do not call it for routine refresh. Use it only when the user explicitly asks to remove Satori's tracked index for a codebase.

Status

manage_index action="status" is the authoritative readiness view. While the same runtime is alive it can also project active mutation phase/progress/error. Those process-lifetime fields are not reconstructed after restart; durable status then reflects the current Publication that actually exists.

  • Current Publication/readiness state and remediation reason.
  • Runtime/config compatibility and navigation capability evidence.
  • Source freshness and indexed file/chunk observations.
  • Active mutation metadata only when the owning runtime still has it.

Publication safety

Readers acquire a lease on one current immutable Publication for the request. A concurrent sync/reindex may publish a newer generation, but it does not change the evidence underneath an in-flight read.

Warnings and Status

Satori separates usable degraded output from blocking lifecycle states. Agents should branch on structured statuses and warnings instead of parsing prose.

Stable Warnings

Warnings are structured objects with a stable code, severity, blocking flag, message, and action. They mean the result is usable but degraded unless blocksUse=true.

FILTER_MUST_UNSATISFIED SEARCH_PARTIAL_INDEX:limit_reached RERANKER_FAILED SEARCH_PASS_FAILED:*

Blocking Status

requires_reindex is not a warning. Managed offline runtimes automatically rebuild the tracked incompatibilities that are safe to repair; a surviving requires_reindex status means explicit operator recovery is required before the result can be treated as current.

Diagnostic Causes

Current Publication state, missing_symbol_registry, missing_relationship_navigation, incompatible_symbol_registry, incompatible_relationship_navigation, watcher state, and Publication navigation readiness explain why the tool chose a lifecycle state. An index written by an older Satori release is reported as requires_reindex and is never migrated.

Debug Payloads

Use debugMode=full on search_codebase when you need ranking, filter, freshness, exact-registry, tracked-lexical, reranker, or phase-timing explanations. Start with hints.debugSummary, then drill into hints.debugSearch only when needed.

Debugging Search

Normal search output should stay compact. Use debugMode=summary|ranking|freshness|full when you need to understand ranking, filters, fallback passes, or exclusions.

Debug payload

  • Filters applied in deterministic order.
  • Candidate counts before and after filtering.
  • Exact-registry hit, miss, ambiguity, or registry-unavailable state.
  • Phase timings for freshness, registry lookup, semantic search, lexical recovery, rerank, grouping, and navigation validation.
  • Reranker attempt and usage state.
  • Freshness mode and changed-file boost state.
  • Relaxed search pass usage when grouped output underfills.
  • Tracked lexical and live path-scoped evidence when exact lookup supplements semantic chunks.

Warnings vs failures

Warnings mean usable but degraded; follow each warning action. Failures and any requires_reindex status that survives automatic offline maintenance require remediation before treating results as current.

Troubleshooting

Prefer status and debug output before guessing. The goal is to make repo state visible enough for the agent to choose the next operation.

Not indexed

Run manage_index(action="create") on the repository root, then retry search.

Requires reindex

Managed offline runtimes normally start or join the rebuild automatically and return not_ready / indexing. If requires_reindex is still returned, run manage_index(action="reindex") as the recovery override. Do not use sync as a substitute for a full runtime or format incompatibility.

Noisy results

Apply suggested ignore patterns through repo .satoriignore, then run manage_index(action="sync") for immediate convergence.

Runtime configuration mismatch

The default offline Potion + LanceDB install needs no model API key. If a connected or manually overridden runtime returns MISSING_PROVIDER_CONFIG, run npx -y @satori-code/cli@latest doctor, fix the reported provider/backend values, restart the MCP clients, then retry the original tool call. Inside search results, the same text may simply be matched repository content rather than an active error.

Unsupported graph

Follow the returned navigation fallback. Read exact spans and use additional scoped searches to enumerate usages.

Generated output in context

If generated files such as dist, build, or .output appear in search context, verify the generated artifact directly. Source matches do not prove generated output is current.

Partial index

If a full index hits a limit, search may still return partial chunks, but navigation may be unavailable or incomplete. Treat the warning as evidence to narrow scope, sync, or reindex before relying on related-code navigation.

Connected backend timeout

This applies only to the optional Milvus/Zilliz path. If the remote backend times out during validation or lifecycle work, follow the returned retryable backend guidance; do not treat it as a failure of the default local LanceDB runtime.

Connected collection limit

This applies only to optional Zilliz/Milvus deployments. If the backend reports a collection-capacity limit, follow the returned manage_index guidance for that backend before retrying.

FAQ

Questions people usually have before adopting it.

Do I need to reindex every time code changes?

No. Ordinary source changes use incremental synchronization. Full reindex is reserved for states that actually require rebuilding the Publication.

Will Satori ask me before routine reindexing?

On the managed offline path, rebuild-safe automatic maintenance starts or joins the background reindex without making the user babysit it. Transient external or worker failures retry with bounded backoff; deterministic, resource-limited, cancelled, connected/remote, or otherwise unsafe recovery remains explicit.

Does Satori send my code to a model API?

The qualified default offline runtime uses local Potion embeddings, BM25, LateOn reranking, and LanceDB and requires no model API key after installation. Connected Voyage/Milvus configurations are optional.

Is call_graph a complete dependency graph?

No. It is conservative navigation evidence. Dynamic dispatch, reflection, framework wiring, generated calls, and unsupported language semantics can exceed the qualified relationship model.

Is Satori a replacement for grep or an IDE language server?

No. Literal search and language-server/compiler tooling remain useful. Satori adds a persistent evidence layer that combines intent retrieval, exact evidence, ownership, bounded source, freshness, and supported repository relationships for coding agents.

Does Satori edit my repository?

No. Source access is read-only through the MCP product surface. Your editor or coding agent owns source mutation.

Operational Boundaries

Satori provides retrieval, structural/relationship navigation, warnings, and recovery guidance. It does not replace the developer's normal editing, testing, or review workflow.

Not a source-code write server

Satori does not expose source-code write tools through MCP. Edits stay in the user's editor or agent host.

Not an agent framework

Satori works alongside coding agents and MCP clients. It is focused on repository context, not orchestration.

Not a test replacement

Static evidence helps agents investigate, but runtime behavior still needs tests, typechecks, review, and developer validation.

Local-first product boundary

The current release is designed to run on the developer machine or self-managed infrastructure. The public product contract does not depend on a hosted Satori control plane.