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
chore: files changed crates/openhuman-core/src/memory/tools/README.md
Steven Enamakel7ded57708640
diff --git a/crates/openhuman-core/src/memory/tools/README.md b/crates/openhuman-core/src/memory/tools/README.mdnew file mode 100644index 0000000000..b1280a7800--- /dev/null+++ b/crates/openhuman-core/src/memory/tools/README.md@@ -0,0 +1,76 @@+# tools++Agent-facing memory tools: `Tool` implementations the model can call directly+(as opposed to [`memory/ops/`](../ops/), the RPC handlers used by the app and+CLI). The module file for this directory is [`memory/tools.rs`](../tools.rs)+— there is no `tools/mod.rs` — so start there when tracing what is declared+where.++## Layout++`memory/tools.rs` declares five private submodules that live directly in this+directory (`collapsed`, `doctor`, `forget`, `recall`, `store`) plus one+`pub(crate)` module (`flavour`, kept crate-visible because+`crate::flows::tinyflows::memory_adapter` calls `flavour::lookup_flavour`+directly — see that module's doc comment). Four more are `pub mod` and came+back from `tinymemory-core` when the memory subsystem was extracted; their+directory names track their origin in that crate: `raw_store` was+`store/tools/`, `search` was `search/tools/`, `tool_memory` was+`tool_memory/tools/`, and `goals` was that domain's `tools.rs`. Finally,+`memory/tools.rs` re-exports [`memory/query/`](../query/) (`pub use+crate::memory::query::*`), so the consolidated `memory_tree` tool and its+per-mode structs are also reachable through this module.++| File / dir | Tool struct | `name()` |+| --- | --- | --- |+| `collapsed.rs` | `MemoryTool` | `MEMORY_TOOL_NAME` (`"memory"`) |+| `doctor.rs` | `MemoryDoctorTool` | `memory_doctor` |+| `flavour.rs` | `MemoryFlavourTool` | `memory_flavour` |+| `forget.rs` | `MemoryForgetTool` | `memory_forget` |+| `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` |++`tool_memory/` here (agent tools for reading/writing tool-scoped rules) is+distinct from [`memory/tool_memory/`](../tool_memory/) (the rule store and+prompt rendering it calls into) — same name, different layer, do not confuse+the two when grepping.++## Wiring++[`tools/mod.rs`](../../tools/mod.rs) re-exports this module twice: `pub use+crate::memory::agent::tools::*;` (the `call_memory_agent` tool, a sibling+domain) and `pub use crate::memory::tools::goals::*; pub use+crate::memory::tools::*;` — the latter glob brings every struct above, plus+the re-exported `query/` tools, into `crate::tools::*`.++Registration happens in `tools/ops.rs`, which constructs the concrete tool+list for a session: `MemoryStoreTool`, `MemoryRecallTool`,+`MemoryForgetTool`, `MemoryDoctorTool`, `MemoryFlavourTool`,+`MemoryVectorSearchTool`, `MemoryChunkContextTool`, `MemoryHybridSearchTool`,+`MemoryStoreRawSearchTool`, `MemoryStoreRawChunksTool`,+`MemoryStoreKindsTool`, and `GoalsTool` are all boxed and pushed there (grep+`ops.rs` for each name to find the call site and any capability gate next to+it). `MemoryToolsListTool` and `MemoryToolsPutTool` are exported and+unit-tested but have no registration call site in `ops.rs` as of this+writing — flagged here rather than assumed wired.++As `security/README.md` notes, `store.rs`'s `MemoryStoreTool` and+`forget.rs`'s `MemoryForgetTool` both take an `Arc<SecurityPolicy>`+constructor argument and route their writes through it for sensitive-content+tracking; the other tools in this directory do not.++## Tests++Every file has a colocated `*_tests.rs` (e.g. `collapsed_tests.rs`,+`doctor_tests.rs`, `goals_tests.rs`, and one per file under `raw_store/`,+`search/`, `tool_memory/`), plus `tool_memory/mod_tests.rs` for+cross-tool assertions (e.g. both tools' `name()` values).