@aman_asmuei/amem 0.21.0 โ†’ 0.21.1

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 (2) hide show
  1. package/README.md +87 -37
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -29,10 +29,10 @@
29
29
 
30
30
  <table align="center">
31
31
  <tr>
32
- <td><strong>72% Recall@5</strong><br/><sub>Semantic accuracy</sub></td>
32
+ <td><strong>94.6% R@5</strong><br/><sub>LongMemEval Oracle, 500q</sub></td>
33
33
  <td><strong>0.08ms</strong><br/><sub>Search at 10k memories</sub></td>
34
34
  <td><strong>29 MCP tools</strong><br/><sub>Full memory toolkit</sub></td>
35
- <td><strong>388 tests</strong><br/><sub>All passing</sub></td>
35
+ <td><strong>Powered by</strong><br/><sub><a href="https://github.com/amanasmuei/amem-core">amem-core</a></sub></td>
36
36
  </tr>
37
37
  </table>
38
38
 
@@ -71,6 +71,46 @@ No cloud. No API keys. Everything stays on your machine.
71
71
 
72
72
  ---
73
73
 
74
+ ## ๐Ÿงฌ Powered by `amem-core`
75
+
76
+ `amem` is the **MCP server**. The actual memory engine โ€” embeddings, recall, knowledge graph, contradiction detection, reflection โ€” lives in a separate package: [`@aman_asmuei/amem-core`](https://github.com/amanasmuei/amem-core).
77
+
78
+ ```
79
+ Claude Code / Copilot / Cursor / any MCP client
80
+ โ”‚
81
+ โ”‚ MCP (stdio)
82
+ โ–ผ
83
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
84
+ โ”‚ @aman_asmuei/amem (this pkg) โ”‚
85
+ โ”‚ 29 MCP tools, CLI, hooks โ”‚
86
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
87
+ โ”‚ imports
88
+ โ–ผ
89
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
90
+ โ”‚ @aman_asmuei/amem-core โ”‚
91
+ โ”‚ embeddings ยท HNSW ยท recall โ”‚
92
+ โ”‚ knowledge graph ยท reflection โ”‚
93
+ โ”‚ 91.0% R@5 on LongMemEval โ”‚
94
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
95
+ โ”‚
96
+ โ–ผ
97
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
98
+ โ”‚ SQLite (one file) โ”‚
99
+ โ”‚ ~/.amem/memory.db โ”‚
100
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
101
+ ```
102
+
103
+ | Package | Role | Install | Use case |
104
+ |---|---|---|---|
105
+ | **`@aman_asmuei/amem`** *(this)* | MCP server + CLI + hooks | `npm install -g @aman_asmuei/amem` | Plug into Claude Code, Copilot, Cursor, any MCP client |
106
+ | **`@aman_asmuei/amem-core`** | Pure TypeScript library, zero MCP deps | `npm install @aman_asmuei/amem-core` | Embed memory directly in your own Node app |
107
+
108
+ **Why the split?** The same engine powers `amem` (this MCP server), `aman-agent` (CLI), `aman-tg` (Telegram bot), and any other Node app you want to give memory to. All retrieval-quality improvements ship via `amem-core`. All MCP-tool changes ship via `amem`. They version independently.
109
+
110
+ > The **94.6% R@5** headline is the engine quality from `amem-core` โ€” exactly what you get whether you call it through this MCP server or import the library directly. The MCP wrapper does not change retrieval quality.
111
+
112
+ ---
113
+
74
114
  ## Quick Start
75
115
 
76
116
  <table>
@@ -619,42 +659,52 @@ amem-cli reset --confirm # Wipe all data
619
659
  ```
620
660
  Your AI Tool
621
661
  Claude Code / Copilot CLI / any MCP client
622
- | |
623
- | MCP (stdio) | Lifecycle Hooks
624
- v v
625
- +---------------------------------+
626
- | amem MCP Server |
627
- | |
628
- | 29 Tools . 7 Resources . 2 Prompts
629
- | |
630
- | Multi-Strategy Retrieval |
631
- | [HNSW] + [FTS5] + [Graph] + [Temporal]
632
- | + query expansion |
633
- | + cross-encoder (opt-in) |
634
- | |
635
- | Self-Evolving Reflection |
636
- | [Clustering] + [Contradictions]|
637
- | + [Synthesis] + [Gap Detection]|
638
- | |
639
- | +---------------------------+ |
640
- | | SQLite + WAL + FTS5 | |
641
- | | ~/.amem/memory.db | |
642
- | | | |
643
- | | memories (tiered) | |
644
- | | conversation_log (raw) | |
645
- | | memory_versions (history) | |
646
- | | memory_relations (graph) | |
647
- | | synthesis_lineage | |
648
- | | knowledge_gaps | |
649
- | | session_summaries | |
650
- | | reminders | |
651
- | +---------------------------+ |
652
- | |
653
- | Embeddings: bge-small-en-v1.5 |
654
- | Config: ~/.amem/config.json |
655
- +---------------------------------+
662
+ โ”‚ โ”‚
663
+ โ”‚ MCP (stdio) โ”‚ Lifecycle Hooks
664
+ โ–ผ โ–ผ
665
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
666
+ โ”‚ @aman_asmuei/amem โ”‚ โ† this package
667
+ โ”‚ โ”‚
668
+ โ”‚ 29 Tools ยท 7 Resources ยท 2 Prompts
669
+ โ”‚ Slash commands ยท CLI ยท Hooks โ”‚
670
+ โ”‚ Config: ~/.amem/config.json โ”‚
671
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
672
+ โ”‚ imports
673
+ โ–ผ
674
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
675
+ โ”‚ @aman_asmuei/amem-core โ”‚ โ† the engine
676
+ โ”‚ โ”‚
677
+ โ”‚ Multi-Strategy Retrieval โ”‚
678
+ โ”‚ [HNSW] + [FTS5] + [Graph] + [Temporal]
679
+ โ”‚ + query expansion โ”‚
680
+ โ”‚ + cross-encoder (opt-in) โ”‚
681
+ โ”‚ โ”‚
682
+ โ”‚ Self-Evolving Reflection โ”‚
683
+ โ”‚ [Clustering] + [Contradictions]โ”‚
684
+ โ”‚ + [Synthesis] + [Gap Detection]โ”‚
685
+ โ”‚ โ”‚
686
+ โ”‚ Embeddings: bge-small-en-v1.5 โ”‚
687
+ โ”‚ 94.6% R@5 on LongMemEval โ”‚
688
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
689
+ โ”‚
690
+ โ–ผ
691
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
692
+ โ”‚ SQLite + WAL + FTS5 โ”‚
693
+ โ”‚ ~/.amem/memory.db โ”‚
694
+ โ”‚ โ”‚
695
+ โ”‚ memories (tiered) โ”‚
696
+ โ”‚ conversation_log (raw) โ”‚
697
+ โ”‚ memory_versions (history) โ”‚
698
+ โ”‚ memory_relations (graph) โ”‚
699
+ โ”‚ synthesis_lineage โ”‚
700
+ โ”‚ knowledge_gaps โ”‚
701
+ โ”‚ session_summaries โ”‚
702
+ โ”‚ reminders โ”‚
703
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
656
704
  ```
657
705
 
706
+ The **`amem` MCP server is a thin wrapper** around `amem-core`. The retrieval engine, embeddings, knowledge graph, reflection โ€” all live in `amem-core` and version independently. Bug in MCP wiring? Republish `amem`. Recall improvement? Republish `amem-core`. No coupling.
707
+
658
708
  ### Ranking Formula
659
709
 
660
710
  ```
@@ -771,7 +821,7 @@ PRs must pass CI before merge. See [Issues](https://github.com/amanasmuei/amem/i
771
821
  ---
772
822
 
773
823
  <p align="center">
774
- Built by <a href="https://github.com/amanasmuei"><strong>Aman Asmuei</strong></a>
824
+ Built with โค๏ธ in ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia by <a href="https://github.com/amanasmuei"><strong>Aman Asmuei</strong></a>
775
825
  </p>
776
826
 
777
827
  <p align="center">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aman_asmuei/amem",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "The memory layer for AI coding tools. Local-first, developer-specific, works everywhere.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",