Mnestis is a local-first repository-intelligence engine for developers, CI systems, security reviewers, and AI coding agents. It scans source without executing the analyzed repository, builds attributed architecture evidence, and exposes the same core facts through CLI, SDK, REST, MCP, the Evidence Observatory, and offline HTML reports.
Release line: 0.6.0-beta.1 · Runtime: Node.js 20 or newer · Licence: MIT
Mnestis produces deterministic repository facts and explicitly labelled heuristic inference. Its maintained capabilities include:
- bounded scanning, language detection, symbols, imports, routes, tests, packages, and configuration relationships;
- Search Index v4 with persistent content hashes, BM25F, exact identity ranking, multilingual tokenization, typo recovery, and explainable scores;
- Architecture Insights with weighted PageRank, strongly connected components, cycles, bridges, bounded paths, dominators, and reverse blast-radius layers;
- Repository Memory v2 with content-addressed snapshots, risk comparison, symbol lineage, retention, and separated human annotations;
- Security Posture v2 with redacted source, configuration, authorization, RLS, path, process, CORS, SQL, and secret detectors;
- PR Evidence Pack v1 and Evidence Context v1 for change-specific review;
- Evidence Result Pack v1 for cross-engine investigation;
- an optional local semantic candidate layer that is never required and never silently downloads a model;
- one shared operation across CLI, SDK, REST, and MCP;
- an eight-mode English, Arabic RTL, and Simplified Chinese Evidence Observatory.
Mnestis does not upload source, require an account, execute a merge verdict, or use an LLM to invent repository facts. Semantic similarity may discover candidates only; independently attributable evidence remains authoritative.
npx mnestis@latestIn an interactive terminal, the no-argument command verifies the skill bundle shipped inside the npm package, installs the portable .agents/skills copy in the current repository, mirrors it to already-detected AI tools, and records ownership in .mentis/skill-installation.v1.json. It does not use an npm postinstall hook and does not write to the user home directory unless --scope user is explicit.
npx mnestis setup . --platform auto
npx mnestis skills status . --json
npx mnestis skills repair .
npx mnestis skills uninstall . --yesCI, piped sessions, explicit commands, and MNESTIS_NO_AUTO_SETUP=1 never trigger automatic setup. User-owned conflicts are preserved unless force overwrite is explicitly selected.
mnestis doctor .
mnestis build .
mnestis index .
mnestis investigate "where can authorization be bypassed and which tests cover it?" . \
--output .mentis/evidence-result-pack.v1.json \
--explain
mnestis search "authorization guard" . --limit 12 --explain
mnestis security .
mnestis memory record .
mnestis ui --path .For change review:
mnestis change . --base main --head HEAD --output .mentis --json
mnestis context . \
--evidence .mentis/change-evidence.json \
--task "review authorization, blast radius, and tests" \
--budget 4000 \
--json--json is a machine-output contract: stdout contains JSON only. Human summaries, progress, and diagnostics are routed separately.
mnestis investigate is the V4 entry point for broad engineering questions. A deterministic cost-based planner decomposes the request and selects only the necessary engines: lexical/symbol search, graph intelligence, security, change evidence, memory, and optional semantic candidates. Results are fused with weighted reciprocal-rank fusion, confidence calibration, corroboration, exact-match signals, and diversity controls.
mnestis investigate "explain the blast radius of this public API" . --max-results 12 --max-paths 3
mnestis investigate "ما أثر تغيير الحضور على الصلاحيات والاختبارات؟" . --json
mnestis investigate "查找删除用户权限的安全影响" . --jsonEvery Evidence Result Pack v1 includes the plan, engine executions, ranked evidence, score decomposition, provenance, omissions, diagnostics, limitations, and integrity hash. Missing or budget-omitted evidence is disclosed; it is never replaced with invented prose.
The deterministic product works without a model. Semantic retrieval is disabled by default and can only be installed through explicit opt-in with a reviewed HTTPS manifest and checksum:
mnestis semantic status --json
mnestis semantic enable --manifest ./reviewed-semantic-model.json --json
mnestis investigate "conceptually related authorization flows" . --semantic --json
mnestis semantic disable --jsonStatus checks and ordinary investigations never download a model. Semantic-only candidates remain low-confidence and cannot be labelled deterministic until corroborated by parser, graph, change, memory, or security evidence.
The Development Preview dashboard and self-contained HTML report expose eight evidence modes:
- Overview
- Investigate
- Explore
- Architecture
- Change
- Memory
- Security
- AI Context
The interface supports English, Arabic with RTL layout, and Simplified Chinese. Missing, stale, partial, incompatible, and error states remain visible; sample values are never presented as repository analysis.
The committed V4 investigation fixture contains 188 documents, 12 English/Arabic/Chinese questions, and adversarial semantic decoys. The latest reproducible receipt measures Recall@5 1.0, mean reciprocal rank 1.0, Top-1 accuracy 1.0, no semantic decoy ranked first, deterministic repeat hashes, and approximately 91% reduction between the fixture corpus token estimate and the average selected result-pack estimate.
This is a scoped synthetic regression fixture, not a universal accuracy claim, a production latency claim, or a competitor benchmark. Each generated pack reports its own selected and omitted evidence.
- No analyzed repository code is executed during scanning or investigation.
- Repository paths and output locations are root-contained.
- Diffs, request bodies, traversals, files, and result counts are bounded.
- Obvious credentials and private keys are redacted from generated evidence.
- REST binds to loopback unless remote binding is explicitly enabled.
- MCP callers cannot select a repository outside the configured root.
- Static analysis is not a security certification.
The dependency-light V5 verification suite and the dependency-free npm onboarding bootstrap are independently executable. In the supplied recovery environment, clean npm ci, the complete workspace build, browser automation, dependency audit, npm tarball installation, and Node-version matrix remain separate gates because the configured registry does not provide every locked dependency. Exact command receipts are retained; focused tests are not presented as proof of those blocked gates.
- V5 One-command Distribution
- V4 Query Intelligence Kernel
- Investigation engine
- Optional local semantics
- Evidence Result Pack v1
- Installation
- Architecture
- CLI
- SDK
- MCP
- Evidence Observatory
- Change analysis
- Search
- Security posture
- Known limitations
- DABT integration profile
- Graphify comparison
- MergeCourt integration contract