Skip to content

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

docs(memory): add README files for query and tools modules

Steven Enamakelb3046d6ac80f
diff --git a/crates/openhuman-core/src/memory/query/README.md b/crates/openhuman-core/src/memory/query/README.md
index 930b0e8c02..41a1d4ff2d 100644
--- a/crates/openhuman-core/src/memory/query/README.md
+++ b/crates/openhuman-core/src/memory/query/README.md
@@ -1,7 +1,10 @@
# query
The consolidated `memory_tree` agent tool (`MemoryQueryTool`, an alias of
-`MemoryTreeTool`) and the eight retrieval/write modes it dispatches to.
+`MemoryTreeTool`) and the modes it dispatches to. The tools are
+`tinymemory-tools`' (`query`), instantiated here over `HostMemoryTools`; only
+`ingest_document.rs` is host code, because it writes through the host's own
+tree-ingest path (the dispatcher reaches it through `MemoryToolHost`).
This directory lives under `memory/query` rather than in
[`memory/tree/`](../tree/) so that module can stay focused on generic tree
diff --git a/crates/openhuman-core/src/memory/tools/README.md b/crates/openhuman-core/src/memory/tools/README.md
index 040a3b29b2..d4d5751e56 100644
--- a/crates/openhuman-core/src/memory/tools/README.md
+++ b/crates/openhuman-core/src/memory/tools/README.md
@@ -30,14 +30,18 @@ per-mode structs are also reachable through this module.
| `recall.rs` | `MemoryRecallTool` | `memory_recall` |
| `store.rs` | `MemoryStoreTool` | `memory_store` |
| `goals.rs` | `GoalsTool` | `goals` |
-| `raw_store/kinds.rs` | `MemoryStoreKindsTool` | `memory_store_kinds` |
-| `raw_store/raw_chunks.rs` | `MemoryStoreRawChunksTool` | `memory_store_raw_chunks` |
-| `raw_store/raw_search.rs` | `MemoryStoreRawSearchTool` | `memory_store_raw_search` |
-| `search/chunk_context.rs` | `MemoryChunkContextTool` | `memory_chunk_context` |
-| `search/hybrid_search.rs` | `MemoryHybridSearchTool` | `memory_hybrid_search` |
-| `search/vector_search.rs` | `MemoryVectorSearchTool` | `memory_vector_search` |
-| `tool_memory/list.rs` | `MemoryToolsListTool` | `memory_tools_list` |
-| `tool_memory/put.rs` | `MemoryToolsPutTool` | `memory_tools_put` |
+| `host.rs` | `HostMemoryTools` | the `tinymemory_tools::MemoryToolHost` every alias below runs under |
+| `raw_store/mod.rs` (alias) | `MemoryStoreKindsTool`, `MemoryStoreRawChunksTool`, `MemoryStoreRawSearchTool` | `memory_store_kinds`, `memory_store_raw_chunks`, `memory_store_raw_search` |
+| `search/mod.rs` (alias) | `MemoryChunkContextTool`, `MemoryHybridSearchTool`, `MemoryVectorSearchTool` | `memory_chunk_context`, `memory_hybrid_search`, `memory_vector_search` |
+| `tool_memory/mod.rs` (alias) | `MemoryToolsListTool`, `MemoryToolsPutTool` | `memory_tools_list`, `memory_tools_put` |
+
+The rows marked alias are `tinymemory-tools` types instantiated over
+`HostMemoryTools` (construct one with `::default()`); their names, schemas and
+argument tests live in that crate. This directory keeps only the tools that
+need host policy (`memory_store`, `memory_forget`, the goals tool, the
+consolidated `memory` tool) plus the host-integration tests
+(`tool_memory/guard_tests.rs`) that run the tools against the real guarded
+driver.
`tool_memory/` here (agent tools for reading/writing tool-scoped rules) is
distinct from [`memory/tool_memory/`](../tool_memory/) (the rule store and