Skip to content

Coding-Dev-Tools/engraphis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Engraphis

Buy Me a Coffee

Give your AI agents a memory. See it, search it, and watch it self-maintain β€” all in a beautiful WebUI on your own machine.


Engraphis Knowledge Graph tab β€” force-directed entity-relation network
Knowledge Graph Β· run engraphis-dashboard to see it live



The WebUI β€” one command, local-first

pip install "engraphis[server]"
engraphis-dashboard

Opens http://127.0.0.1:8700 in your browser. No cloud, no signup, no API key for memory. Everything lives in a single SQLite file on your machine.

You'll see the full product β€” a dark-themed, sidebar-navigated dashboard with 12 tabs:

Tab What you see
Overview Live memory counts, memory-type mix, and a health summary at a glance
Analytics (Pro) Growth, retention distribution, decay forecast, resolver mix, and top entities β€” plus a one-click shareable HTML report and a cross-workspace portfolio view
Recall Hybrid search across the memory bank β€” each result shows its score breakdown (retention, semantic, lexical, graph, importance, recency)
Memories Browse and curate every memory by workspace β€” click into a full reader with type and retention pills
Proactive "What should I know right now" β€” importance Γ— recency Γ— retention, plus the last session handoff
Why The current answer to a question, and the facts it superseded
Timeline Bi-temporal history of a topic β€” what was believed, and when
Audit Full governance ledger β€” who did what, when, and why
Knowledge Graph Interactive force-directed graph of entities and their relationships β€” click any node to see every linked memory
Consolidate Run a consolidation sweep on demand β€” see what got distilled and what got pruned
Automation (Pro) Scheduled consolidation + retention policies that keep the store clean on autopilot (dashboard config, plus scripts/auto_maintain for cron / Task Scheduler)
Workspaces Manage workspace isolation boundaries β€” switch the active workspace, browse, and organize memory
Team Multi-user access with admin / member / viewer roles (Team)
Settings License activation (Pro/Team), appearance, and engine/store info

The dashboard is powered by the v2 engine β€” the same MemoryService that backs the MCP server and the Python library. What you see in the UI is what your agents get.

Start it on every platform

Platform How
Windows Double-click Engraphis Dashboard on your Desktop or Start Menu (install: engraphis-dashboard --install-shortcuts)
macOS Double-click Engraphis Dashboard.app on your Desktop (install: same command)
Linux Desktop entry in Applications β†’ Development (GNOME/KDE/etc.)
Any engraphis-dashboard in a terminal

Accessibility-first inspection, built in

The dashboard has the focused memory-inspection view built in β€” no separate app or port:

  • Open any memory to see its supersession chain with word-level diffs β€” exactly when a fact changed and why
  • Offline knowledge graph (vendored renderer β€” no CDN, works air-gapped)
  • Score breakdowns on every recall, Why/Timeline/link browsing, proactive recall, consolidation, audit trail
  • Keyboard-navigable, ARIA-annotated, light/dark mode

The standalone Inspector (:8710) was retired 2026-07-10 and folded into the one dashboard on :8700.


What's under the UI

Your agents forget everything between sessions. Engraphis fixes that β€” on your machine. Every new session, your coding agent starts from zero: re-asking which package manager you use, re-learning the codebase, forgetting why you chose PASETO over JWT. Engraphis gives agents durable, scoped, explainable memory.

Under the hood: Ebbinghaus forgetting-curve decay, interaction-aware reinforcement, bi-temporal facts, and hybrid (vector + lexical + graph) recall. The engine is 100% local: SQLite + local embeddings. You bring the LLM only for optional chat/synthesis.

  • Local-first & private β€” runs offline; the core depends only on numpy.
  • MCP-native β€” 18 tools for Claude Code, Cursor, Cline, Zed, Windsurf.
  • Self-maintaining facts β€” writes are deterministically conflict-resolved (no LLM required).
  • Principled recall β€” six-term score over retention, semantic, lexical, graph, importance, recency.
  • Bi-temporal truth β€” contradictions invalidate instead of overwriting (engraphis_why / engraphis_timeline).
  • Grounded, not guessed β€” cited answers or explicit abstain; provenance on every memory.
  • Code-aware β€” AST-powered symbol graph: engraphis_index_repo β†’ engraphis_search_code.
  • Sleep-time consolidation β€” scheduled job distills recurring episodes, reports its compaction.
  • Scoped β€” workspace β†’ repo β†’ session hierarchy.

Why it wins

Axis mem0 Zep Engraphis
Product WebUI (local, no cloud) βœ— βœ— βœ“ (dashboard with built-in inspector)
Open & self-hostable engine βœ“ partial βœ“ fully open, local-first
Forgetting/decay partial βœ— βœ“
Bi-temporal graph partial βœ“ βœ“
Native multi-repo model βœ— βœ— βœ“ (unique)
Code-aware (AST/symbol graph) βœ— βœ— βœ“ (unique)
MCP-native for coding agents βœ“ βœ— βœ“

Install

pip install "engraphis[all]"    # dashboard + MCP server + code graph + everything
pip install "engraphis[server]" # dashboard + REST API
pip install "engraphis[mcp]"    # MCP server only
pip install engraphis           # core library β€” numpy only, fully offline

First run downloads all-MiniLM-L6-v2 (~80 MB). Without it, the engine falls back to a deterministic offline embedder so it always runs.


Quickstart β€” dashboard (the headline)

pip install "engraphis[server]"
engraphis-dashboard                   # β†’ http://127.0.0.1:8700
engraphis-dashboard --install-shortcuts   # β†’ Desktop + Start Menu icons

Quickstart β€” MCP server (for coding agents)

