The memory layer for software. One command turns a codebase into architecture intelligence that humans and AI can use immediately.
Website: mnestis.vercel.app · npm: mnestis · GitHub: bitreonx/Mnestis
Documentation · Install · Graphs · Languages · AI Pack v1 · INFERNO Benchmarks · Contributing
Star us on GitHub if Mnestis helps your workflow — it helps other developers discover local-first codebase memory. github.com/bitreonx/Mnestis
npx mnestis .
Install: npm package is
mnestis— not the squattedMnestisname. See INSTALL.md.
Local-first. No cloud. No API keys. No guesswork.
Mnestis is a local-first codebase memory tool for AI coding assistants (Cursor, Claude Code, Codex). It replaces ad-hoc grepping and one-off tools like Graphify with a single npx mnestis . command that builds:
.mentis/project.dna.json)get_dna, search, impact_analysis for Cursor and ClaudeUse npx mnestis launch . --platform cursor to build memory and auto-install steering rules so agents actually read DNA instead of skipping it.
Keywords: codebase analysis · architecture intelligence · Cursor MCP · Claude Code skill · local-first · AI agent memory · dependency graph · developer tools
Mnestis is pre-launch OSS — we are polishing before growth, not pretending to be finished.
| Surface | Status | Notes |
|---|---|---|
| CLI | Stable | npx mnestis ., audit, supernova, pack, serve, mcp, memory |
| HTML report | Stable | Dashboard-aligned design, offline shareable |
| AI Pack v1 + MCP | Stable | Built for Claude Code, Cursor, Codex |
| Fable Mindset (New Gen) | Stable | fable-mindset skill + discipline rules; Mnestis discipline measures the gap |
| Shared Agent Memory | Stable | memory build, serve, stats, budget, shard — pre-sharded .Mnestis/*.memory.json for subagents |
| Memory Engine v3 | Stable | SQLite + hybrid retrieval, sessions, encrypted sync — .Mnestis/engine/ |
| Dashboard | Preview | Cockpits work; layout & panels still refining — help welcome |
We dogfood Mnestis on this repo. Creator marketing comes after dashboard polish — not before.
Claude Code first: Mnestis setup --platform claude → skill + CLAUDE.md context. See Claude OSS application brief if you are evaluating ecosystem impact.
New Gen — the Fable Mindset: Mnestis distills the working discipline observed across 4,665 public Fable 5 traces into an installable skill, so Opus 4.8, Sonnet — any agent — adopts Fable-grade habits: reason before acting, verify before claiming done, recover with method. It ports the habits, not the weights — no model retraining, no capability transplant. Measure your own gap with Mnestis discipline --opus.
What: Mnestis scans your repository, builds a dependency graph, discovers domains, capabilities, and user journeys, then writes structured memory to .Mnestis/. It produces a dashboard, a shareable HTML report, and AI Pack v1 — a versioned JSON contract agents can reason from without opening the UI.
Why: AI coding tools and new teammates both fail the same way: they grep random files instead of reading architecture. Mnestis gives every consumer the same ground truth — once, locally, on every build.
Who: Vibecoders who need the product story. AI orchestrators feeding Claude, Cursor, or Trae. Human developers who want architecture, smells, and copy-ready repair context in one cockpit.
Every npx Mnestis . run produces the same intelligence in four shapes. The legend Dashboard · Report · AI JSON appears in every chrome so you always know which one you are looking at.
|
|
|
These cards are produced by Mnestis snapshot — drop them straight into a README or PR.
| Artifact | You get | Best for | |
|---|---|---|---|
| 🖥️ | Terminal | npx Mnestis . → .Mnestis/ memory |
CI, first scan, refreshing DNA |
| 📊 | Dashboard | Mnestis ui → /vibe · /ai · /coder cockpits |
Preview — interactive exploration (community-driven) |
| 📄 | Report | report/index.html · ?mode=vibe\|ai\|coder |
Stable — stakeholder demos, async review, shareable HTML |
| 🤖 | AI JSON | Mnestis pack · /json/:repoId · /copilot/pack/:repoId |
Claude, Cursor, Trae — copy or HTTP, no UI required |
npx Mnestis . && npx Mnestis ui # dashboard at localhost:5173
# report: .Mnestis/report/index.html or report/index.html
npx Mnestis pack --section=summary --pretty
# 1. Analyze the repo (writes .Mnestis/)
npx Mnestis .
# 2. Open the interactive dashboard
npx Mnestis ui
# 3. Serve memory for agents (optional)
npx Mnestis serve
# → http://localhost:4000/copilot/pack/local
# 4. Export AI Pack v1
npx Mnestis pack --section=summary --pretty
# 5. Shared Agent Memory (subagents load shards, not raw source)
npx Mnestis memory build .
npx Mnestis memory serve # → localhost:4000/domain/auth
Expected outputs in .Mnestis/: project.dna.json, memory.json, agent_context.json, context/*.md, report/index.html
| Artifact | Command / URL | Audience | Use case |
|---|---|---|---|
| Dashboard | Mnestis ui → localhost:5173 |
You + team | Preview — interactive exploration (panels & layout in progress) |
| Report | report/index.html |
Stakeholders | Stable — async review, demos, shareable HTML (?mode=vibe\|ai\|coder) |
| AI JSON | Mnestis pack · /json/:repoId · /copilot/pack/:repoId |
Claude, Cursor, Trae | Copy-paste structured context, repair prompts, score + issues |
| DNA | .Mnestis/project.dna.json |
Any agent | Compressed repo DNA — @-mention first |
| MCP | Mnestis mcp |
IDE agents | 15+ tools + 11 resources via Model Context Protocol |
| Sync | Mnestis sync |
CI + local dev | Codegraph-style auto-rebuild on file changes |
| Wrap | Mnestis wrap -- <cmd> |
AI agents | RTK-style token-compressed command output |
Legend: Every dashboard view and the report header show Dashboard · Report · AI JSON so you always know which artifact you are looking at.
Modes are routes, not toggles. The URL is canonical.
| Mode | Route | For | One-liner |
|---|---|---|---|
| Vibe | /vibe/:repoId/story |
Vibecoders, PMs, founders | Product story, journeys, capabilities — no raw JSON |
| AI | /ai/:repoId/home |
Claude, Cursor, Trae users | AI Pack v1, repairs, verify — agent-first |
| Coder | /coder/:repoId/overview |
Human developers | Architecture, flows, code map, smells, copilot |
See docs/modes.md for deep links and keyboard map.
| Section | Coder route | What it does |
|---|---|---|
| Overview | /coder/:id/overview |
Health score (explained), issues, quick navigation |
| Architecture | /coder/:id/architecture |
Systems, domains, graph, smells |
| Flows | /coder/:id/flows |
Execution paths + user journeys |
| Code Map | /coder/:id/code |
File map + tech stack |
| History | /coder/:id/history |
Build history, timeline, risk heatmap |
| AI Context | /coder/:id/ai |
Copilot, context docs, JSON pack |
Single versioned JSON contract built once in @mnestis/core, used by UI, CLI, serve, and report.
npx Mnestis pack --section=issues --mode=ai -o .Mnestis/ai-pack.json
curl -s localhost:4000/copilot/pack/local?section=score | jq .version
# → "1.0.0"
Claude / Cursor / Trae recipe:
npx Mnestis .npx Mnestis setup --platform claude (Claude Code skill + CLAUDE.md)npx Mnestis pack --section=summary --mode=ai output, orhttp://localhost:4000/copilot/pack/local, orhttp://localhost:5173/json/local and click Copy AI Pack v1Mnestis wrap -- npm test to feed token-compressed output back to the agentFull spec: docs/ai-pack.md
Headline numbers from Mnestis-bench/results/VERIFIED.md — reproducible locally:
| Repo | Accuracy | Build | Tokens | Compression |
|---|---|---|---|---|
| Express (small) | 100% | 500 ms | 8,901 | 19.9× |
| NestJS (medium) | 100% | 73 s | 212,366 | 4.8× |
npm run bench:regression # fixture regression gate
npm run bench:express # Express fixture
npm run bench:fresh:express # clean .Mnestis + re-score
npm run bench:ai-eval # AI blind eval
Windows PowerShell — clean cache before re-benchmarking:
Remove-Item -Recurse -Force Mnestis-bench\repos\express\.Mnestis -ErrorAction SilentlyContinue
npm run bench:express
flowchart TB
subgraph ingest [Ingest]
SCAN[Scanner · 52 languages] --> PARSE[Lexical parser]
PARSE --> GRAPH[Knowledge graph]
end
subgraph analyze [Analyze]
GRAPH --> MEM[.Mnestis/ memory]
end
subgraph output [Outputs]
MEM --> UI[Dashboard]
MEM --> RPT[Report]
MEM --> PACK[AI Pack · MCP]
MEM --> MD[context/*.md + graphs]
end
Every build writes Mermaid diagrams into .Mnestis/context/ — see docs/GRAPHS.md for the full catalog and docs/LANGUAGES.md for the 50-language parsing pipeline.
Details: docs/architecture.md
| Command | Description |
|---|---|
Mnestis . / Mnestis build |
Analyze repo, write .Mnestis/ |
Mnestis ui |
Launch dashboard (localhost:5173) |
Mnestis serve |
REST API (localhost:4000) |
Mnestis mcp |
MCP stdio server for IDEs |
Mnestis pack |
Print AI Pack v1 (--section, --mode, -o) |
Mnestis report |
Generate report/index.html (--report-path report.html, --open) |
Mnestis sync |
Auto-rebuild graph on file changes (local index) |
Mnestis wrap -- <cmd> |
Token-compressed command output for AI agents |
Mnestis ask "…" |
Architecture copilot |
Mnestis setup |
Install AGENTS.md, Cursor rules, Claude Code + Fable discipline skills |
Mnestis explain |
Plain-language repo summary |
Mnestis score |
Health score breakdown |
Mnestis flows |
List execution flows |
Mnestis impact |
Blast radius analysis |
Mnestis --help # full flag list
MnestisRuntime in packages/core is the single source of truth for REST (Mnestis serve) and MCP (Mnestis mcp):
AgentEnvelope responsesNOT_BUILT, NOT_FOUND, GRAPH_UNAVAILABLE)query_graph · get_dna · explain_repo · onboard · get_node · get_neighbors · shortest_path · impact_analysis · list_domains · list_flows · list_capabilities · search · get_health · review_diff · refresh_memory
See docs/contributing.md. PRs welcome.
$ claude mcp add Mnestis \
-- python -m otcore.mcp_server <graph>