engraphis 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. engraphis-0.1.0/LICENSE +201 -0
  2. engraphis-0.1.0/NOTICE +14 -0
  3. engraphis-0.1.0/PKG-INFO +333 -0
  4. engraphis-0.1.0/README.md +269 -0
  5. engraphis-0.1.0/engraphis/__init__.py +8 -0
  6. engraphis-0.1.0/engraphis/analytics.py +243 -0
  7. engraphis-0.1.0/engraphis/app.py +228 -0
  8. engraphis-0.1.0/engraphis/backends/__init__.py +16 -0
  9. engraphis-0.1.0/engraphis/backends/codegraph.py +345 -0
  10. engraphis-0.1.0/engraphis/backends/embedder_api.py +188 -0
  11. engraphis-0.1.0/engraphis/backends/embedder_deterministic.py +49 -0
  12. engraphis-0.1.0/engraphis/backends/embedder_st.py +52 -0
  13. engraphis-0.1.0/engraphis/backends/extractor.py +148 -0
  14. engraphis-0.1.0/engraphis/backends/graph_extractor.py +201 -0
  15. engraphis-0.1.0/engraphis/backends/reranker.py +46 -0
  16. engraphis-0.1.0/engraphis/backends/vector_numpy.py +52 -0
  17. engraphis-0.1.0/engraphis/backends/vector_sqlitevec.py +88 -0
  18. engraphis-0.1.0/engraphis/config.py +137 -0
  19. engraphis-0.1.0/engraphis/core/__init__.py +43 -0
  20. engraphis-0.1.0/engraphis/core/consolidate.py +349 -0
  21. engraphis-0.1.0/engraphis/core/engine.py +517 -0
  22. engraphis-0.1.0/engraphis/core/graphrank.py +73 -0
  23. engraphis-0.1.0/engraphis/core/grounded.py +207 -0
  24. engraphis-0.1.0/engraphis/core/ids.py +54 -0
  25. engraphis-0.1.0/engraphis/core/interfaces.py +186 -0
  26. engraphis-0.1.0/engraphis/core/recall.py +232 -0
  27. engraphis-0.1.0/engraphis/core/resolve.py +99 -0
  28. engraphis-0.1.0/engraphis/core/schema.py +191 -0
  29. engraphis-0.1.0/engraphis/core/scoring.py +108 -0
  30. engraphis-0.1.0/engraphis/core/store.py +598 -0
  31. engraphis-0.1.0/engraphis/core/textutil.py +51 -0
  32. engraphis-0.1.0/engraphis/dashboard_app.py +115 -0
  33. engraphis-0.1.0/engraphis/engines/__init__.py +1 -0
  34. engraphis-0.1.0/engraphis/engines/embedder.py +104 -0
  35. engraphis-0.1.0/engraphis/engines/ingest.py +216 -0
  36. engraphis-0.1.0/engraphis/engines/intelligence.py +176 -0
  37. engraphis-0.1.0/engraphis/engines/recall.py +155 -0
  38. engraphis-0.1.0/engraphis/engines/reweight.py +90 -0
  39. engraphis-0.1.0/engraphis/engines/thoughts.py +67 -0
  40. engraphis-0.1.0/engraphis/graphdata.py +65 -0
  41. engraphis-0.1.0/engraphis/inspector/__init__.py +9 -0
  42. engraphis-0.1.0/engraphis/inspector/app.py +436 -0
  43. engraphis-0.1.0/engraphis/inspector/auth.py +252 -0
  44. engraphis-0.1.0/engraphis/inspector/index.html +1255 -0
  45. engraphis-0.1.0/engraphis/licensing.py +432 -0
  46. engraphis-0.1.0/engraphis/llm/__init__.py +1 -0
  47. engraphis-0.1.0/engraphis/llm/client.py +237 -0
  48. engraphis-0.1.0/engraphis/logging_setup.py +65 -0
  49. engraphis-0.1.0/engraphis/mcp_server.py +703 -0
  50. engraphis-0.1.0/engraphis/models.py +180 -0
  51. engraphis-0.1.0/engraphis/routes/__init__.py +1 -0
  52. engraphis-0.1.0/engraphis/routes/memory.py +828 -0
  53. engraphis-0.1.0/engraphis/routes/v2_api.py +444 -0
  54. engraphis-0.1.0/engraphis/routes/v2_team.py +152 -0
  55. engraphis-0.1.0/engraphis/routes/vault.py +615 -0
  56. engraphis-0.1.0/engraphis/service.py +881 -0
  57. engraphis-0.1.0/engraphis/stores/__init__.py +194 -0
  58. engraphis-0.1.0/engraphis/stores/graph.py +138 -0
  59. engraphis-0.1.0/engraphis/stores/ledger.py +139 -0
  60. engraphis-0.1.0/engraphis/stores/vaults.py +117 -0
  61. engraphis-0.1.0/engraphis/stores/vectors.py +270 -0
  62. engraphis-0.1.0/engraphis.egg-info/PKG-INFO +333 -0
  63. engraphis-0.1.0/engraphis.egg-info/SOURCES.txt +118 -0
  64. engraphis-0.1.0/engraphis.egg-info/dependency_links.txt +1 -0
  65. engraphis-0.1.0/engraphis.egg-info/entry_points.txt +9 -0
  66. engraphis-0.1.0/engraphis.egg-info/requires.txt +44 -0
  67. engraphis-0.1.0/engraphis.egg-info/top_level.txt +2 -0
  68. engraphis-0.1.0/pyproject.toml +105 -0
  69. engraphis-0.1.0/scripts/__init__.py +1 -0
  70. engraphis-0.1.0/scripts/cli.py +181 -0
  71. engraphis-0.1.0/scripts/consolidate.py +208 -0
  72. engraphis-0.1.0/scripts/init.py +164 -0
  73. engraphis-0.1.0/scripts/inspector.py +78 -0
  74. engraphis-0.1.0/scripts/install_shortcuts.py +220 -0
  75. engraphis-0.1.0/scripts/license_admin.py +121 -0
  76. engraphis-0.1.0/scripts/migrate_to_v2.py +201 -0
  77. engraphis-0.1.0/scripts/sdk_compat.py +45 -0
  78. engraphis-0.1.0/scripts/seed_from_obsidian.py +98 -0
  79. engraphis-0.1.0/scripts/start_dashboard.py +79 -0
  80. engraphis-0.1.0/scripts/start_server.py +29 -0
  81. engraphis-0.1.0/scripts/test_routes.py +198 -0
  82. engraphis-0.1.0/scripts/update.py +192 -0
  83. engraphis-0.1.0/setup.cfg +4 -0
  84. engraphis-0.1.0/tests/test_analytics.py +115 -0
  85. engraphis-0.1.0/tests/test_app_auth.py +53 -0
  86. engraphis-0.1.0/tests/test_backends_factories.py +24 -0
  87. engraphis-0.1.0/tests/test_codegraph.py +107 -0
  88. engraphis-0.1.0/tests/test_config.py +36 -0
  89. engraphis-0.1.0/tests/test_consolidate.py +312 -0
  90. engraphis-0.1.0/tests/test_core_ids.py +22 -0
  91. engraphis-0.1.0/tests/test_core_store.py +126 -0
  92. engraphis-0.1.0/tests/test_dashboard_v2.py +211 -0
  93. engraphis-0.1.0/tests/test_engine.py +352 -0
  94. engraphis-0.1.0/tests/test_eval_external.py +88 -0
  95. engraphis-0.1.0/tests/test_eval_harness.py +23 -0
  96. engraphis-0.1.0/tests/test_extractor.py +103 -0
  97. engraphis-0.1.0/tests/test_graph_extractor.py +126 -0
  98. engraphis-0.1.0/tests/test_graphdata.py +54 -0
  99. engraphis-0.1.0/tests/test_graphrank.py +106 -0
  100. engraphis-0.1.0/tests/test_grounded.py +280 -0
  101. engraphis-0.1.0/tests/test_ingest_entities.py +93 -0
  102. engraphis-0.1.0/tests/test_init.py +76 -0
  103. engraphis-0.1.0/tests/test_inspector.py +173 -0
  104. engraphis-0.1.0/tests/test_inspector_pro.py +254 -0
  105. engraphis-0.1.0/tests/test_licensing.py +232 -0
  106. engraphis-0.1.0/tests/test_logging_setup.py +76 -0
  107. engraphis-0.1.0/tests/test_mcp_server.py +166 -0
  108. engraphis-0.1.0/tests/test_migration.py +83 -0
  109. engraphis-0.1.0/tests/test_provenance_flags.py +73 -0
  110. engraphis-0.1.0/tests/test_ready.py +75 -0
  111. engraphis-0.1.0/tests/test_recall.py +78 -0
  112. engraphis-0.1.0/tests/test_resolve.py +102 -0
  113. engraphis-0.1.0/tests/test_scoring.py +52 -0
  114. engraphis-0.1.0/tests/test_service.py +304 -0
  115. engraphis-0.1.0/tests/test_service_graph.py +67 -0
  116. engraphis-0.1.0/tests/test_service_isolation.py +81 -0
  117. engraphis-0.1.0/tests/test_v1_hardening.py +78 -0
  118. engraphis-0.1.0/tests/test_v1_licensing.py +75 -0
  119. engraphis-0.1.0/tests/test_vector_numpy.py +41 -0
  120. engraphis-0.1.0/tests/test_workspace_isolation.py +114 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The Engraphis Authors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