pip install "engraphis[mcp]"
engraphis-init                     # writes .env + prints config snippets
claude mcp add engraphis -- engraphis-mcp

Your agent now has 18 tools β€” remember, recall (grounded + proactive), why, timeline, forget, pin, correct, ingest, consolidate, index_repo, search_code, link, record_event, start/end_session, stats. See the MCP tools table below.


Quickstart β€” Python library

from engraphis.service import MemoryService

mem = MemoryService.create("engraphis.db")
mem.remember("Auth migrated from JWT to PASETO.", workspace="acme", repo="api")
hit = mem.recall("why did we change auth?", workspace="acme", repo="api")
print(hit["context"])

The same MemoryService backs the dashboard and the MCP server.


Free forever vs. Pro

The engine, dashboard, MCP server, and governance tools are free and Apache-2.0, permanently. A license key (verified offline β€” no phone-home) unlocks the paid layer. Pro is $10/mo, Team is $20/seat/mo β€” and you can unlock every Pro feature with a 3-day free trial right in the dashboard (Settings β†’ License), no key and no card.

Buy a license key β†’ Or start the 3-day free trial in-app. Keys are verified offline β€” no phone-home.

Free (available now) Pro β€” $10/mo Team β€” $20/seat/mo
Dashboard WebUI (with built-in inspector) βœ“ βœ“ βœ“
Memory engine + 18 MCP tools βœ“ βœ“ βœ“
Version-chain diffs, offline knowledge graph βœ“ βœ“ βœ“
Analytics: growth, retention, decay forecast + entities βœ“ βœ“
Analytics HTML report (self-contained, shareable) βœ“ βœ“
Automated maintenance: scheduled consolidation + retention policies βœ“ βœ“
Signed compliance export (checksummed bi-temporal bundle) βœ“ βœ“
Priority support βœ“ βœ“
Multi-user dashboard: logins, roles, seat management βœ“

MCP tools

Category Tool What it does
Write engraphis_remember Store a fact; deterministically resolved (add/reinforce/supersede)
Write engraphis_record_event Append a lightweight episodic log entry
Write engraphis_link Explicitly connect two related memories
Read engraphis_recall Hybrid vector + lexical + graph recall
Read engraphis_recall_grounded Cited answer from retrieved memories β€” or abstain
Read engraphis_recall_proactive "What should I know right now" β€” no query needed
Read engraphis_why Current answer + what it superseded
Read engraphis_timeline Full bi-temporal history, oldest first
Code engraphis_index_repo Parse a repo into the code symbol graph
Code engraphis_search_code Find symbols by name, with callers
Governance engraphis_forget Retire a memory β€” bi-temporal close, never deleted
Governance engraphis_pin Exempt from future automatic decay/pruning
Governance engraphis_correct Replace content without losing history
Session engraphis_start_session / engraphis_end_session Session lifecycle with cross-session handoff
Ops engraphis_stats Memory counts for health checks

Configuration

All via environment (or .env):

Env Var Default Description
ENGRAPHIS_DB_PATH ./engraphis.db SQLite database file
ENGRAPHIS_HOST 127.0.0.1 Server bind address
ENGRAPHIS_PORT 8700 Dashboard port
ENGRAPHIS_API_TOKEN β€” If set, REST API requires Authorization: Bearer <token>
ENGRAPHIS_EMBED_MODEL all-MiniLM-L6-v2 sentence-transformers model
ENGRAPHIS_LLM_PROVIDER openai openai | anthropic | google | openrouter
ENGRAPHIS_LLM_API_KEY β€” LLM API key (only for chat/synthesis)
ENGRAPHIS_LICENSE_KEY β€” Pro/Team key (or ~/.engraphis/license.key)

See .env.example for the full list.


Project structure

engraphis/
β”œβ”€β”€ engraphis/
β”‚   β”œβ”€β”€ core/                # v2 engine β€” interfaces, store, recall, scoring, schema
β”‚   β”œβ”€β”€ backends/            # pluggable embedder / vector index / reranker / codegraph
β”‚   β”œβ”€β”€ service.py           # validated MemoryService facade
β”‚   β”œβ”€β”€ mcp_server.py        # MCP server β€” 18 tools
β”‚   β”œβ”€β”€ dashboard_app.py     # dashboard WebUI (FastAPI)
β”‚   β”œβ”€β”€ config.py / app.py   # env settings / REST server
β”‚   └── static/              # dashboard frontend
β”œβ”€β”€ eval/                    # offline retrieval eval harness + datasets
β”œβ”€β”€ tests/                   # pytest suite (offline, numpy-only core)
β”œβ”€β”€ scripts/                 # start_dashboard, inspector, cli, init, consolidate
β”œβ”€β”€ Dockerfile / docker-compose.yml
└── pyproject.toml

Development

The offline quality gate (no network, no API key):

pip install numpy pytest ruff
python -m pytest tests/ -q
python -m eval.harness --dataset eval/datasets/sample.jsonl --k 5
python -m eval.harness --dataset eval/datasets/codemem.jsonl --k 5
python -m eval.ablation
ruff check .

Numbers, not assertions: the offline harness is a correctness floor (deterministic embedder). LoCoMo / LongMemEval competitive numbers run separately with a real embedder β€” see BENCHMARKS.md.


License

Apache-2.0 β€” see LICENSE and NOTICE. "Engraphis" is a trademark of the Engraphis project; the license does not grant trademark rights.

About

Self-hosted AI memory engine - Ebbinghaus forgetting-curve decay, interaction-aware reinforcement, and conscious thought synthesis. Local SQLite + sentence-transformers embeddings.

Resources

License

Contributing

Security policy

Stars

11 stars

Watchers

2 watching

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages