1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # MemoryHub
//!
//! A centralized memory service for AI agents.
//!
//! Personal AI agents (Claude Code, etc.) each build up knowledge as local Markdown
//! files, in isolation. MemoryHub pools those per-user memories into one shared,
//! searchable knowledge base: it ingests raw Markdown from each agent, embeds it for
//! semantic search, and runs a synthesizer that produces per-user and cross-user
//! summaries.
//!
//! ## What it does
//!
//! - **Collects memories** from many users and agents over a small JSON API.
//! - **Searchable instantly** — every memory is indexed the moment it's written, so
//! it's immediately available. No batch or reprocess step.
//! - **Finds the right memory** — search handles both meaning-based and exact
//! keyword queries, so results hold up whether you describe an idea or quote a term.
//! - **Synthesizes** — generates per-user and cross-user summaries from the pooled
//! memories as they come in.
//! - **Human-readable storage** — memories stay as plain Markdown files you can read,
//! edit, and version directly.
//! - **Bring your own models** — chat and embeddings are configured separately, so you
//! can mix providers (and swap in a stub for tests).
//!
//! It's a single self-contained service.
pub use Config;
pub use MemoryHub;