Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/memory/README.md,docs/specs/memory-v2.md,gitbooks/fea

Steven Enamakel2ce6f02b4e97
diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.md
index e0ef00bd5e..efac59b9ab 100644
--- a/crates/openhuman-core/src/memory/README.md
+++ b/crates/openhuman-core/src/memory/README.md
@@ -46,7 +46,7 @@ Chat thread persistence is not memory: see [`threads/store`](../threads/store/RE
`openhuman.memory_engines_list`, `_engine_get`, `_engine_set`, `_recall`,
`_fetch`, `_learn`, `_forget`, `_items_list`, `_explore`, `_items_get`,
-`_conversations_get/set`,
+`_conversations_get/set`, `_conversations_backfill_status/start`,
`_sources_list/add/remove/sync`, `_context_get/refresh/set`,
`_import_scan/start/status`. Params and results are in the spec. The MCP server
exposes `memory.recall`, `memory.fetch`, `memory.list`, `memory.learn` and
diff --git a/docs/specs/memory-v2.md b/docs/specs/memory-v2.md
index 7f52d57469..c0b18126bc 100644
--- a/docs/specs/memory-v2.md
+++ b/docs/specs/memory-v2.md
@@ -86,6 +86,8 @@ All methods take and return JSON objects. Errors use the standard structured err
| `memory_learn` | `{text, kind?, confidence?, meta?}` | `{id}` |
| `memory_forget` | `{ids}` | `{forgotten: number}` |
| `memory_items_list` | `{filter?, limit?, cursor?, path?}` | `{items: Hit[], next_cursor?}` |
+| `memory_conversations_backfill_status` | `{}` | `{state: {phase, threads_total, threads_done, turns_stored, items_stored, error?, finished_at?}, pending_threads, pending_turns}` |
+| `memory_conversations_backfill_start` | `{consent: true}` | same as status; runs in the background |
| `memory_explore` | `{facet, path?, filter?, limit? (1–500, default 50), scan_limit?}` | `{facet, buckets: {value, count}[], total, missing, more_buckets, truncated}` |
| `memory_items_get` | `{ids}` (1–200) | `{items: Hit[]}` in the order asked; unknown ids left out |
| `memory_conversations_get` | `{}` | `{enabled, batch_turns, idle_secs, recent: {thread_id, turns, stored_at}[]}` |
@@ -121,6 +123,8 @@ The types:
The Memory page lives under Connections at `/connections?tab=brain&brain=<chip>`. Its chips are `engine`, `ask`, `explorer`, `learnings`, `conversations`, `documents` and `context`. The default chip is `ask` when an engine is active and `engine` otherwise.
+**Past conversations.** Live ingestion only sees turns committed while it is on. `memory_conversations_backfill_start` walks the thread store and stores every earlier turn in the same `batch_turns` items and metadata live ingestion uses, tagged `backfill`. Each user message opens a turn and the replies after it are its answer. It stops short of the turns live ingestion has counted for a thread (its most recent ones), records how far each thread was stored in `<workspace>/memory/conversations_backfill.json` (resumable, and a later run sends only what is new), and needs `consent: true` because it uploads chat history. The legacy import and the backfill both write through `MemoryEngine::store_many` in batches of 25.
+
**Explorer.** `memory_explore` groups stored items by one of TinyMemory's standard facets (`kind`, `source`, `source_id`, `workspace`, `folder`, `file_path`, `language`, `repo`, `url`, `thread`, `agent`, `tool_call`, `tag`) and counts each value. The explorer path is a list of `{facet, value}` steps that the core turns into a filter with `Facet::narrow`, so `memory_explore` and `memory_items_list` take the same `path` and the UI never rebuilds filters itself. Opening an item reads it whole with `memory_items_get`. Facets belong to the TinyMemory contract (`MemoryEngine::explore`/`get`, with listing-based defaults), not to an engine's storage layout.
Legacy `?brain=graph|goals|sync|sources` values map to `ask`, `ask`, `documents` and `documents`. `/settings/memory-engine` redirects to the `engine` chip.
diff --git a/gitbooks/features/memory.md b/gitbooks/features/memory.md
index 6826d95071..59ced0958e 100644
--- a/gitbooks/features/memory.md
+++ b/gitbooks/features/memory.md
@@ -55,6 +55,10 @@ A learning is one durable statement: a preference, fact, procedure or correction
Everything is scrubbed for secrets and personal identifiers before it leaves your machine.
+### Past conversations
+
+Chats from before automatic saving was turned on are not in memory until you sync them. The **Conversations** tab shows how many chats and turns are still unsynced; **Sync past conversations** uploads them (after you confirm) in the same form as new conversations, without tool arguments. You can close the page while it runs, and syncing again later only sends what is new.
+
## Exploring what memory holds
The **Explorer** tab shows everything your memory holds, grouped by one property at a time: type, source, workspace, folder, file, language, repository, link, thread, agent, tool or tag. Each value shows how many items carry it. Click one to narrow to those items, then group again by another property; the breadcrumb at the top takes you back up. The items at each step are listed below, and **Open** shows one in full with all its details and a **Forget** button.