The canonical package and executable are lowercase: mnestis. Generated repository intelligence lives in .mentis/. Node.js 20 or newer is required.
npx mnestis@latest
mnestis setup . --platform auto
mnestis skills status . --json
mnestis skills repair .
mnestis skills uninstall . --yesThe no-argument command installs skills only in an interactive terminal. auto always installs .agents/skills and mirrors to detected native tools. Workspace scope is default; --scope user is explicit. JSON output contains one document. Preserved user conflicts and blocking skill-health states use exit code 5.
mnestis --version
mnestis doctor .
mnestis doctor . --jsondoctor checks runtime compatibility, Git, repository access, output access, configuration, stale legacy directories, malformed artifacts, and schema compatibility.
mnestis doctor .
mnestis build .
mnestis index .
mnestis investigate "review authorization, graph impact, security, and tests" . \
--output .mentis/evidence-result-pack.v1.json \
--explain
mnestis security .
mnestis memory record .
mnestis ui --path .Cross-engine investigation is the recommended starting point for broad repository questions:
mnestis investigate "where can authorization be bypassed?" . --explain
mnestis investigate "ما أثر تغيير الحضور على الاختبارات؟" . --json
mnestis investigate "查找删除用户权限的安全影响" . --max-results 10 --jsonThe deterministic planner selects lexical/symbol, graph, security, change, memory, and optional semantic engines under bounded cost and result limits. Evidence Result Pack v1 reports ranked results, score decomposition, provenance, omissions, diagnostics, limitations, and integrity metadata.
Use --semantic only after an approved model is explicitly installed. Investigation never installs a model.
mnestis semantic status --json
mnestis semantic enable --manifest ./reviewed-semantic-model.json --json
mnestis semantic disable --jsonenable requires an explicit reviewed manifest, HTTPS source, bounded size, and matching checksum. Status and disable perform no download. Deterministic search and investigation continue to work when semantics is unavailable.
mnestis index .
mnestis index . --force --json
mnestis explore .
mnestis search "authorization guard" . --explain
mnestis search "صلاحيات المدير" . --kind symbol,api --json
mnestis search "删除用户权限" . --anchor symbol:requireAdmin --jsonSearch Index v4 persists content hashes and supports exact identity/path signals, BM25F, phrase/prefix/tag signals, deterministic typo recovery, query intent, centrality, and graph neighbourhoods. --explain exposes contributing ranking signals.
mnestis security .
mnestis security . --json
mnestis security . --max-files 50000 --max-file-bytes 1000000Security Posture v2 performs bounded static checks without executing analyzed source. The canonical artifact is .mentis/security-posture.v2.json; raw detected secrets are never returned.
Generate PR Evidence Pack v1 from exactly one mode:
mnestis change . --base main --head feature/auth --json
mnestis change . --diff ./change.diff --json
mnestis change . --base HEAD~1 --head HEAD --output .mentis--fail-on-blocking returns exit code 5 when the command explicitly opts into blocking diagnostics. Git mode uses local refs and does not fetch or check out arbitrary remote code.
Select a bounded task-specific Evidence Context v1 from an existing PR Evidence Pack:
mnestis context . \
--evidence .mentis/change-evidence.json \
--task "review database migration impact" \
--budget 3000 \
--max-evidence 24 \
--output-file .mentis/migration-context.json \
--jsonThis command is change-pack selection. It is distinct from investigate, which plans and runs cross-engine repository analysis.
mnestis memory record .
mnestis memory timeline . --json
mnestis memory compare . --from <snapshotId> --to <snapshotId> --jsonRepository Memory v2 stores content-addressed snapshots, introduced/resolved risk comparison, and symbol lineage. Human annotations remain isolated from deterministic facts.
mnestis setup --platform agents
mnestis setup --platform claude
mnestis setup --platform cursor
mnestis setup --platform antigravity
mnestis setup --platform codex
mnestis setup --platform kiro
mnestis setup --platform all
mnestis setup --uninstallThe portable default installs .agents/skills. Platform bundles teach agents to investigate and search before broad source loading, preserve evidence provenance, avoid implicit semantic downloads, and run repository verification after edits.
mnestis ui --path .
mnestis ui --workspace ./mnestis.workspace.json
mnestis ui --path . --port 5173The eight modes are Overview, Investigate, Explore, Architecture, Change, Memory, Security, and AI Context. English, Arabic RTL, and Simplified Chinese are supported.
mnestis serve .
mnestis serve . --host 127.0.0.1 --port 4000
mnestis serve . --mcpREST binds to loopback by default. Non-loopback binding requires explicit --allow-remote. Versioned endpoints include:
POST /v1/investigatePOST /v1/change-evidencePOST /v1/evidence-contextPOST /v1/searchPOST /v1/security-posture
For commands supporting --json:
- stdout contains JSON only;
- banners, nudges, spinners, and human summaries are suppressed;
- errors go to stderr;
- exit status communicates the outcome.
Set MNESTIS_NO_NUDGE=1 to suppress optional nudges in non-JSON workflows.
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Unexpected internal failure. |
| 2 | Invalid user input. |
| 3 | Repository or configuration problem. |
| 4 | Schema incompatibility. |
| 5 | Analysis completed with blocking diagnostics when explicitly requested. |
npm run bench:v4:investigation
npm run bench:searchThese commands regenerate scoped regression receipts. They do not establish universal accuracy, production latency, or competitor superiority.