The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(memory): add explorer tab and item retrieval RPCs
Steven Enamakel8ea0f1a53750
diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.mdindex ac3df2d915..d31ff2ce30 100644--- a/crates/openhuman-core/src/memory/README.md+++ b/crates/openhuman-core/src/memory/README.md@@ -44,7 +44,8 @@ Chat thread persistence is not memory: see [`threads/store`](../threads/store/RE## RPC`openhuman.memory_engines_list`, `_engine_get`, `_engine_set`, `_recall`,-`_fetch`, `_learn`, `_forget`, `_items_list`, `_conversations_get/set`,+`_fetch`, `_learn`, `_forget`, `_items_list`, `_explore`, `_items_get`,+`_conversations_get/set`,`_sources_list/add/remove/sync`, `_context_get/refresh/set`,`_import_scan/start/status`. Params and results are in the spec. The MCP serverexposes `memory.recall`, `memory.fetch`, `memory.list`, `memory.learn` anddiff --git a/docs/specs/memory-v2.md b/docs/specs/memory-v2.mdindex 5ba45a2166..7f52d57469 100644--- a/docs/specs/memory-v2.md+++ b/docs/specs/memory-v2.md@@ -85,7 +85,9 @@ All methods take and return JSON objects. Errors use the standard structured err| `memory_fetch` | `{query, mode?, filter?, limit?, cursor?}` | `{hits: Hit[], next_cursor?}` || `memory_learn` | `{text, kind?, confidence?, meta?}` | `{id}` || `memory_forget` | `{ids}` | `{forgotten: number}` |-| `memory_items_list` | `{filter?, limit?, cursor?}` | `{items: Hit[], next_cursor?}` |+| `memory_items_list` | `{filter?, limit?, cursor?, path?}` | `{items: Hit[], next_cursor?}` |+| `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}[]}` || `memory_conversations_set` | `{enabled?, batch_turns?, idle_secs?}` | same as `conversations_get` || `memory_sources_list` | `{}` | `{sources: Source[]}` |@@ -117,6 +119,8 @@ The types:## UI-The Memory page lives under Connections at `/connections?tab=brain&brain=<chip>`. Its chips are `engine`, `ask`, `learnings`, `conversations`, `documents` and `context`. The default chip is `ask` when an engine is active and `engine` otherwise.+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.++**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.mdindex 3c82e1463e..6826d95071 100644--- a/gitbooks/features/memory.md+++ b/gitbooks/features/memory.md@@ -9,7 +9,7 @@ icon: brainOpenHuman's memory lets the agent remember you across chats: what you are working on, what you prefer, what is in your documents. Memory is a feature of the app, not a hidden database. You pick who stores it, see what is stored, and delete anything.-Open it from **Connections → Memory**. It has six tabs (chips): **Engine**, **Ask**, **Learnings**, **Conversations**, **Documents** and **Context**. The old `/brain` and `/settings/memory-engine` addresses redirect there.+Open it from **Connections → Memory**. It has seven tabs (chips): **Engine**, **Ask**, **Explorer**, **Learnings**, **Conversations**, **Documents** and **Context**. The old `/brain` and `/settings/memory-engine` addresses redirect there.## Engines@@ -55,6 +55,12 @@ A learning is one durable statement: a preference, fact, procedure or correctionEverything is scrubbed for secrets and personal identifiers before it leaves your machine.+## 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.++On a very large memory the counts may cover only the items scanned so far; the tab says so when that happens.+## The agent's memory toolThe agent has one tool, `memory`, with four actions: `recall`, `fetch`, `learn` and `forget`. OpenHuman's own [MCP server](../developing/mcp-server.md) exposes the same abilities to other apps as `memory.recall`, `memory.fetch`, `memory.list`, `memory.learn` and `memory.forget`.