memoryking 0.1.0a2__tar.gz → 0.2.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 (432) hide show
  1. {memoryking-0.1.0a2 → memoryking-0.2.0}/NOTICE +6 -0
  2. memoryking-0.2.0/PKG-INFO +198 -0
  3. memoryking-0.2.0/README.md +165 -0
  4. {memoryking-0.1.0a2 → memoryking-0.2.0}/pyproject.toml +29 -7
  5. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/__init__.py +1 -1
  6. memoryking-0.2.0/src/memoryking/__main__.py +2588 -0
  7. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/adapter_state.py +4 -2
  8. memoryking-0.2.0/src/memoryking/adapters/anchor_schema.sql +7 -0
  9. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/atlas.py +94 -9
  10. memoryking-0.2.0/src/memoryking/adapters/blobs.py +315 -0
  11. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/browser_commands.py +24 -2
  12. memoryking-0.2.0/src/memoryking/adapters/consolidation.py +627 -0
  13. memoryking-0.2.0/src/memoryking/adapters/consolidation_schema.sql +18 -0
  14. memoryking-0.2.0/src/memoryking/adapters/corrections.py +333 -0
  15. memoryking-0.2.0/src/memoryking/adapters/corrections_schema.sql +21 -0
  16. memoryking-0.2.0/src/memoryking/adapters/credential_schema.sql +8 -0
  17. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/dashboard.py +34 -259
  18. memoryking-0.2.0/src/memoryking/adapters/dense_search.py +291 -0
  19. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/egress_policy.py +16 -1
  20. {memoryking-0.1.0a2/src/memoryking/contracts → memoryking-0.2.0/src/memoryking/adapters}/embedding.schema.json +1 -0
  21. memoryking-0.2.0/src/memoryking/adapters/embedding_store.py +928 -0
  22. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/execution.py +28 -10
  23. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/experience.py +37 -7
  24. {memoryking-0.1.0a2/src/memoryking/contracts → memoryking-0.2.0/src/memoryking/adapters}/experience.schema.json +5 -0
  25. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/experience_records.py +36 -5
  26. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/handoff.py +25 -21
  27. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/inference.py +28 -8
  28. memoryking-0.2.0/src/memoryking/adapters/inspection.py +1179 -0
  29. memoryking-0.2.0/src/memoryking/adapters/inspection.schema.json +568 -0
  30. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/knowledge.schema.json +521 -0
  31. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/knowledge_store.py +224 -28
  32. memoryking-0.2.0/src/memoryking/adapters/lexical_schema.sql +17 -0
  33. memoryking-0.2.0/src/memoryking/adapters/local_client.py +56 -0
  34. memoryking-0.2.0/src/memoryking/adapters/local_contract.py +45 -0
  35. memoryking-0.2.0/src/memoryking/adapters/local_embeddings.py +231 -0
  36. memoryking-0.2.0/src/memoryking/adapters/local_files.py +523 -0
  37. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/local_ipc.py +129 -43
  38. memoryking-0.2.0/src/memoryking/adapters/local_store.py +1112 -0
  39. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/local_wire.schema.json +5223 -3594
  40. memoryking-0.2.0/src/memoryking/adapters/mcp_common.py +141 -0
  41. memoryking-0.2.0/src/memoryking/adapters/models/bge-small-en-v1-5-onnx.json +34 -0
  42. memoryking-0.2.0/src/memoryking/adapters/models/ms-marco-minilm-l6-v2-onnx.json +57 -0
  43. memoryking-0.2.0/src/memoryking/adapters/operations_log.py +561 -0
  44. memoryking-0.2.0/src/memoryking/adapters/operations_schema.sql +11 -0
  45. memoryking-0.2.0/src/memoryking/adapters/outcome_drafts.py +361 -0
  46. memoryking-0.2.0/src/memoryking/adapters/plan_dashboard.py +51 -0
  47. memoryking-0.2.0/src/memoryking/adapters/plans.py +253 -0
  48. memoryking-0.2.0/src/memoryking/adapters/platform_support.py +251 -0
  49. memoryking-0.2.0/src/memoryking/adapters/position_schema.sql +5 -0
  50. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_admin.py +218 -21
  51. memoryking-0.2.0/src/memoryking/adapters/postgres_anchor_schema.sql +9 -0
  52. memoryking-0.2.0/src/memoryking/adapters/postgres_consolidation_schema.sql +20 -0
  53. memoryking-0.2.0/src/memoryking/adapters/postgres_corrections_schema.sql +30 -0
  54. memoryking-0.2.0/src/memoryking/adapters/postgres_credential_schema.sql +8 -0
  55. memoryking-0.2.0/src/memoryking/adapters/postgres_lexical_schema.sql +25 -0
  56. memoryking-0.2.0/src/memoryking/adapters/postgres_operations_schema.sql +18 -0
  57. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_pool.py +46 -6
  58. memoryking-0.2.0/src/memoryking/adapters/postgres_position_schema.sql +1 -0
  59. memoryking-0.2.0/src/memoryking/adapters/postgres_recovery.py +789 -0
  60. memoryking-0.2.0/src/memoryking/adapters/postgres_retention_schema.sql +31 -0
  61. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_sql.py +24 -0
  62. memoryking-0.2.0/src/memoryking/adapters/postgres_store.py +694 -0
  63. memoryking-0.2.0/src/memoryking/adapters/postgres_trust_schema.sql +20 -0
  64. memoryking-0.2.0/src/memoryking/adapters/postgres_vectors_schema.sql +24 -0
  65. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/processing_store.py +6 -4
  66. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/projects.py +7 -2
  67. memoryking-0.2.0/src/memoryking/adapters/proposals.py +245 -0
  68. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/ranking.py +2 -2
  69. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/repository_git.py +4 -3
  70. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/repository_store.py +7 -11
  71. memoryking-0.2.0/src/memoryking/adapters/retention_schema.sql +25 -0
  72. memoryking-0.2.0/src/memoryking/adapters/retrieval.py +2215 -0
  73. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/retrieval.schema.json +150 -2
  74. memoryking-0.2.0/src/memoryking/adapters/session_start.py +342 -0
  75. memoryking-0.2.0/src/memoryking/adapters/shared_control.py +65 -0
  76. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/shared_dashboard.py +62 -32
  77. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/shared_http.py +122 -14
  78. memoryking-0.2.0/src/memoryking/adapters/shared_mcp.py +216 -0
  79. memoryking-0.2.0/src/memoryking/adapters/shared_service.py +430 -0
  80. memoryking-0.2.0/src/memoryking/adapters/stdio.py +261 -0
  81. memoryking-0.2.0/src/memoryking/adapters/stdio.tools.json +2758 -0
  82. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/team.py +11 -3
  83. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/timeline.py +7 -4
  84. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/token_count.py +24 -0
  85. memoryking-0.2.0/src/memoryking/adapters/trust.py +123 -0
  86. memoryking-0.2.0/src/memoryking/adapters/trust_schema.sql +13 -0
  87. memoryking-0.2.0/src/memoryking/adapters/unreviewed.py +181 -0
  88. memoryking-0.2.0/src/memoryking/adapters/user_scope.py +227 -0
  89. memoryking-0.2.0/src/memoryking/adapters/vectors_schema.sql +23 -0
  90. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/app.css +63 -165
  91. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/app.js +127 -190
  92. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/graph.js +96 -3
  93. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/index.html +5 -56
  94. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/observatory.js +365 -33
  95. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/working.py +199 -44
  96. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/working.schema.json +454 -8
  97. memoryking-0.2.0/src/memoryking/application/blob_store.py +72 -0
  98. memoryking-0.2.0/src/memoryking/application/control_log.py +119 -0
  99. memoryking-0.2.0/src/memoryking/application/lexical_index.py +313 -0
  100. memoryking-0.2.0/src/memoryking/application/records.py +335 -0
  101. memoryking-0.2.0/src/memoryking/application/retention.py +394 -0
  102. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/application/storage.py +49 -4
  103. memoryking-0.2.0/src/memoryking/application/store_core.py +2086 -0
  104. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/backups.py +23 -3
  105. memoryking-0.2.0/src/memoryking/client.py +287 -0
  106. memoryking-0.2.0/src/memoryking/consolidation.py +362 -0
  107. memoryking-0.2.0/src/memoryking/contracts/__init__.py +20 -0
  108. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/canonical.py +4 -1
  109. {memoryking-0.1.0a2/src/memoryking/adapters → memoryking-0.2.0/src/memoryking/contracts}/embedding.schema.json +1 -0
  110. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/embedding_generated.py +1 -1
  111. {memoryking-0.1.0a2/src/memoryking/adapters → memoryking-0.2.0/src/memoryking/contracts}/experience.schema.json +5 -0
  112. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/experience_generated.py +1 -0
  113. memoryking-0.2.0/src/memoryking/contracts/problems.py +180 -0
  114. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/retrieval.schema.json +150 -2
  115. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/retrieval_generated.py +27 -2
  116. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/validation.py +25 -9
  117. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/working.schema.json +454 -8
  118. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/working_generated.py +80 -2
  119. memoryking-0.2.0/src/memoryking/daemon.py +185 -0
  120. memoryking-0.2.0/src/memoryking/domain/anchors.py +97 -0
  121. memoryking-0.2.0/src/memoryking/domain/briefing.py +224 -0
  122. memoryking-0.2.0/src/memoryking/domain/briefing_text.py +559 -0
  123. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/checkpoint.py +7 -0
  124. memoryking-0.2.0/src/memoryking/domain/duplicates.py +171 -0
  125. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/embeddings.py +18 -0
  126. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/hints.py +79 -23
  127. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/http_status.py +15 -2
  128. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/learning.py +3 -1
  129. memoryking-0.2.0/src/memoryking/domain/lexicon.py +350 -0
  130. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/local.py +28 -2
  131. memoryking-0.2.0/src/memoryking/domain/names.py +102 -0
  132. memoryking-0.2.0/src/memoryking/domain/passages.py +208 -0
  133. memoryking-0.2.0/src/memoryking/domain/plans.py +140 -0
  134. memoryking-0.2.0/src/memoryking/domain/provenance.py +129 -0
  135. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/selectors.py +23 -5
  136. memoryking-0.2.0/src/memoryking/domain/timeexpr.py +557 -0
  137. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/embedding_loop.py +48 -5
  138. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/embedding_worker.py +3 -1
  139. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/harness.py +5 -2
  140. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/harness_context.py +1 -1
  141. memoryking-0.2.0/src/memoryking/health.py +104 -0
  142. memoryking-0.2.0/src/memoryking/hook_check.py +291 -0
  143. memoryking-0.2.0/src/memoryking/hook_cli.py +260 -0
  144. memoryking-0.2.0/src/memoryking/hooks.py +277 -0
  145. memoryking-0.2.0/src/memoryking/host_hooks.py +1328 -0
  146. memoryking-0.2.0/src/memoryking/integrations/__init__.py +1 -0
  147. memoryking-0.2.0/src/memoryking/integrations/claude_agent_sdk.py +234 -0
  148. memoryking-0.2.0/src/memoryking/integrations/function_calling.py +136 -0
  149. memoryking-0.2.0/src/memoryking/integrations/langchain.py +199 -0
  150. memoryking-0.2.0/src/memoryking/integrations/llama_index.py +114 -0
  151. memoryking-0.2.0/src/memoryking/integrations/openai_agents.py +58 -0
  152. memoryking-0.2.0/src/memoryking/lean.py +1067 -0
  153. memoryking-0.2.0/src/memoryking/locks/core.lock +529 -0
  154. memoryking-0.2.0/src/memoryking/locks/tokenizers.lock +387 -0
  155. memoryking-0.2.0/src/memoryking/memory_api.py +277 -0
  156. memoryking-0.2.0/src/memoryking/memory_tool.py +828 -0
  157. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/migration.py +8 -2
  158. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/model_install.py +15 -8
  159. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/observability.py +5 -0
  160. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/observability_metrics.py +15 -2
  161. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/profiles.py +38 -4
  162. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/providers.py +6 -1
  163. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/pytest_plugin.py +9 -8
  164. memoryking-0.2.0/src/memoryking/relay.py +179 -0
  165. memoryking-0.2.0/src/memoryking/relay_client.py +273 -0
  166. memoryking-0.2.0/src/memoryking/reviewing.py +179 -0
  167. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/sdk.py +81 -11
  168. memoryking-0.2.0/src/memoryking/semantic.py +145 -0
  169. memoryking-0.2.0/src/memoryking/session_bindings.py +86 -0
  170. memoryking-0.2.0/src/memoryking/setup_host.py +556 -0
  171. memoryking-0.2.0/src/memoryking/setup_windows.py +601 -0
  172. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/shared.py +150 -9
  173. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/shared_sdk.py +3 -1
  174. memoryking-0.2.0/src/memoryking/vault.py +200 -0
  175. memoryking-0.2.0/src/memoryking.egg-info/PKG-INFO +198 -0
  176. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking.egg-info/SOURCES.txt +154 -0
  177. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking.egg-info/entry_points.txt +1 -0
  178. memoryking-0.2.0/tests/test_anchors.py +175 -0
  179. memoryking-0.2.0/tests/test_architecture.py +32 -0
  180. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_atlas.py +48 -0
  181. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_backups.py +27 -0
  182. memoryking-0.2.0/tests/test_blob_backup.py +263 -0
  183. memoryking-0.2.0/tests/test_blob_port.py +223 -0
  184. memoryking-0.2.0/tests/test_briefing_concurrency.py +739 -0
  185. memoryking-0.2.0/tests/test_budget_text.py +157 -0
  186. memoryking-0.2.0/tests/test_catalog.py +139 -0
  187. memoryking-0.2.0/tests/test_cli.py +1019 -0
  188. memoryking-0.2.0/tests/test_client.py +168 -0
  189. memoryking-0.2.0/tests/test_consolidation.py +639 -0
  190. memoryking-0.2.0/tests/test_consolidation_cli.py +139 -0
  191. memoryking-0.2.0/tests/test_consolidation_supervisor.py +309 -0
  192. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_contracts.py +28 -0
  193. memoryking-0.2.0/tests/test_control_log_port.py +207 -0
  194. memoryking-0.2.0/tests/test_corrections.py +491 -0
  195. memoryking-0.2.0/tests/test_credentials.py +302 -0
  196. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_dashboard.py +147 -142
  197. memoryking-0.2.0/tests/test_dense_retrieval.py +391 -0
  198. memoryking-0.2.0/tests/test_durable_sync.py +63 -0
  199. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_egress.py +8 -2
  200. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_embedding_jobs.py +2 -2
  201. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_embedding_worker.py +2 -2
  202. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_error_hints.py +5 -3
  203. memoryking-0.2.0/tests/test_evidence_recall.py +217 -0
  204. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_execution.py +14 -3
  205. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_experience.py +61 -0
  206. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_experience_migrations.py +17 -4
  207. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_experience_records.py +72 -2
  208. memoryking-0.2.0/tests/test_function_calling.py +148 -0
  209. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_handoff.py +100 -2
  210. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_harness.py +2 -1
  211. memoryking-0.2.0/tests/test_health.py +187 -0
  212. memoryking-0.2.0/tests/test_hook_replay.py +770 -0
  213. memoryking-0.2.0/tests/test_host_hooks.py +758 -0
  214. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_inference.py +54 -0
  215. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_inspection.py +70 -0
  216. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_journal.py +102 -2
  217. memoryking-0.2.0/tests/test_journal_cache.py +101 -0
  218. memoryking-0.2.0/tests/test_journal_repair.py +152 -0
  219. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_knowledge.py +183 -1
  220. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_legacy_migration.py +12 -12
  221. memoryking-0.2.0/tests/test_lexical_search.py +607 -0
  222. memoryking-0.2.0/tests/test_lexicon.py +146 -0
  223. memoryking-0.2.0/tests/test_local_ipc_busy.py +87 -0
  224. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_local_store.py +33 -5
  225. memoryking-0.2.0/tests/test_locks.py +68 -0
  226. memoryking-0.2.0/tests/test_longhaul_audit.py +945 -0
  227. memoryking-0.2.0/tests/test_longhaul_benchmark.py +1429 -0
  228. memoryking-0.2.0/tests/test_longhaul_hookprobe.py +242 -0
  229. memoryking-0.2.0/tests/test_longhaul_poolprobe.py +84 -0
  230. memoryking-0.2.0/tests/test_longhaul_preflight.py +315 -0
  231. memoryking-0.2.0/tests/test_longhaul_protocol.py +259 -0
  232. memoryking-0.2.0/tests/test_longhaul_stage2.py +472 -0
  233. memoryking-0.2.0/tests/test_longhaul_stage4.py +432 -0
  234. memoryking-0.2.0/tests/test_longhaul_stage5.py +244 -0
  235. memoryking-0.2.0/tests/test_longhaul_systems.py +440 -0
  236. memoryking-0.2.0/tests/test_mcp_surface.py +570 -0
  237. memoryking-0.2.0/tests/test_memory_tool.py +424 -0
  238. memoryking-0.2.0/tests/test_names.py +191 -0
  239. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_observability.py +9 -1
  240. memoryking-0.2.0/tests/test_operability.py +331 -0
  241. memoryking-0.2.0/tests/test_operations_log.py +580 -0
  242. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_optional_migrations.py +2 -2
  243. memoryking-0.2.0/tests/test_outcome_benchmark.py +869 -0
  244. memoryking-0.2.0/tests/test_outcome_drafts.py +269 -0
  245. memoryking-0.2.0/tests/test_passages.py +747 -0
  246. memoryking-0.2.0/tests/test_pgvector.py +208 -0
  247. memoryking-0.2.0/tests/test_plan_recovery.py +128 -0
  248. memoryking-0.2.0/tests/test_plans.py +416 -0
  249. memoryking-0.2.0/tests/test_platform_support.py +134 -0
  250. memoryking-0.2.0/tests/test_postgres_consolidation.py +24 -0
  251. memoryking-0.2.0/tests/test_postgres_credentials.py +334 -0
  252. memoryking-0.2.0/tests/test_postgres_delegation.py +242 -0
  253. memoryking-0.2.0/tests/test_postgres_journal_repair.py +182 -0
  254. memoryking-0.2.0/tests/test_postgres_lease_roles.py +131 -0
  255. memoryking-0.2.0/tests/test_postgres_operations_log.py +280 -0
  256. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_optional.py +2 -1
  257. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_parity.py +46 -4
  258. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_sql.py +5 -1
  259. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_store.py +382 -0
  260. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_processing_transport.py +1 -1
  261. memoryking-0.2.0/tests/test_prompt_pages.py +115 -0
  262. memoryking-0.2.0/tests/test_prompt_user_scope.py +107 -0
  263. memoryking-0.2.0/tests/test_prompt_view.py +266 -0
  264. memoryking-0.2.0/tests/test_proposals.py +145 -0
  265. memoryking-0.2.0/tests/test_provenance_views.py +286 -0
  266. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_ranking.py +20 -1
  267. memoryking-0.2.0/tests/test_records.py +353 -0
  268. memoryking-0.2.0/tests/test_relay.py +287 -0
  269. memoryking-0.2.0/tests/test_relay_client.py +183 -0
  270. memoryking-0.2.0/tests/test_relay_windows.py +252 -0
  271. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_repository.py +1 -1
  272. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_repository_git.py +1 -0
  273. memoryking-0.2.0/tests/test_reranker.py +212 -0
  274. memoryking-0.2.0/tests/test_retention.py +401 -0
  275. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_retrieval.py +68 -1
  276. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_retrieval_benchmark.py +2 -0
  277. memoryking-0.2.0/tests/test_review_cli.py +685 -0
  278. memoryking-0.2.0/tests/test_scale_recovery.py +322 -0
  279. memoryking-0.2.0/tests/test_scale_regression.py +57 -0
  280. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_sdk.py +320 -10
  281. memoryking-0.2.0/tests/test_semantic.py +266 -0
  282. memoryking-0.2.0/tests/test_session_bindings.py +89 -0
  283. memoryking-0.2.0/tests/test_setup.py +543 -0
  284. memoryking-0.2.0/tests/test_setup_windows.py +468 -0
  285. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_acceptance_matrix.py +40 -36
  286. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_dashboard.py +58 -1
  287. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_gateway.py +2 -1
  288. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_http.py +304 -8
  289. memoryking-0.2.0/tests/test_stale_facts_benchmark.py +82 -0
  290. memoryking-0.2.0/tests/test_time_question.py +351 -0
  291. memoryking-0.2.0/tests/test_trust.py +174 -0
  292. memoryking-0.2.0/tests/test_unreviewed_tier.py +301 -0
  293. memoryking-0.2.0/tests/test_user_scope.py +313 -0
  294. memoryking-0.2.0/tests/test_user_scope_cli.py +307 -0
  295. memoryking-0.2.0/tests/test_vault.py +178 -0
  296. memoryking-0.2.0/tests/test_vector_scan.py +47 -0
  297. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_working.py +265 -3
  298. memoryking-0.1.0a2/PKG-INFO +0 -142
  299. memoryking-0.1.0a2/README.md +0 -111
  300. memoryking-0.1.0a2/src/memoryking/__main__.py +0 -885
  301. memoryking-0.1.0a2/src/memoryking/adapters/dense_search.py +0 -86
  302. memoryking-0.1.0a2/src/memoryking/adapters/embedding_store.py +0 -469
  303. memoryking-0.1.0a2/src/memoryking/adapters/inspection.py +0 -392
  304. memoryking-0.1.0a2/src/memoryking/adapters/inspection.schema.json +0 -248
  305. memoryking-0.1.0a2/src/memoryking/adapters/local_contract.py +0 -20
  306. memoryking-0.1.0a2/src/memoryking/adapters/local_embeddings.py +0 -107
  307. memoryking-0.1.0a2/src/memoryking/adapters/local_files.py +0 -242
  308. memoryking-0.1.0a2/src/memoryking/adapters/local_store.py +0 -623
  309. memoryking-0.1.0a2/src/memoryking/adapters/postgres_recovery.py +0 -517
  310. memoryking-0.1.0a2/src/memoryking/adapters/postgres_store.py +0 -402
  311. memoryking-0.1.0a2/src/memoryking/adapters/retrieval.py +0 -1033
  312. memoryking-0.1.0a2/src/memoryking/adapters/shared_control.py +0 -40
  313. memoryking-0.1.0a2/src/memoryking/adapters/shared_mcp.py +0 -154
  314. memoryking-0.1.0a2/src/memoryking/adapters/shared_service.py +0 -81
  315. memoryking-0.1.0a2/src/memoryking/adapters/stdio.py +0 -193
  316. memoryking-0.1.0a2/src/memoryking/adapters/stdio.tools.json +0 -4580
  317. memoryking-0.1.0a2/src/memoryking/application/store_core.py +0 -1190
  318. memoryking-0.1.0a2/src/memoryking/contracts/__init__.py +0 -6
  319. memoryking-0.1.0a2/src/memoryking/domain/briefing.py +0 -108
  320. memoryking-0.1.0a2/src/memoryking/domain/briefing_text.py +0 -217
  321. memoryking-0.1.0a2/src/memoryking/hooks.py +0 -138
  322. memoryking-0.1.0a2/src/memoryking/lean.py +0 -323
  323. memoryking-0.1.0a2/src/memoryking.egg-info/PKG-INFO +0 -142
  324. memoryking-0.1.0a2/tests/test_architecture.py +0 -17
  325. memoryking-0.1.0a2/tests/test_cli.py +0 -457
  326. memoryking-0.1.0a2/tests/test_dense_retrieval.py +0 -182
  327. memoryking-0.1.0a2/tests/test_pgvector.py +0 -52
  328. {memoryking-0.1.0a2 → memoryking-0.2.0}/LICENSE +0 -0
  329. {memoryking-0.1.0a2 → memoryking-0.2.0}/setup.cfg +0 -0
  330. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/__init__.py +0 -0
  331. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/egress_schema.sql +0 -0
  332. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/experience_schema.sql +0 -0
  333. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/handoff.schema.json +0 -0
  334. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/handoff_schema.sql +0 -0
  335. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/index_schema.sql +0 -0
  336. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/inference.schema.json +0 -0
  337. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/knowledge_schema.sql +0 -0
  338. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/legacy_snapshot.py +0 -0
  339. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/legacy_tables.py +0 -0
  340. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/local_schema.sql +0 -0
  341. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/models/minilm-l6-v2-onnx.json +0 -0
  342. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/optional_schema.sql +0 -0
  343. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_counter.sql +0 -0
  344. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_egress_schema.sql +0 -0
  345. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_experience_schema.sql +0 -0
  346. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_index_schema.sql +0 -0
  347. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_optional_schema.sql +0 -0
  348. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_schema.sql +0 -0
  349. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/postgres_summary_schema.sql +0 -0
  350. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/processing.schema.json +0 -0
  351. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/repository.schema.json +0 -0
  352. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/repository_schema.sql +0 -0
  353. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/retrieval_schema.sql +0 -0
  354. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/shared_gateway.py +0 -0
  355. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/summary_schema.sql +0 -0
  356. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/tokenizers/LICENSE +0 -0
  357. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/tokenizers/cl100k_base.tiktoken +0 -0
  358. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/brand.js +0 -0
  359. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/crown-mono.svg +0 -0
  360. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/crown.svg +0 -0
  361. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/elephant.png +0 -0
  362. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/favicon.svg +0 -0
  363. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/graph-layout.js +0 -0
  364. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/graph-worker.js +0 -0
  365. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/team.js +0 -0
  366. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/web/wordmark.svg +0 -0
  367. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/adapters/working_schema.sql +0 -0
  368. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/application/__init__.py +0 -0
  369. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/application/conformance.py +0 -0
  370. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/application/legacy_import.py +0 -0
  371. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/application/local_port.py +0 -0
  372. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/__main__.py +0 -0
  373. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/generated.py +0 -0
  374. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/handoff.schema.json +0 -0
  375. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/handoff_generated.py +0 -0
  376. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/inference.schema.json +0 -0
  377. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/inference_generated.py +0 -0
  378. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/processing.schema.json +0 -0
  379. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/processing_generated.py +0 -0
  380. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/py.typed +0 -0
  381. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/repository.schema.json +0 -0
  382. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/repository_generated.py +0 -0
  383. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/contracts/schema.json +0 -0
  384. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/__init__.py +0 -0
  385. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/compression.py +0 -0
  386. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/delta.py +0 -0
  387. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/repository.py +0 -0
  388. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/summary.py +0 -0
  389. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/domain/usage.py +0 -0
  390. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/py.typed +0 -0
  391. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/reference_agent.py +0 -0
  392. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/repository_worker.py +0 -0
  393. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking/resume_adapter.py +0 -0
  394. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking.egg-info/dependency_links.txt +0 -0
  395. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking.egg-info/requires.txt +2 -2
  396. {memoryking-0.1.0a2 → memoryking-0.2.0}/src/memoryking.egg-info/top_level.txt +0 -0
  397. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_checkpoint_complete.py +0 -0
  398. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_conformance.py +0 -0
  399. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_delta.py +0 -0
  400. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_embedding_contracts.py +0 -0
  401. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_embeddings.py +0 -0
  402. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_evaluation_audit.py +0 -0
  403. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_experience_contracts.py +0 -0
  404. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_experience_repository.py +0 -0
  405. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_ownership_cleanup.py +0 -0
  406. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_atlas.py +0 -0
  407. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_concurrency.py +0 -0
  408. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_database.py +0 -0
  409. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_delta.py +0 -0
  410. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_dense.py +0 -0
  411. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_egress.py +0 -0
  412. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_embedding_jobs.py +0 -0
  413. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_experience.py +0 -0
  414. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_foundation_parity.py +0 -0
  415. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_inference.py +0 -0
  416. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_migration.py +0 -0
  417. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_operation_recovery.py +0 -0
  418. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_postgres_processing.py +0 -0
  419. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_processing.py +0 -0
  420. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_processing_contracts.py +0 -0
  421. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_processing_repository.py +0 -0
  422. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_qualification_security.py +0 -0
  423. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_reference_agent.py +0 -0
  424. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_report_evidence.py +0 -0
  425. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_repository_contracts.py +0 -0
  426. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_repository_harness.py +0 -0
  427. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_resume_adapter.py +0 -0
  428. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_conformance_runner.py +0 -0
  429. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_shared_resume_adapter.py +0 -0
  430. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_summary.py +0 -0
  431. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_team.py +0 -0
  432. {memoryking-0.1.0a2 → memoryking-0.2.0}/tests/test_usage.py +0 -0
