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
docs: update memory documentation to reflect Memory v2 and pluggable engine architecture
Steven Enamakel4d304adee4d3
diff --git a/README.md b/README.mdindex d69fcfe812..dc3c8a785f 100644--- a/README.md+++ b/README.md@@ -82,7 +82,7 @@ Every engine OpenHuman calls out to is chosen by config, not hardcoded:- LLM: the managed TinyHumans route, Ollama, LM Studio, MLX, any local OpenAI-compatible server, Claude Code or the Claude Agent SDK, and 26 bring-your-own-key providers including OpenRouter, OpenAI, Anthropic, Google, Groq, Mistral, DeepSeek, Together, and Fireworks. See [local models and BYOK](https://tinyhumans.gitbook.io/openhuman/features/model-routing/local-and-byok-models).- Embeddings: the managed Voyage-backed route, or your own Voyage, OpenAI, Cohere, Ollama, or OpenAI-compatible endpoint.-- Memory: [Memory Trees](https://tinyhumans.gitbook.io/openhuman/features/memory-tree) on TinyCortex, mirrored as an [Obsidian vault](https://tinyhumans.gitbook.io/openhuman/features/obsidian-wiki) on your machine, is the default and stays fully local. Settings > Memory Engine switches a live install, with no restart, to CortexDB hosted by TinyHumans (billed in credits, signed in with your account), or to Supermemory, Mem0, Cognee, CortexDB or AgentMemory with your own endpoint and key, and can copy your existing memories across. Remote engines need the `memory-remote` gate, which the shipped product includes.+- Memory: [Memory v2](https://tinyhumans.gitbook.io/openhuman/features/memory) is Recall, Fetch and Store over a pluggable engine: TinyHumans (hosted CortexDB, signed in with your account) or your own CortexDB (endpoint and key). It stores documents (folders, files, links, GitHub, RSS, connected apps), conversations and learnings, answers questions with citations, and compiles a `context.md` brief for new chats. With neither engine, memory is off. Everything is switched under Connections > Memory.- Web search: managed search included with a subscription, or your own key for Parallel, Brave, Querit, Exa, Tavily, or a self-hosted SearXNG instance.Engine details: [engines](./gitbooks/developing/engines.md).@@ -171,9 +171,9 @@ High-level comparison (products evolve, so verify against each vendor). OpenHuma| **Open-source** | π« Proprietary | β MIT | β MIT | β GNU || **Simple to start** | β Desktop + CLI | β οΈ Terminal-first | β οΈ Terminal-first | β Clean UI, minutes || **Cost** | β οΈ Sub + add-ons | β οΈ BYO models | β οΈ BYO models | β One sub + TokenJuice |-| **Memory** | β Chat-scoped | β οΈ Plugin-reliant | β Self-learning | π Memory Tree + Obsidian vault, optional [agentmemory](https://github.com/rohitg00/agentmemory) backend |+| **Memory** | β Chat-scoped | β οΈ Plugin-reliant | β Self-learning | π Pluggable engine (hosted TinyHumans or your CortexDB), citations, `context.md` brief || **Integrations** | β οΈ Few connectors | β οΈ BYO | β οΈ BYO | π 100+ OAuth Β· 5k+ MCP Β· 90k+ Skills |-| **Auto-fetch** | π« None | π« None | π« None | β 20-min sync into memory |+| **Source sync** | π« None | π« None | π« None | β Scheduled sync of folders, repos, feeds and apps into memory || **Orchestration** | β οΈ Sub-tasks | β οΈ Single loop | β οΈ Single loop | π Agent graphs + checkpoints + E2E-encrypted A2A || **Workflows** | π« None | β οΈ Scripts | β οΈ Scripts | π Visual, durable, agent-proposed, approval-gated || **Meetings** | π« None | π« None | π« None | π Joins Meet/Zoom/Teams/Webex, speaks, live transcript |diff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.mdindex ca57bc5150..56c8db27b0 100644--- a/gitbooks/developing/architecture.md+++ b/gitbooks/developing/architecture.md@@ -201,7 +201,7 @@ Conversation state is separate from memory: each thread's transcript is a JSONL+-------------------------------------------------------------------+```-Credentials go through the OS keychain via the `keyring` crate (macOS Keychain, Windows Credential Manager, Linux Secret Service), on desktop only. Memory is encrypted at rest with AES-256-GCM, keyed by Argon2id. Executable tools run through `SecurityPolicy` (`crates/openhuman-core/src/security/policy/`: `types.rs`, `path_checks.rs`, `command_checks.rs`, `enforcement.rs`) and a host-appropriate sandbox backend selected at runtime, Docker, Bubblewrap, Firejail, Landlock, or a no-op fallback (`crates/openhuman-core/src/security/{docker,bubblewrap,firejail,landlock}.rs`, `detect.rs`); the legacy per-skill QuickJS memory and stack limit model is gone. Web-to-desktop auth handoff uses single-use login tokens with a 5-minute TTL, exchanged via the Rust HTTP client so it bypasses browser CORS. All WebSocket and HTTP connections use rustls, with no dependency on the platform's OpenSSL. Sensitive state lives in Redux (in memory) and the OS keychain (persistent); nothing sensitive goes into localStorage. User prompts are normalized, scored, and enforced server-side (`allow | review | block`) before model or tool execution; see `crates/openhuman-core/src/security/prompt_injection/`.+Credentials go through the OS keychain via the `keyring` crate (macOS Keychain, Windows Credential Manager, Linux Secret Service), on desktop only. Executable tools run through `SecurityPolicy` (`crates/openhuman-core/src/security/policy/`: `types.rs`, `path_checks.rs`, `command_checks.rs`, `enforcement.rs`) and a host-appropriate sandbox backend selected at runtime, Docker, Bubblewrap, Firejail, Landlock, or a no-op fallback (`crates/openhuman-core/src/security/{docker,bubblewrap,firejail,landlock}.rs`, `detect.rs`); the legacy per-skill QuickJS memory and stack limit model is gone. Web-to-desktop auth handoff uses single-use login tokens with a 5-minute TTL, exchanged via the Rust HTTP client so it bypasses browser CORS. All WebSocket and HTTP connections use rustls, with no dependency on the platform's OpenSSL. Sensitive state lives in Redux (in memory) and the OS keychain (persistent); nothing sensitive goes into localStorage. User prompts are normalized, scored, and enforced server-side (`allow | review | block`) before model or tool execution; see `crates/openhuman-core/src/security/prompt_injection/`.---@@ -249,10 +249,10 @@ Every layer is async and non-blocking. The Rust core runs concurrent tool execut## Vendored crate family & recent shifts-Core subsystems run on published `tiny*` crates, vendored as git submodules under `vendor/` (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, β¦) so crate changes can be tested in-tree before publishing. `tinycortex` is not a top-level submodule: the memory engine is reached through the copy `tinymemory` vendors (`vendor/tinymemory/vendor/tinycortex`), which is the commit the prebuilt `tinymemory` module is built from. The major ownership boundaries are:+Core subsystems run on published `tiny*` crates, vendored as git submodules under `vendor/` (`tinyagents`, `tinyflows`, `tinychannels`, `tinyjuice`, `tinymemory`, β¦) so crate changes can be tested in-tree before publishing. `tinymemory` no longer vendors a local engine; it holds the Memory v2 contract and the CortexDB engine. The major ownership boundaries are:- **Agent engine on tinyagents.** Every agent turn runs through the `tinyagents` crate harness via the seam in `crates/openhuman-core/src/agent/tinyagents/`; see [Agent harness](architecture/agent-harness.md).-- **Memory on tinycortex.** The generic store/tree/queue/retrieval/sync engine is crate-owned. TinyCortex is the only memory engine that actually runs today; the remote drivers listed in config exist but are not wired in (see [Engines](engines.md)). OpenHuman keeps RPC, tools, scheduling, credentials, security/event policy, worker orchestration, and the host namespace-document store. `crates/openhuman-core/src/memory/` (`host.rs`, `api.rs`, `binding.rs`, `tree/`, `ops/`, `schemas/`) implements those seams over the vendored `tinymemory` engine (`tinymemory-core`, `tinymemory-api`). Concrete embedding transports are shared through `tinyagents::harness::embeddings`.+- **Memory on tinymemory (v2).** The contract, CortexDB engine, sources, safety scrubbing, context compiler and v1 importer are crate-owned (`vendor/tinymemory`). OpenHuman keeps the host side under `crates/openhuman-core/src/memory/` (see [Memory architecture](architecture/memory.md)). The chat thread store moved to `tinyagents_session::threads`.- **Inference on the crate ModelRouter.** Host workload-tier model routing and cloud provider slugs now use the crate-native `ModelRouter`/`OpenAiModel` (#4782, #4783).---