engraphis-0.1.0/NOTICE ADDED
@@ -0,0 +1,14 @@
1
+ Engraphis
2
+ Copyright 2026 The Engraphis Authors
3
+
4
+ This product includes software developed by the Engraphis project.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License");
7
+ you may not use this file except in compliance with the License.
8
+ You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ "Engraphis" and the Engraphis logo are trademarks of the Engraphis project.
13
+ Use of the trademarks is subject to the Engraphis Trademark Policy; the
14
+ Apache-2.0 license does not grant trademark rights (see LICENSE, section 6).
@@ -0,0 +1,333 @@
1
+ Metadata-Version: 2.4
2
+ Name: engraphis
3
+ Version: 0.1.0
4
+ Summary: Local-first AI memory engine for agents — Ebbinghaus decay, interaction-aware recall, bi-temporal facts, hybrid retrieval, and an MCP server. You bring the LLM.
5
+ Author: The Engraphis Authors
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Coding-Dev-Tools/engraphis
8
+ Project-URL: Repository, https://github.com/Coding-Dev-Tools/engraphis
9
+ Project-URL: Issues, https://github.com/Coding-Dev-Tools/engraphis/issues
10
+ Keywords: ai,agents,memory,mcp,rag,vector-search,llm,retrieval
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Classifier: Topic :: Software Development :: Libraries
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: NOTICE
25
+ Requires-Dist: numpy>=1.24
26
+ Provides-Extra: server
27
+ Requires-Dist: fastapi>=0.110; extra == "server"
28
+ Requires-Dist: uvicorn[standard]>=0.29; extra == "server"
29
+ Requires-Dist: httpx>=0.25; extra == "server"
30
+ Requires-Dist: pydantic>=2.0; extra == "server"
31
+ Requires-Dist: python-dotenv>=1.0; extra == "server"
32
+ Requires-Dist: sentence-transformers>=2.7; extra == "server"
33
+ Provides-Extra: mcp
34
+ Requires-Dist: mcp>=1.2.0; extra == "mcp"
35
+ Requires-Dist: pydantic>=2.0; extra == "mcp"
36
+ Requires-Dist: sentence-transformers>=2.7; extra == "mcp"
37
+ Provides-Extra: code
38
+ Requires-Dist: tree-sitter>=0.23; extra == "code"
39
+ Requires-Dist: tree-sitter-language-pack>=0.2; extra == "code"
40
+ Provides-Extra: all
41
+ Requires-Dist: fastapi>=0.110; extra == "all"
42
+ Requires-Dist: uvicorn[standard]>=0.29; extra == "all"
43
+ Requires-Dist: httpx>=0.25; extra == "all"
44
+ Requires-Dist: pydantic>=2.0; extra == "all"
45
+ Requires-Dist: python-dotenv>=1.0; extra == "all"
46
+ Requires-Dist: sentence-transformers>=2.7; extra == "all"
47
+ Requires-Dist: mcp>=1.2.0; extra == "all"
48
+ Requires-Dist: tree-sitter>=0.23; extra == "all"
49
+ Requires-Dist: tree-sitter-language-pack>=0.2; extra == "all"
50
+ Provides-Extra: dev
51
+ Requires-Dist: pytest>=8.0; extra == "dev"
52
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
53
+ Requires-Dist: ruff>=0.4; extra == "dev"
54
+ Provides-Extra: test
55
+ Requires-Dist: pytest>=8.0; extra == "test"
56
+ Requires-Dist: pytest-asyncio>=0.23; extra == "test"
57
+ Requires-Dist: ruff>=0.4; extra == "test"
58
+ Requires-Dist: fastapi>=0.110; extra == "test"
59
+ Requires-Dist: httpx>=0.25; extra == "test"
60
+ Requires-Dist: mcp>=1.2.0; extra == "test"
61
+ Requires-Dist: tree-sitter>=0.23; extra == "test"
62
+ Requires-Dist: tree-sitter-language-pack>=0.2; extra == "test"
63
+ Dynamic: license-file
64
+
65
+ # Engraphis
66
+
67
+ [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-support-yellow?style=for-the-badge&logo=buy-me-a-coffee)](https://buymeacoffee.com/Jaixii)
68
+
69
+ **Give your AI agents a memory. See it, search it, and watch it self-maintain — all in a beautiful WebUI on your own machine.**
70
+
71
+ <br>
72
+
73
+ <p align="center">
74
+ <img src="docs/images/knowledge-graph.png" alt="Engraphis Knowledge Graph tab — force-directed entity-relation network" width="100%">
75
+ <br>
76
+ <sup>Knowledge Graph · run <code>engraphis-dashboard</code> to see it live</sup>
77
+ </p>
78
+
79
+ <br>
80
+
81
+ ---
82
+
83
+ ## The WebUI — one command, local-first
84
+
85
+ ```bash
86
+ pip install "engraphis[server]"
87
+ engraphis-dashboard
88
+ ```
89
+
90
+ Opens `http://127.0.0.1:8700` in your browser. No cloud, no signup, no API key for memory.
91
+ Everything lives in a single SQLite file on your machine.
92
+
93
+ **You'll see the full product** — a dark-themed, sidebar-navigated dashboard with 12 tabs:
94
+
95
+ | Tab | What you see |
96
+ |-----|-------------|
97
+ | **Overview** | Live memory counts, retention distribution, memory-type mix, and analytics (Pro) |
98
+ | **Recall** | Hybrid search across the memory bank — each result shows its score breakdown (retention, semantic, lexical, graph, importance, recency) |
99
+ | **Memories** | Browse and curate every memory by workspace — click into a full reader with type and retention pills |
100
+ | **Proactive** | "What should I know right now" — importance × recency × retention, plus the last session handoff |
101
+ | **Why** | The current answer to a question, and the facts it superseded |
102
+ | **Timeline** | Bi-temporal history of a topic — what was believed, and when |
103
+ | **Audit** | Full governance ledger — who did what, when, and why |
104
+ | **Knowledge Graph** | Interactive force-directed graph of entities and their relationships — click any node to see every linked memory |
105
+ | **Consolidate** | Run a consolidation sweep on demand — see what got distilled and what got pruned |
106
+ | **Workspaces** | Manage workspace isolation boundaries — switch the active workspace, browse, and organize memory |
107
+ | **Team** | Multi-user access with admin / member / viewer roles (Team) |
108
+ | **Settings** | License activation (Pro/Team), appearance, and engine/store info |
109
+
110
+ The dashboard is powered by the v2 engine — the same `MemoryService` that backs the MCP server
111
+ and the Python library. What you see in the UI is what your agents get.
112
+
113
+ ### Start it on every platform
114
+
115
+ | Platform | How |
116
+ |----------|-----|
117
+ | **Windows** | Double-click **Engraphis Dashboard** on your Desktop or Start Menu (install: `engraphis-dashboard --install-shortcuts`) |
118
+ | **macOS** | Double-click **Engraphis Dashboard.app** on your Desktop (install: same command) |
119
+ | **Linux** | Desktop entry in Applications → Development (GNOME/KDE/etc.) |
120
+ | **Any** | `engraphis-dashboard` in a terminal |
121
+
122
+ ### Also ships with the Memory Inspector
123
+
124
+ For a focused, accessibility-first view of individual memories and their history:
125
+
126
+ ```bash
127
+ engraphis-inspector
128
+ ```
129
+
130
+ Opens `http://127.0.0.1:8710` with:
131
+ - Search by query with score breakdown
132
+ - **Supersession-chain view with word-level diffs** — see exactly when a fact changed and why
133
+ - Why/timeline/link browsing, proactive recall, consolidation, audit trail
134
+ - Keyboard-navigable, ARIA-annotated, light/dark mode via `prefers-color-scheme`
135
+
136
+ ---
137
+
138
+ ## What's under the UI
139
+
140
+ Your agents forget everything between sessions. Engraphis fixes that — on your machine. Every new
141
+ session, your coding agent starts from zero: re-asking which package manager you use, re-learning
142
+ the codebase, forgetting why you chose PASETO over JWT. Engraphis gives agents durable, scoped,
143
+ *explainable* memory.
144
+
145
+ Under the hood: Ebbinghaus forgetting-curve decay, interaction-aware reinforcement, bi-temporal
146
+ facts, and hybrid (vector + lexical + graph) recall. The engine is 100% local: SQLite + local
147
+ embeddings. You bring the LLM only for optional chat/synthesis.
148
+
149
+ - **Local-first & private** — runs offline; the core depends only on `numpy`.
150
+ - **MCP-native** — 18 tools for Claude Code, Cursor, Cline, Zed, Windsurf.
151
+ - **Self-maintaining facts** — writes are deterministically conflict-resolved (no LLM required).
152
+ - **Principled recall** — six-term score over retention, semantic, lexical, graph, importance, recency.
153
+ - **Bi-temporal truth** — contradictions invalidate instead of overwriting (`engraphis_why` / `engraphis_timeline`).
154
+ - **Grounded, not guessed** — cited answers or explicit abstain; provenance on every memory.
155
+ - **Code-aware** — AST-powered symbol graph: `engraphis_index_repo` → `engraphis_search_code`.
156
+ - **Sleep-time consolidation** — scheduled job distills recurring episodes, reports its compaction.
157
+ - **Scoped** — `workspace → repo → session` hierarchy.
158
+
159
+ ---
160
+
161
+ ## Why it wins
162
+
163
+ | Axis | mem0 | Zep | Engraphis |
164
+ |---|---|---|---|
165
+ | Product WebUI (local, no cloud) | ✗ | ✗ | **✓ (dashboard + Inspector)** |
166
+ | Open & self-hostable engine | ✓ | partial | **✓ fully open, local-first** |
167
+ | Forgetting/decay | partial | ✗ | **✓** |
168
+ | Bi-temporal graph | partial | ✓ | **✓** |
169
+ | Native multi-repo model | ✗ | ✗ | **✓ (unique)** |
170
+ | Code-aware (AST/symbol graph) | ✗ | ✗ | **✓ (unique)** |
171
+ | MCP-native for coding agents | ✓ | ✗ | **✓** |
172
+
173
+ ---
174
+
175
+ ## Install
176
+
177
+ ```bash
178
+ pip install "engraphis[all]" # dashboard + MCP server + code graph + everything
179
+ pip install "engraphis[server]" # dashboard + REST API
180
+ pip install "engraphis[mcp]" # MCP server only
181
+ pip install engraphis # core library — numpy only, fully offline
182
+ ```
183
+
184
+ > First run downloads `all-MiniLM-L6-v2` (~80 MB). Without it, the engine falls back
185
+ > to a deterministic offline embedder so it always runs.
186
+
187
+ ---
188
+
189
+ ## Quickstart — dashboard (the headline)
190
+
191
+ ```bash
192
+ pip install "engraphis[server]"
193
+ engraphis-dashboard # → http://127.0.0.1:8700
194
+ engraphis-dashboard --install-shortcuts # → Desktop + Start Menu icons
195
+ ```
196
+
197
+ ---
198
+
199
+ ## Quickstart — MCP server (for coding agents)
200
+
201
+ ```bash
202
+ pip install "engraphis[mcp]"
203
+ engraphis-init # writes .env + prints config snippets
204
+ claude mcp add engraphis -- engraphis-mcp
205
+ ```
206
+
207
+ Your agent now has 18 tools — remember, recall (grounded + proactive), why, timeline,
208
+ forget, pin, correct, ingest, consolidate, index_repo, search_code, link, record_event,
209
+ start/end_session, stats. See the [MCP tools table](#mcp-tools) below.
210
+
211
+ ---
212
+
213
+ ## Quickstart — Python library
214
+
215
+ ```python
216
+ from engraphis.service import MemoryService
217
+
218
+ mem = MemoryService.create("engraphis.db")
219
+ mem.remember("Auth migrated from JWT to PASETO.", workspace="acme", repo="api")
220
+ hit = mem.recall("why did we change auth?", workspace="acme", repo="api")
221
+ print(hit["context"])
222
+ ```
223
+
224
+ The same `MemoryService` backs the dashboard, the Inspector, and the MCP server.
225
+
226
+ ---
227
+
228
+ ## Free forever vs. Pro
229
+
230
+ The engine, dashboard, Inspector, MCP server, and governance tools are free and Apache-2.0,
231
+ permanently. A license key (verified **offline** — no phone-home) unlocks the paid layer.
232
+
233
+ > **⚠️ Pro and Team are coming soon — not available for purchase yet.** Features below
234
+ > are built and gated but keys are not sold today. Do not pay anyone for an Engraphis license
235
+ > right now. Prices are targets, not live.
236
+
237
+ | | Free (available now) | Pro — coming soon | Team — coming soon |
238
+ |---|---|---|---|
239
+ | Dashboard WebUI + Inspector | ✓ | ✓ | ✓ |
240
+ | Memory engine + 18 MCP tools | ✓ | ✓ | ✓ |
241
+ | Analytics dashboard (growth, retention, decay forecast) | | ✓ | ✓ |
242
+ | Compliance export (full bi-temporal JSON dump) | | ✓ | ✓ |
243
+ | Multi-user Inspector: logins, roles, seat management | | | ✓ |
244
+ | Analytics HTML report export (self-contained, shareable) | | | ✓ |
245
+ | Priority support | | ✓ | ✓ |
246
+
247
+ ---
248
+
249
+ ## MCP tools
250
+
251
+ | Category | Tool | What it does |
252
+ |---|---|---|
253
+ | Write | `engraphis_remember` | Store a fact; deterministically resolved (add/reinforce/supersede) |
254
+ | Write | `engraphis_record_event` | Append a lightweight episodic log entry |
255
+ | Write | `engraphis_link` | Explicitly connect two related memories |
256
+ | Read | `engraphis_recall` | Hybrid vector + lexical + graph recall |
257
+ | Read | `engraphis_recall_grounded` | Cited answer from retrieved memories — or abstain |
258
+ | Read | `engraphis_recall_proactive` | "What should I know right now" — no query needed |
259
+ | Read | `engraphis_why` | Current answer + what it superseded |
260
+ | Read | `engraphis_timeline` | Full bi-temporal history, oldest first |
261
+ | Code | `engraphis_index_repo` | Parse a repo into the code symbol graph |
262
+ | Code | `engraphis_search_code` | Find symbols by name, with callers |
263
+ | Governance | `engraphis_forget` | Retire a memory — bi-temporal close, never deleted |
264
+ | Governance | `engraphis_pin` | Exempt from future automatic decay/pruning |
265
+ | Governance | `engraphis_correct` | Replace content without losing history |
266
+ | Session | `engraphis_start_session` / `engraphis_end_session` | Session lifecycle with cross-session handoff |
267
+ | Ops | `engraphis_stats` | Memory counts for health checks |
268
+
269
+ ---
270
+
271
+ ## Configuration
272
+
273
+ All via environment (or `.env`):
274
+
275
+ | Env Var | Default | Description |
276
+ |---------|---------|-------------|
277
+ | `ENGRAPHIS_DB_PATH` | `./engraphis.db` | SQLite database file |
278
+ | `ENGRAPHIS_HOST` | `127.0.0.1` | Server bind address |
279
+ | `ENGRAPHIS_PORT` | `8700` | Dashboard port |
280
+ | `ENGRAPHIS_API_TOKEN` | — | If set, REST API requires `Authorization: Bearer <token>` |
281
+ | `ENGRAPHIS_EMBED_MODEL` | `all-MiniLM-L6-v2` | sentence-transformers model |
282
+ | `ENGRAPHIS_LLM_PROVIDER` | `openai` | `openai \| anthropic \| google \| openrouter` |
283
+ | `ENGRAPHIS_LLM_API_KEY` | — | LLM API key (only for chat/synthesis) |
284
+ | `ENGRAPHIS_LICENSE_KEY` | — | Pro/Team key (or `~/.engraphis/license.key`) |
285
+
286
+ See `.env.example` for the full list.
287
+
288
+ ---
289
+
290
+ ## Project structure
291
+
292
+ ```
293
+ engraphis/
294
+ ├── engraphis/
295
+ │ ├── core/ # v2 engine — interfaces, store, recall, scoring, schema
296
+ │ ├── backends/ # pluggable embedder / vector index / reranker / codegraph
297
+ │ ├── service.py # validated MemoryService facade
298
+ │ ├── mcp_server.py # MCP server — 18 tools
299
+ │ ├── dashboard_app.py # dashboard WebUI (FastAPI)
300
+ │ ├── config.py / app.py # env settings / REST server
301
+ │ └── static/ # dashboard frontend
302
+ ├── eval/ # offline retrieval eval harness + datasets
303
+ ├── tests/ # pytest suite (offline, numpy-only core)
304
+ ├── scripts/ # start_dashboard, inspector, cli, init, consolidate
305
+ ├── Dockerfile / docker-compose.yml
306
+ └── pyproject.toml
307
+ ```
308
+
309
+ ---
310
+
311
+ ## Development
312
+
313
+ The offline quality gate (no network, no API key):
314
+
315
+ ```bash
316
+ pip install numpy pytest ruff
317
+ python -m pytest tests/ -q
318
+ python -m eval.harness --dataset eval/datasets/sample.jsonl --k 5
319
+ python -m eval.harness --dataset eval/datasets/codemem.jsonl --k 5
320
+ python -m eval.ablation
321
+ ruff check .
322
+ ```
323
+
324
+ Numbers, not assertions: the offline harness is a **correctness floor** (deterministic embedder).
325
+ LoCoMo / LongMemEval competitive numbers run separately with a real embedder — see
326
+ [`BENCHMARKS.md`](BENCHMARKS.md).
327
+
328
+ ---
329
+
330
+ ## License
331
+
332
+ Apache-2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE). "Engraphis" is a trademark of the
333
+ Engraphis project; the license does not grant trademark rights.