@@ -10,3 +10,9 @@ project, Copyright (c) 2022 OpenAI, Shantanu Jain, under the MIT License; its no
10
10
  is kept at src/memoryking/adapters/tokenizers/LICENSE. The optional local embedding
11
11
  model is not included; its manifest records the model's own Apache-2.0 licence and
12
12
  it is downloaded only on request.
13
+
14
+ The test fixture fixtures/evaluation/longmemeval-regression-sample.json contains 72
15
+ questions and their evidence sessions from the LongMemEval dataset (Wu et al., the
16
+ "longmemeval-cleaned" release), Copyright (c) 2024 Di Wu, under the MIT License; its
17
+ notice is kept at fixtures/evaluation/LONGMEMEVAL-LICENSE. The fixture is not part of
18
+ the installed package.
@@ -0,0 +1,198 @@
1
+ Metadata-Version: 2.4
2
+ Name: memoryking
3
+ Version: 0.2.0
4
+ Summary: MemoryKing local memory, checkpoint and recovery service
5
+ Author: James King
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Repository, https://github.com/jamesking-us/memoryking
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: MacOS
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Requires-Python: <3.14,>=3.12
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: NOTICE
21
+ Requires-Dist: jsonschema==4.26.0
22
+ Requires-Dist: onnxruntime==1.23.2
23
+ Requires-Dist: numpy==2.5.4
24
+ Requires-Dist: tokenizers==0.23.3
25
+ Provides-Extra: tokenizers
26
+ Requires-Dist: tiktoken==0.12.0; extra == "tokenizers"
27
+ Provides-Extra: embeddings
28
+ Provides-Extra: shared
29
+ Requires-Dist: psycopg[binary]==3.3.6; extra == "shared"
30
+ Requires-Dist: psycopg-pool==3.3.3; extra == "shared"
31
+ Requires-Dist: mcp==2.3.0; extra == "shared"
32
+ Dynamic: license-file
33
+
34
+ <p align="center"><img src="https://raw.githubusercontent.com/jamesking-us/memoryking/main/src/memoryking/adapters/web/elephant.png" width="180" alt="MemoryKing" /></p>
35
+
36
+ # Give your AI agents a memory they can pick up again
37
+
38
+ MemoryKing keeps the useful context behind an agent's work: what it learned, what it tried, what must not be forgotten, and what should happen next.
39
+
40
+ Think of it as a **shared project notebook with a save point**. When a conversation ends, an agent restarts, or another agent takes over, the work can continue from a recorded state instead of starting with a blank page.
41
+
42
+ It is a service that you connect to your agents. It does not automatically read your chats or run agents for you.
43
+
44
+ ## How it measures up
45
+
46
+ We tested MemoryKing head to head against three other memory products, and against simply handing the agent every raw transcript to search. Each got the same tasks with a real coding agent (Claude Code). **MemoryKing had the top score in all four tests**, level with a plain notes file in one.
47
+
48
+ | What we tested | MemoryKing | Runner-up | Who the runner-up was |
49
+ | --- | ---: | ---: | --- |
50
+ | Finding one fact hidden among 2,000 earlier sessions | **12 of 12** | 9 of 12 | Searching the raw transcripts, with no memory product (the best other product got 6) |
51
+ | Handling corrected facts, deleted memories, several projects and planted instructions | **23 of 27** | 21 of 27 | Knowledge Graph Memory server |
52
+ | Answering questions about long chat histories (the public LongMemEval set) | **51 of 60** | 49 of 60 | Basic Memory |
53
+ | Saving its own memory across four real sessions | **4 of 4** | 4 of 4 | A plain notes file (the other three products got 0) |
54
+
55
+ MemoryKing also gave the agent the least to read: 123,000 tokens per task on average, against 150,000 for the next lowest (MCP Memory Service) and about 218,000 for the other two products.
56
+
57
+ What that means in practice:
58
+
59
+ - **Nothing missed in a long history.** MemoryKing passed all 12 tasks at 2,000 sessions. The tests confirm its lead over Basic Memory there, and over MCP Memory Service at both sizes.
60
+ - **Most questions answered.** MemoryKing answered 51 of 60 questions correctly, more than any other product, and the test confirms its lead over a plain text search. Search by meaning is part of the standard install.
61
+ - **Less to read, and quicker.** The agent read over 40% less text with MemoryKing than with Basic Memory or the Knowledge Graph Memory server, and finished sooner than with any of the others. The tests confirm both.
62
+ - **Corrections followed.** When a fact changed over time, the agent with MemoryKing used the current value in 8 of 8 tasks.
63
+ - **Projects kept apart.** A fact private to one project never reached a session in another project with MemoryKing. The other three products keep one store for every project, and it reached 7 of their 9 sessions.
64
+ - **Planted instructions kept out.** A web page with a hidden instruction sat in the history. With MemoryKing it never reached the agent in any of 6 sessions.
65
+ - **It saves by itself.** When each product had to save its own memory over four real sessions, MemoryKing passed 4 of 4 tasks. With the other three products the corrected fact never reached the last session, and they passed none of the 8 runs that counted.
66
+ - **From ordinary use.** In the first two tests MemoryKing had only what its hooks capture in a normal session. The other three were given a head start: every earlier session was written into them in full.
67
+
68
+ Every product, every test:
69
+
70
+ | Memory product | Passed, 2,000 sessions | Passed, 200 sessions | Questions answered | Text read per task |
71
+ | --- | ---: | ---: | ---: | ---: |
72
+ | **MemoryKing**, as `memoryking setup` installs it | **12 of 12** | **23 of 27** | **51 of 60** | **123,000 tokens** |
73
+ | Knowledge Graph Memory server 2.2.1 (`@modelcontextprotocol/server-memory`) | 6 of 12 | 21 of 27 | 9 of 60 | 218,000 tokens |
74
+ | Basic Memory 1.0.0 | 4 of 12 | 19 of 27 | 49 of 60 | 219,000 tokens |
75
+ | MCP Memory Service 13.0.0 | 1 of 12 | 11 of 27 | 47 of 60 | 150,000 tokens |
76
+ | No memory product: every raw transcript in a folder to search | 9 of 12 | 20 of 27 | 38 of 60 | 168,000 tokens |
77
+
78
+ These are synthetic tasks and a public question set, with one model and one run per task, so read them as a guide, not a guarantee. The leads named as confirmed above passed a statistical test; the other gaps, including those to Basic Memory and MCP Memory Service on the questions, are too small for this many tasks to confirm. Results also move between draws: an earlier draw at 2,000 sessions, run before a fault in the benchmark was fixed and before a change to MemoryKing, gave MemoryKing 6 of 12, and with keyword search alone it answered 43 of the 60 questions. In three of the 27 tasks MemoryKing was given one saved preference that an agent would normally save itself; without those three the counts are 20, 18, 16, 9 and 18 of 24. The Knowledge Graph Memory server's 9 of 60 reflects its literal word search as our test drives it, not an agent trying several searches. In a separate run at 2,000 sessions MemoryKing passed 8 of 12 tasks and a notes file passed 1. The records of the [2,000-session run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t1-2000-fixed-generator-52aad17.md), the [200-session run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-s2-tracks-52aad17.md), the [four-session test](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-s4-lived-99b1410.md), the question-answering runs ([keyword search](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t5-99b1410.md), [with search by meaning](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t5b-semantic-c79e1a1.md)) and the [notes-file run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t1-2000-7aceafe.md) give the method and every result, and the [results folder](https://github.com/jamesking-us/memoryking/tree/main/benchmarks/longhaul/results) holds the earlier runs.
79
+
80
+ ## Why it is useful
81
+
82
+ Imagine an agent investigating a checkout bug. It discovers that a retry can charge a customer twice, tries a fix that fails, and runs out of context before finishing.
83
+
84
+ With MemoryKing, it can leave the next agent:
85
+
86
+ - **The goal:** fix the retry without creating duplicate charges.
87
+ - **The evidence:** the relevant error and test output, with their sources.
88
+ - **The failed approach:** what was tried and why not to repeat it.
89
+ - **The unfinished work:** the patch state, missing tests and next action.
90
+ - **The boundaries:** use the sandbox and keep production changes subject to approval.
91
+
92
+ The next agent receives a focused briefing and the saved task state. A reviewer can see the evidence and what is still unverified. This is an illustrative workflow; your integration supplies the observations and checks.
93
+
94
+ ```mermaid
95
+ flowchart LR
96
+ A[Agent does work] --> B[Save findings and task state]
97
+ B --> C[MemoryKing checks access and relevance]
98
+ C --> D[Next session gets a focused briefing]
99
+ D --> E[Agent continues or hands off]
100
+ E --> B
101
+ ```
102
+
103
+ ## What is new
104
+
105
+ One command, `memoryking setup`, connects Claude Code, Codex or any other host that starts MCP servers: it creates a store, starts the service, issues the agent its own limited credential, registers the tools and installs session hooks. The default tool set is now small and answers in readable Markdown, and an agent can also keep preferences that follow you across every project. Token budgets count what the model really receives, questions that contain dates ("what did we decide last week") are understood, and a model you allow can draft claims for you to review. Credentials can be rotated, and a delegated token now acts as the person who issued it (a breaking change that the changelog explains). The [changelog](https://github.com/jamesking-us/memoryking/blob/main/CHANGELOG.md) lists everything, newest first, and the [release page](https://github.com/jamesking-us/memoryking/releases) carries the notes of each published version.
106
+
107
+ ## What it does for agents
108
+
109
+ | Need | What MemoryKing provides |
110
+ | --- | --- |
111
+ | Remember useful findings | Searchable observations with source attribution; reviewed knowledge stays distinct from unverified notes. Exact names (paths, symbols, tickets, hosts, error codes) are anchored at capture and found exactly; memories strengthen with use and fade with disuse without ever being deleted. An optional local cross-encoder can reorder the shortlist on request, with no egress. |
112
+ | Resume unfinished work | Checkpoints containing the objective, constraints, failed attempts, verification gaps and next actions, opened by a three-sentence "where this left off" summary. |
113
+ | Work together | Handoffs bound to the recipient's current permissions. |
114
+ | Follow a plan | Named plans with phases, prerequisites, completed steps and blockers; a step counts as done only with evidence, and the dashboard shows the same progress agents report. |
115
+ | Keep context manageable | Focused briefings with explicit output budgets and links back to evidence. |
116
+ | Avoid stale advice | Repository identity, applicability rules and freshness checks for guidance tied to code. |
117
+ | Recover safely | Records of uncertain operations and history-aware backup/restore, so a restart does not silently authorize repeating an action. |
118
+ | Understand what happened | A dashboard with capacity, task progress, a per-project timeline, a memory graph, on-demand briefings with their receipts, and retrieval history. |
119
+ | Fit any agent host | A small default MCP tool set (eleven tools: remember, recall, save progress, resume, hand off, propose, correct, forget, fetch, feedback and recent, plus a twelfth, confirm, only if you turn on chat review) for Claude Code, Codex, Grok or any stdio host; cited Markdown briefings; capture from the CLI, pytest or git hooks; `memoryking setup` also installs session hooks that load memory at the start of a session and save it before compaction and at the end. |
120
+ | Use any Claude API agent | Anthropic's memory tool answered from a project: notes are versioned observations, claim files are proposals, every write has a receipt. The same files export as a Markdown vault for hand editing and import back as versions and proposals. |
121
+ | Keep the review queue fed | Claims are drafted from repeated evidence with their sources attached, without a model, or by a model you allow under your egress policy, and wait for review like any proposal; nothing becomes knowledge by itself. |
122
+ | Hold what you do not trust yet | Mark a source untrusted and its captures are recorded but invisible to every briefing and review until an admin releases them. |
123
+ | Know where a memory went | For any observation, every claim, checkpoint, handoff, summary and briefing built from it and who received them, from the dashboard or `memoryking influence`. |
124
+ | Know whether memory is paying for itself | A health report from the store's own receipts: helpful feedback, empty briefings, memory never read, claims that lost their evidence and the review backlog, with fixed thresholds and no model grading itself, from the dashboard or `memoryking health`. |
125
+ | Know what to do when something is refused | Every error reply carries a one-line hint, and a [generated page](https://github.com/jamesking-us/memoryking/blob/main/docs/error-codes.md) lists them all. |
126
+
127
+ The core runs locally **without a model account, GPU or paid API**. A shared PostgreSQL profile supports multiple agents and tenants. Search understands meaning, not only matching words: setup downloads a small search model (about 130 MB) once, says so before it does, and never contacts that host again. If you do want MemoryKing itself to talk to a model (Anthropic, OpenAI, xAI, Google Vertex AI, or one running on your own machine), you write a short policy saying which, and every request it sends is checked against that policy and recorded.
128
+
129
+ ## See it work
130
+
131
+ You need Python **3.12** (3.13 also works). On macOS and Linux, everything runs on your own computer. On Windows, the agent's side runs directly, and the memory itself needs [WSL2 or Docker Desktop](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md#on-windows) on the same computer; one `memoryking setup` command then sets up both.
132
+
133
+ From a terminal on macOS or Linux:
134
+
135
+ ```sh
136
+ python3.12 -m venv .venv
137
+ .venv/bin/python -I -m pip install memoryking
138
+ git clone https://github.com/jamesking-us/memoryking.git
139
+ .venv/bin/python memoryking/examples/remember_and_resume.py
140
+ ```
141
+
142
+ The first two lines install the released package; the checkout is only there for the example. The example creates a temporary store, saves a finding and an unfinished task, closes the first connection, and resumes through a new client. It prints a readable walkthrough, makes no model requests, and removes its temporary data when finished.
143
+
144
+ To connect an agent for real, run `memoryking setup claude-code --project my-app` (or `codex`, or `generic` for any other host). It creates a store, starts the service in the background, gives the agent a limited credential, registers the memory tools and installs the session hooks, and downloads the search model, after telling you what it fetches and from where (`--no-semantic` skips that and leaves search by keywords; if the download fails, setup still finishes and tells you how to retry); `memoryking setup ... --remove` undoes it. The [getting started guide](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md) walks through it, then `status`, `doctor` and `dashboard open` need no paths. If you are evaluating the idea rather than installing software, start with the [agent workflows](https://github.com/jamesking-us/memoryking/blob/main/docs/agent-guide.md).
145
+
146
+ ## See what your agents are doing
147
+
148
+ ![MemoryKing dashboard overview showing capacity for each bounded resource, a project card with record counts and latest activity, and a synthetic task opened by its three-sentence "where this left off" summary](https://raw.githubusercontent.com/jamesking-us/memoryking/main/docs/images/dashboard.jpg)
149
+
150
+ *Dashboard overview with synthetic example data: capacity first, then the projects you can read, then the project's task activity with its summary. Progress reflects saved agent reports and evidence.*
151
+
152
+ The dashboard helps you inspect recorded work without reading a long chat transcript. Projects you can read are listed with their record counts; pick one and every view follows it.
153
+
154
+ - **Overview:** capacity use for each bounded resource, with a warning from 80 percent.
155
+ - **Task activity:** saved goals, completed and pending criteria, blockers and observed heartbeats.
156
+ - **Plans:** how much of a piece of work is complete, which phase needs attention and what remains; open a phase for its steps, notes, prerequisites and evidence. Skipped work is shown separately and never counts as done.
157
+ - **Memory:** ask for the briefing an agent would receive, now or as the project stood at any moment, and verify its replay, browse the project timeline, review proposed knowledge, preview a purge, and explore an interactive graph of memories, evidence, plans and their steps, coloured by how far each record has been reviewed, with zoom, pan and a tap through to the briefings that used it.
158
+ - **History and review:** inspect changes, review proposals and preview affected content.
159
+ - **Retrieval history:** see the exact briefing returned, its sources and recorded usage.
160
+ - **Team:** who did what in a project, the permissions that allow it, a revoke button, and an audit export; the overview lists your projects as cards you can open and link to.
161
+ - **Appearance:** textured dark and light themes, a crowned cybernetic elephant, an optional depth-tilt animation that respects reduced motion, and a phone layout for checking on agents away from the desk.
162
+
163
+ ![MemoryKing Task activity view with a synthetic task beside a structured plan at 50 percent, its Design phase open to show a completed step and the observation it cites](https://raw.githubusercontent.com/jamesking-us/memoryking/main/docs/images/plans.jpg)
164
+
165
+ *Task activity with a synthetic plan: progress counts only steps backed by evidence, and the remaining Verify phase stays visible for the next agent and for you.*
166
+
167
+ Agents must publish their state through the supported interfaces. A displayed heartbeat is an observation, not proof that an agent is still working; missing cost data stays unknown.
168
+
169
+ ## Choose your setup
170
+
171
+ | Setup | Suitable for | What runs |
172
+ | --- | --- | --- |
173
+ | Local | One person or agents on one computer | Python service, SQLite, private local files; optional browser dashboard. |
174
+ | Shared | Multiple agents using a central service | PostgreSQL, authenticated HTTP/MCP, separate database roles and recovery storage. |
175
+ | Docker evaluation | Trying the shared profile on one machine | A source-built Compose stack with loopback HTTPS. |
176
+
177
+ See [deployment and configuration](https://github.com/jamesking-us/memoryking/blob/main/docs/deployment.md) for commands, prerequisites, backup and recovery.
178
+
179
+ ## Read the documentation
180
+
181
+ | Guide | What you will learn |
182
+ | --- | --- |
183
+ | [Getting started](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md) | Install, connect your agent with `memoryking setup`, run the demo and open the dashboard. |
184
+ | [Using MemoryKing with agents](https://github.com/jamesking-us/memoryking/blob/main/docs/agent-guide.md) | Capture → brief → checkpoint → resume → handoff; Python, lean and full MCP profiles for any host, and automatic capture from hooks. |
185
+ | [Deployment and configuration](https://github.com/jamesking-us/memoryking/blob/main/docs/deployment.md) | Local/shared/Docker setups, credentials, configuration, upgrades and recovery. |
186
+ | [How it is designed](https://github.com/jamesking-us/memoryking/blob/main/docs/design.md) | Storage, knowledge review, retrieval, permissions and recovery guarantees. |
187
+ | [Feature and API reference](https://github.com/jamesking-us/memoryking/blob/main/docs/reference.md) | Interfaces, optional capabilities, limits and capacity, metrics, migration and troubleshooting. |
188
+ | [Error codes](https://github.com/jamesking-us/memoryking/blob/main/docs/error-codes.md) | Every error code with the next move, generated from the service's own table. |
189
+ | [Contributing](https://github.com/jamesking-us/memoryking/blob/main/CONTRIBUTING.md) | Build, test and maintain the project locally. |
190
+ | [Roadmap](https://github.com/jamesking-us/memoryking/blob/main/docs/roadmap.md) | What is planned next and what is already done. |
191
+
192
+ ## Current status
193
+
194
+ **Early preview for local evaluation; not yet production-qualified.** Core behavior has automated coverage, but measured workload targets have not been met. Evidence of real-task benefit comes from small synthetic benchmarks with a real agent, summarised under [How it measures up](#how-it-measures-up): with long histories MemoryKing passes more tasks than a notes file and than two other memory products, the agent reads less text, and on a public question set it answers the most, while on short single-project tasks a notes file does as well. A memory store on Windows itself, complete browser/device coverage, automatic failover and production recovery targets are not qualified. Third-party agent hosts need integration testing.
195
+
196
+ MemoryKing helps preserve and inspect context; it does not make an agent's conclusions automatically correct. Use reviewed evidence and appropriate human approval for consequential work. See the [security model](https://github.com/jamesking-us/memoryking/blob/main/SECURITY.md) and [current limits](https://github.com/jamesking-us/memoryking/blob/main/docs/reference.md#current-limits).
197
+
198
+ MemoryKing is released under the [Apache License 2.0](https://github.com/jamesking-us/memoryking/blob/main/LICENSE). Each release is a Python package on [PyPI](https://pypi.org/project/memoryking/) and a container image for the local service at `ghcr.io/jamesking-us/memoryking`, both built reproducibly from this repository with checksums recorded on the [release page](https://github.com/jamesking-us/memoryking/releases), whose notes come from the [changelog](https://github.com/jamesking-us/memoryking/blob/main/CHANGELOG.md). See [distribution](https://github.com/jamesking-us/memoryking/blob/main/CONTRIBUTING.md#distribution).
@@ -0,0 +1,165 @@
1
+ <p align="center"><img src="https://raw.githubusercontent.com/jamesking-us/memoryking/main/src/memoryking/adapters/web/elephant.png" width="180" alt="MemoryKing" /></p>
2
+
3
+ # Give your AI agents a memory they can pick up again
4
+
5
+ MemoryKing keeps the useful context behind an agent's work: what it learned, what it tried, what must not be forgotten, and what should happen next.
6
+
7
+ Think of it as a **shared project notebook with a save point**. When a conversation ends, an agent restarts, or another agent takes over, the work can continue from a recorded state instead of starting with a blank page.
8
+
9
+ It is a service that you connect to your agents. It does not automatically read your chats or run agents for you.
10
+
11
+ ## How it measures up
12
+
13
+ We tested MemoryKing head to head against three other memory products, and against simply handing the agent every raw transcript to search. Each got the same tasks with a real coding agent (Claude Code). **MemoryKing had the top score in all four tests**, level with a plain notes file in one.
14
+
15
+ | What we tested | MemoryKing | Runner-up | Who the runner-up was |
16
+ | --- | ---: | ---: | --- |
17
+ | Finding one fact hidden among 2,000 earlier sessions | **12 of 12** | 9 of 12 | Searching the raw transcripts, with no memory product (the best other product got 6) |
18
+ | Handling corrected facts, deleted memories, several projects and planted instructions | **23 of 27** | 21 of 27 | Knowledge Graph Memory server |
19
+ | Answering questions about long chat histories (the public LongMemEval set) | **51 of 60** | 49 of 60 | Basic Memory |
20
+ | Saving its own memory across four real sessions | **4 of 4** | 4 of 4 | A plain notes file (the other three products got 0) |
21
+
22
+ MemoryKing also gave the agent the least to read: 123,000 tokens per task on average, against 150,000 for the next lowest (MCP Memory Service) and about 218,000 for the other two products.
23
+
24
+ What that means in practice:
25
+
26
+ - **Nothing missed in a long history.** MemoryKing passed all 12 tasks at 2,000 sessions. The tests confirm its lead over Basic Memory there, and over MCP Memory Service at both sizes.
27
+ - **Most questions answered.** MemoryKing answered 51 of 60 questions correctly, more than any other product, and the test confirms its lead over a plain text search. Search by meaning is part of the standard install.
28
+ - **Less to read, and quicker.** The agent read over 40% less text with MemoryKing than with Basic Memory or the Knowledge Graph Memory server, and finished sooner than with any of the others. The tests confirm both.
29
+ - **Corrections followed.** When a fact changed over time, the agent with MemoryKing used the current value in 8 of 8 tasks.
30
+ - **Projects kept apart.** A fact private to one project never reached a session in another project with MemoryKing. The other three products keep one store for every project, and it reached 7 of their 9 sessions.
31
+ - **Planted instructions kept out.** A web page with a hidden instruction sat in the history. With MemoryKing it never reached the agent in any of 6 sessions.
32
+ - **It saves by itself.** When each product had to save its own memory over four real sessions, MemoryKing passed 4 of 4 tasks. With the other three products the corrected fact never reached the last session, and they passed none of the 8 runs that counted.
33
+ - **From ordinary use.** In the first two tests MemoryKing had only what its hooks capture in a normal session. The other three were given a head start: every earlier session was written into them in full.
34
+
35
+ Every product, every test:
36
+
37
+ | Memory product | Passed, 2,000 sessions | Passed, 200 sessions | Questions answered | Text read per task |
38
+ | --- | ---: | ---: | ---: | ---: |
39
+ | **MemoryKing**, as `memoryking setup` installs it | **12 of 12** | **23 of 27** | **51 of 60** | **123,000 tokens** |
40
+ | Knowledge Graph Memory server 2.2.1 (`@modelcontextprotocol/server-memory`) | 6 of 12 | 21 of 27 | 9 of 60 | 218,000 tokens |
41
+ | Basic Memory 1.0.0 | 4 of 12 | 19 of 27 | 49 of 60 | 219,000 tokens |
42
+ | MCP Memory Service 13.0.0 | 1 of 12 | 11 of 27 | 47 of 60 | 150,000 tokens |
43
+ | No memory product: every raw transcript in a folder to search | 9 of 12 | 20 of 27 | 38 of 60 | 168,000 tokens |
44
+
45
+ These are synthetic tasks and a public question set, with one model and one run per task, so read them as a guide, not a guarantee. The leads named as confirmed above passed a statistical test; the other gaps, including those to Basic Memory and MCP Memory Service on the questions, are too small for this many tasks to confirm. Results also move between draws: an earlier draw at 2,000 sessions, run before a fault in the benchmark was fixed and before a change to MemoryKing, gave MemoryKing 6 of 12, and with keyword search alone it answered 43 of the 60 questions. In three of the 27 tasks MemoryKing was given one saved preference that an agent would normally save itself; without those three the counts are 20, 18, 16, 9 and 18 of 24. The Knowledge Graph Memory server's 9 of 60 reflects its literal word search as our test drives it, not an agent trying several searches. In a separate run at 2,000 sessions MemoryKing passed 8 of 12 tasks and a notes file passed 1. The records of the [2,000-session run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t1-2000-fixed-generator-52aad17.md), the [200-session run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-s2-tracks-52aad17.md), the [four-session test](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-s4-lived-99b1410.md), the question-answering runs ([keyword search](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t5-99b1410.md), [with search by meaning](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t5b-semantic-c79e1a1.md)) and the [notes-file run](https://github.com/jamesking-us/memoryking/blob/main/benchmarks/longhaul/results/2026-11-23-t1-2000-7aceafe.md) give the method and every result, and the [results folder](https://github.com/jamesking-us/memoryking/tree/main/benchmarks/longhaul/results) holds the earlier runs.
46
+
47
+ ## Why it is useful
48
+
49
+ Imagine an agent investigating a checkout bug. It discovers that a retry can charge a customer twice, tries a fix that fails, and runs out of context before finishing.
50
+
51
+ With MemoryKing, it can leave the next agent:
52
+
53
+ - **The goal:** fix the retry without creating duplicate charges.
54
+ - **The evidence:** the relevant error and test output, with their sources.
55
+ - **The failed approach:** what was tried and why not to repeat it.
56
+ - **The unfinished work:** the patch state, missing tests and next action.
57
+ - **The boundaries:** use the sandbox and keep production changes subject to approval.
58
+
59
+ The next agent receives a focused briefing and the saved task state. A reviewer can see the evidence and what is still unverified. This is an illustrative workflow; your integration supplies the observations and checks.
60
+
61
+ ```mermaid
62
+ flowchart LR
63
+ A[Agent does work] --> B[Save findings and task state]
64
+ B --> C[MemoryKing checks access and relevance]
65
+ C --> D[Next session gets a focused briefing]
66
+ D --> E[Agent continues or hands off]
67
+ E --> B
68
+ ```
69
+
70
+ ## What is new
71
+
72
+ One command, `memoryking setup`, connects Claude Code, Codex or any other host that starts MCP servers: it creates a store, starts the service, issues the agent its own limited credential, registers the tools and installs session hooks. The default tool set is now small and answers in readable Markdown, and an agent can also keep preferences that follow you across every project. Token budgets count what the model really receives, questions that contain dates ("what did we decide last week") are understood, and a model you allow can draft claims for you to review. Credentials can be rotated, and a delegated token now acts as the person who issued it (a breaking change that the changelog explains). The [changelog](https://github.com/jamesking-us/memoryking/blob/main/CHANGELOG.md) lists everything, newest first, and the [release page](https://github.com/jamesking-us/memoryking/releases) carries the notes of each published version.
73
+
74
+ ## What it does for agents
75
+
76
+ | Need | What MemoryKing provides |
77
+ | --- | --- |
78
+ | Remember useful findings | Searchable observations with source attribution; reviewed knowledge stays distinct from unverified notes. Exact names (paths, symbols, tickets, hosts, error codes) are anchored at capture and found exactly; memories strengthen with use and fade with disuse without ever being deleted. An optional local cross-encoder can reorder the shortlist on request, with no egress. |
79
+ | Resume unfinished work | Checkpoints containing the objective, constraints, failed attempts, verification gaps and next actions, opened by a three-sentence "where this left off" summary. |
80
+ | Work together | Handoffs bound to the recipient's current permissions. |
81
+ | Follow a plan | Named plans with phases, prerequisites, completed steps and blockers; a step counts as done only with evidence, and the dashboard shows the same progress agents report. |
82
+ | Keep context manageable | Focused briefings with explicit output budgets and links back to evidence. |
83
+ | Avoid stale advice | Repository identity, applicability rules and freshness checks for guidance tied to code. |
84
+ | Recover safely | Records of uncertain operations and history-aware backup/restore, so a restart does not silently authorize repeating an action. |
85
+ | Understand what happened | A dashboard with capacity, task progress, a per-project timeline, a memory graph, on-demand briefings with their receipts, and retrieval history. |
86
+ | Fit any agent host | A small default MCP tool set (eleven tools: remember, recall, save progress, resume, hand off, propose, correct, forget, fetch, feedback and recent, plus a twelfth, confirm, only if you turn on chat review) for Claude Code, Codex, Grok or any stdio host; cited Markdown briefings; capture from the CLI, pytest or git hooks; `memoryking setup` also installs session hooks that load memory at the start of a session and save it before compaction and at the end. |
87
+ | Use any Claude API agent | Anthropic's memory tool answered from a project: notes are versioned observations, claim files are proposals, every write has a receipt. The same files export as a Markdown vault for hand editing and import back as versions and proposals. |
88
+ | Keep the review queue fed | Claims are drafted from repeated evidence with their sources attached, without a model, or by a model you allow under your egress policy, and wait for review like any proposal; nothing becomes knowledge by itself. |
89
+ | Hold what you do not trust yet | Mark a source untrusted and its captures are recorded but invisible to every briefing and review until an admin releases them. |
90
+ | Know where a memory went | For any observation, every claim, checkpoint, handoff, summary and briefing built from it and who received them, from the dashboard or `memoryking influence`. |
91
+ | Know whether memory is paying for itself | A health report from the store's own receipts: helpful feedback, empty briefings, memory never read, claims that lost their evidence and the review backlog, with fixed thresholds and no model grading itself, from the dashboard or `memoryking health`. |
92
+ | Know what to do when something is refused | Every error reply carries a one-line hint, and a [generated page](https://github.com/jamesking-us/memoryking/blob/main/docs/error-codes.md) lists them all. |
93
+
94
+ The core runs locally **without a model account, GPU or paid API**. A shared PostgreSQL profile supports multiple agents and tenants. Search understands meaning, not only matching words: setup downloads a small search model (about 130 MB) once, says so before it does, and never contacts that host again. If you do want MemoryKing itself to talk to a model (Anthropic, OpenAI, xAI, Google Vertex AI, or one running on your own machine), you write a short policy saying which, and every request it sends is checked against that policy and recorded.
95
+
96
+ ## See it work
97
+
98
+ You need Python **3.12** (3.13 also works). On macOS and Linux, everything runs on your own computer. On Windows, the agent's side runs directly, and the memory itself needs [WSL2 or Docker Desktop](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md#on-windows) on the same computer; one `memoryking setup` command then sets up both.
99
+
100
+ From a terminal on macOS or Linux:
101
+
102
+ ```sh
103
+ python3.12 -m venv .venv
104
+ .venv/bin/python -I -m pip install memoryking
105
+ git clone https://github.com/jamesking-us/memoryking.git
106
+ .venv/bin/python memoryking/examples/remember_and_resume.py
107
+ ```
108
+
109
+ The first two lines install the released package; the checkout is only there for the example. The example creates a temporary store, saves a finding and an unfinished task, closes the first connection, and resumes through a new client. It prints a readable walkthrough, makes no model requests, and removes its temporary data when finished.
110
+
111
+ To connect an agent for real, run `memoryking setup claude-code --project my-app` (or `codex`, or `generic` for any other host). It creates a store, starts the service in the background, gives the agent a limited credential, registers the memory tools and installs the session hooks, and downloads the search model, after telling you what it fetches and from where (`--no-semantic` skips that and leaves search by keywords; if the download fails, setup still finishes and tells you how to retry); `memoryking setup ... --remove` undoes it. The [getting started guide](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md) walks through it, then `status`, `doctor` and `dashboard open` need no paths. If you are evaluating the idea rather than installing software, start with the [agent workflows](https://github.com/jamesking-us/memoryking/blob/main/docs/agent-guide.md).
112
+
113
+ ## See what your agents are doing
114
+
115
+ ![MemoryKing dashboard overview showing capacity for each bounded resource, a project card with record counts and latest activity, and a synthetic task opened by its three-sentence "where this left off" summary](https://raw.githubusercontent.com/jamesking-us/memoryking/main/docs/images/dashboard.jpg)
116
+
117
+ *Dashboard overview with synthetic example data: capacity first, then the projects you can read, then the project's task activity with its summary. Progress reflects saved agent reports and evidence.*
118
+
119
+ The dashboard helps you inspect recorded work without reading a long chat transcript. Projects you can read are listed with their record counts; pick one and every view follows it.
120
+
121
+ - **Overview:** capacity use for each bounded resource, with a warning from 80 percent.
122
+ - **Task activity:** saved goals, completed and pending criteria, blockers and observed heartbeats.
123
+ - **Plans:** how much of a piece of work is complete, which phase needs attention and what remains; open a phase for its steps, notes, prerequisites and evidence. Skipped work is shown separately and never counts as done.
124
+ - **Memory:** ask for the briefing an agent would receive, now or as the project stood at any moment, and verify its replay, browse the project timeline, review proposed knowledge, preview a purge, and explore an interactive graph of memories, evidence, plans and their steps, coloured by how far each record has been reviewed, with zoom, pan and a tap through to the briefings that used it.
125
+ - **History and review:** inspect changes, review proposals and preview affected content.
126
+ - **Retrieval history:** see the exact briefing returned, its sources and recorded usage.
127
+ - **Team:** who did what in a project, the permissions that allow it, a revoke button, and an audit export; the overview lists your projects as cards you can open and link to.
128
+ - **Appearance:** textured dark and light themes, a crowned cybernetic elephant, an optional depth-tilt animation that respects reduced motion, and a phone layout for checking on agents away from the desk.
129
+
130
+ ![MemoryKing Task activity view with a synthetic task beside a structured plan at 50 percent, its Design phase open to show a completed step and the observation it cites](https://raw.githubusercontent.com/jamesking-us/memoryking/main/docs/images/plans.jpg)
131
+
132
+ *Task activity with a synthetic plan: progress counts only steps backed by evidence, and the remaining Verify phase stays visible for the next agent and for you.*
133
+
134
+ Agents must publish their state through the supported interfaces. A displayed heartbeat is an observation, not proof that an agent is still working; missing cost data stays unknown.
135
+
136
+ ## Choose your setup
137
+
138
+ | Setup | Suitable for | What runs |
139
+ | --- | --- | --- |
140
+ | Local | One person or agents on one computer | Python service, SQLite, private local files; optional browser dashboard. |
141
+ | Shared | Multiple agents using a central service | PostgreSQL, authenticated HTTP/MCP, separate database roles and recovery storage. |
142
+ | Docker evaluation | Trying the shared profile on one machine | A source-built Compose stack with loopback HTTPS. |
143
+
144
+ See [deployment and configuration](https://github.com/jamesking-us/memoryking/blob/main/docs/deployment.md) for commands, prerequisites, backup and recovery.
145
+
146
+ ## Read the documentation
147
+
148
+ | Guide | What you will learn |
149
+ | --- | --- |
150
+ | [Getting started](https://github.com/jamesking-us/memoryking/blob/main/docs/getting-started.md) | Install, connect your agent with `memoryking setup`, run the demo and open the dashboard. |
151
+ | [Using MemoryKing with agents](https://github.com/jamesking-us/memoryking/blob/main/docs/agent-guide.md) | Capture → brief → checkpoint → resume → handoff; Python, lean and full MCP profiles for any host, and automatic capture from hooks. |
152
+ | [Deployment and configuration](https://github.com/jamesking-us/memoryking/blob/main/docs/deployment.md) | Local/shared/Docker setups, credentials, configuration, upgrades and recovery. |
153
+ | [How it is designed](https://github.com/jamesking-us/memoryking/blob/main/docs/design.md) | Storage, knowledge review, retrieval, permissions and recovery guarantees. |
154
+ | [Feature and API reference](https://github.com/jamesking-us/memoryking/blob/main/docs/reference.md) | Interfaces, optional capabilities, limits and capacity, metrics, migration and troubleshooting. |
155
+ | [Error codes](https://github.com/jamesking-us/memoryking/blob/main/docs/error-codes.md) | Every error code with the next move, generated from the service's own table. |
156
+ | [Contributing](https://github.com/jamesking-us/memoryking/blob/main/CONTRIBUTING.md) | Build, test and maintain the project locally. |
157
+ | [Roadmap](https://github.com/jamesking-us/memoryking/blob/main/docs/roadmap.md) | What is planned next and what is already done. |
158
+
159
+ ## Current status
160
+
161
+ **Early preview for local evaluation; not yet production-qualified.** Core behavior has automated coverage, but measured workload targets have not been met. Evidence of real-task benefit comes from small synthetic benchmarks with a real agent, summarised under [How it measures up](#how-it-measures-up): with long histories MemoryKing passes more tasks than a notes file and than two other memory products, the agent reads less text, and on a public question set it answers the most, while on short single-project tasks a notes file does as well. A memory store on Windows itself, complete browser/device coverage, automatic failover and production recovery targets are not qualified. Third-party agent hosts need integration testing.
162
+
163
+ MemoryKing helps preserve and inspect context; it does not make an agent's conclusions automatically correct. Use reviewed evidence and appropriate human approval for consequential work. See the [security model](https://github.com/jamesking-us/memoryking/blob/main/SECURITY.md) and [current limits](https://github.com/jamesking-us/memoryking/blob/main/docs/reference.md#current-limits).
164
+
165
+ MemoryKing is released under the [Apache License 2.0](https://github.com/jamesking-us/memoryking/blob/main/LICENSE). Each release is a Python package on [PyPI](https://pypi.org/project/memoryking/) and a container image for the local service at `ghcr.io/jamesking-us/memoryking`, both built reproducibly from this repository with checksums recorded on the [release page](https://github.com/jamesking-us/memoryking/releases), whose notes come from the [changelog](https://github.com/jamesking-us/memoryking/blob/main/CHANGELOG.md). See [distribution](https://github.com/jamesking-us/memoryking/blob/main/CONTRIBUTING.md#distribution).
@@ -4,21 +4,28 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "memoryking"
7
- version = "0.1.0a2"
7
+ version = "0.2.0"
8
8
  description = "MemoryKing local memory, checkpoint and recovery service"
9
9
  readme = "README.md"
10
- requires-python = ">=3.12,<3.13"
10
+ requires-python = ">=3.12,<3.14"
11
11
  license = "Apache-2.0"
12
12
  license-files = ["LICENSE", "NOTICE"]
13
13
  authors = [{ name = "James King" }]
14
- dependencies = ["jsonschema==4.26.0"]
14
+ dependencies = [
15
+ "jsonschema==4.26.0",
16
+ "onnxruntime==1.23.2",
17
+ "numpy==2.5.4",
18
+ "tokenizers==0.23.3",
19
+ ]
15
20
  classifiers = [
16
- "Development Status :: 3 - Alpha",
21
+ "Development Status :: 4 - Beta",
17
22
  "Intended Audience :: Developers",
18
23
  "Operating System :: MacOS",
24
+ "Operating System :: Microsoft :: Windows",
19
25
  "Operating System :: POSIX :: Linux",
20
26
  "Programming Language :: Python :: 3 :: Only",
21
27
  "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: 3.13",
22
29
  "Topic :: Software Development :: Libraries",
23
30
  ]
24
31
 
@@ -27,6 +34,7 @@ Repository = "https://github.com/jamesking-us/memoryking"
27
34
 
28
35
  [project.scripts]
29
36
  memoryking = "memoryking.__main__:main"
37
+ memoryking-hook = "memoryking.hook_cli:main"
30
38
  memoryking-migrate = "memoryking.migration:main"
31
39
  memoryking-shared = "memoryking.shared:main"
32
40
  memoryking-reference-agent = "memoryking.reference_agent:main"
@@ -35,14 +43,16 @@ memoryking-embedding-worker = "memoryking.embedding_worker:main"
35
43
 
36
44
  [project.optional-dependencies]
37
45
  tokenizers = ["tiktoken==0.12.0"]
38
- embeddings = ["onnxruntime==1.23.2", "numpy==2.5.4", "tokenizers==0.23.3"]
46
+ # Semantic search is part of the core install now; the extra stays so that
47
+ # `pip install memoryking[embeddings]` keeps resolving. It adds nothing.
48
+ embeddings = []
39
49
  shared = ["psycopg[binary]==3.3.6", "psycopg-pool==3.3.3", "mcp==2.3.0"]
40
50
 
41
51
  [tool.setuptools.packages.find]
42
52
  where = ["src"]
43
53
 
44
54
  [tool.setuptools.package-data]
45
- "memoryking" = ["py.typed"]
55
+ "memoryking" = ["py.typed", "locks/*.lock"]
46
56
  "memoryking.contracts" = ["*.json", "py.typed"]
47
57
  "memoryking.adapters" = ["*.sql", "*.json", "web/*", "tokenizers/*", "models/*.json"]
48
58
 
@@ -63,5 +73,17 @@ strict = true
63
73
  files = ["src/memoryking"]
64
74
 
65
75
  [[tool.mypy.overrides]]
66
- module = ["jsonschema", "jsonschema.*"]
76
+ module = [
77
+ "jsonschema",
78
+ "jsonschema.*",
79
+ # Optional framework adapters and the optional embeddings runtime import these lazily; they
80
+ # are not installed for this check.
81
+ "claude_agent_sdk",
82
+ "mcp.types",
83
+ "agents",
84
+ "langchain_core.*",
85
+ "numpy",
86
+ "langgraph.*",
87
+ "llama_index.*",
88
+ ]
67
89
  ignore_missing_imports = true
@@ -1,3 +1,3 @@
1
1
  """MemoryKing local evidence, checkpoint and recovery service with a bound client SDK."""
2
2
 
3
- __version__ = "0.1.0a2"
3
+ __version__ = "0.2.0"