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/platform/about_app/catalog_conversation_intelligence.
Steven Enamakel5e924f156da6
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rsindex 835203bdd4..2f9c9c8c3b 100644--- a/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs+++ b/crates/openhuman-core/src/platform/about_app/catalog_conversation_intelligence.rs@@ -262,7 +262,7 @@ Capability {name: "Memory Engine",domain: "memory",category: CapabilityCategory::Intelligence,- description: "Choose which engine stores and answers the assistant's memory: CortexDB hosted by TinyHumans (uses your signed-in session) or your own CortexDB (endpoint plus API key, kept in the OS keychain). With no usable engine memory is off: the memory tool is not registered, ingestion does nothing and memory RPCs answer MEMORY_OFF.",+ description: "Choose which engine stores and answers the assistant's memory: CortexDB hosted by TinyHumans (uses your signed-in session) or your own CortexDB (endpoint plus API key, kept in the OS keychain). With no usable engine memory is off: the memory tool is not registered, turns are neither logged nor given a memory pack, and memory RPCs answer MEMORY_OFF.",how_to: "Connections > Memory (/connections?tab=brain&brain=engine). Programmatic: openhuman.memory_engines_list, memory_engine_get, memory_engine_set (RPC).",status: CapabilityStatus::Beta,privacy: MEMORY_TO_REMOTE_ENGINE,@@ -292,8 +292,8 @@ Capability {name: "Per-Agent Memory",domain: "memory",category: CapabilityCategory::Intelligence,- description: "Memory is a tree of nodes. The root holds what every agent shares (the main assistant's learnings, synced documents, imported and past conversations); every other agent has its own node, a sub-agent nests under the agent that spawned it, and a team member sits under its team. Each node keeps its learnings, documents and conversations apart. An agent reads its own node plus the nodes above it, never a sibling's; it can share a learning upward with `learn` and `share: true`. Each node can have its own compiled context.md, injected into that agent's new sessions.",- how_to: "Automatic for every agent turn. Configure with [memory] root_agents and [memory.agents.<id>] (namespace, inherit, context); pin a document source to a node with its `namespace`. Browse nodes with the Explorer's memory node grouping; read one node's brief with openhuman.memory_context_get {namespace} (RPC).",+ description: "Every agent keeps its own conversations (one memory id per agent, by default its definition id) while learnings and the brain are shared by every agent under the same memory root. An agent team gets a root of its own, and a host that runs OpenHuman agents (an embedder, a coordinating product) can bind each agent to its own memory id and root.",+ how_to: "Automatic for every agent turn. Configure with [memory] agent_id / root (host binding), [memory.agents.<id>] agent_id / root / recall, or AgentSpec::memory(MemoryBinding) when embedding. Programmatic: openhuman.memory_agents_list (RPC).",status: CapabilityStatus::Beta,privacy: MEMORY_TO_REMOTE_ENGINE,},@@ -312,28 +312,28 @@ Capability {name: "Automatic Conversation Memory",domain: "memory",category: CapabilityCategory::Intelligence,- description: "Chats are stored as memory automatically: after a number of committed turns in a thread, or once the thread has been idle for a while, one conversation item is sent to the engine (thread, agent, workspace and tool names only; tool arguments are never stored). Can be turned off or tuned. Chats from before automatic saving was on can be stored once with Sync past conversations (after confirming the upload); syncing again only sends what is new.",- how_to: "Connections > Memory > Conversations (/connections?tab=brain&brain=conversations). Programmatic: openhuman.memory_conversations_get, memory_conversations_set, memory_conversations_backfill_status and memory_conversations_backfill_start (RPC).",+ description: "Every turn is logged as it happens: your message before the model runs, the reply after, each under the answering agent (tool names, ids and a one-line result; never tool arguments). Can be turned off. Chats from before turn logging can be stored once with Sync past conversations (after confirming the upload); syncing again only sends what is new.",+ how_to: "Connections > Memory > Conversations (/connections?tab=brain&brain=conversations). Programmatic: openhuman.memory_policy_set {log_conversations}, memory_agents_list, memory_conversations_backfill_status and memory_conversations_backfill_start (RPC).",status: CapabilityStatus::Beta,privacy: MEMORY_TO_REMOTE_ENGINE,},Capability {id: "memory.documents",- name: "Document Sources",+ name: "Brain",domain: "memory",category: CapabilityCategory::Intelligence,- description: "Sync documents into memory from a folder, a single file, a link, a GitHub repository, an RSS feed or a connected Composio toolkit. Each source syncs on demand and on its own schedule, and removing a source can optionally forget the items it brought in.",- how_to: "Connections > Memory > Documents (/connections?tab=brain&brain=documents). Programmatic: openhuman.memory_sources_list, memory_sources_add, memory_sources_remove, memory_sources_sync (RPC).",+ description: "Documents every agent shares, filed by source type (pdf, markdown, notion, github, web, and one per other source). Add a document from text or a file, search it, forget a whole source, or keep it synced from a folder, a single file, a link, a GitHub repository, an RSS feed or a connected Composio toolkit, on demand and on a schedule.",+ how_to: "Connections > Memory > Brain (/connections?tab=brain&brain=brain). Programmatic: openhuman.memory_brain_sources, memory_brain_search, memory_brain_ingest, memory_brain_forget, memory_sources_add, memory_sources_sync (RPC).",status: CapabilityStatus::Beta,privacy: MEMORY_TO_REMOTE_ENGINE,},Capability {- id: "memory.context",- name: "Memory Context Brief",+ id: "memory.turn_pack",+ name: "Memory Before Every Turn",domain: "memory",category: CapabilityCategory::Intelligence,- description: "A periodically compiled brief of what memory knows (context.md in the workspace memory folder) is placed at the start of each new chat, inside <memory-context>, so the assistant begins informed. It refreshes on a schedule or on demand; resumed chats keep their original start. Interval and token budget are adjustable.",- how_to: "Connections > Memory > Context (/connections?tab=brain&brain=context). Programmatic: openhuman.memory_context_get, memory_context_refresh, memory_context_set (RPC).",+ description: "Before the model answers, a short memory pack is recalled for the turn (relevant learnings and built beliefs, brain documents, this agent's history, briefly other agents') and added to that turn's request inside <memory-context>. It is never written into the chat, so the conversation and the prompt cache stay as they were. Long chats keep what they discussed through compaction, and beliefs are built from what was stored in the background. Size and sections are adjustable.",+ how_to: "Automatic for every chat turn. Preview it in Connections > Memory > Ask > Pack preview; tune it in Settings (/connections?tab=brain&brain=settings); watch belief builds in Background (/connections?tab=brain&brain=background). Programmatic: openhuman.memory_pack_preview, memory_policy_get, memory_policy_set, memory_jobs_list, memory_jobs_run (RPC).",status: CapabilityStatus::Beta,privacy: MEMORY_TO_REMOTE_ENGINE,},diff --git a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs b/crates/openhuman-core/src/platform/about_app/catalog_tests.rsindex e72897a5b5..2406e2f67f 100644--- a/crates/openhuman-core/src/platform/about_app/catalog_tests.rs+++ b/crates/openhuman-core/src/platform/about_app/catalog_tests.rs@@ -210,7 +210,7 @@ fn catalog_includes_additional_user_facing_surfaces() {"memory.learnings","memory.conversations","memory.documents",- "memory.context",+ "memory.turn_pack","memory.import","conversation.subagent_mascots",] {@@ -498,10 +498,10 @@ fn memory_v2_capabilities_cite_live_surface_and_rpcs() {("memory.conversations","conversations",- "memory_conversations_set",+ "memory_policy_set",),- ("memory.documents", "documents", "memory_sources_add"),- ("memory.context", "context", "memory_context_refresh"),+ ("memory.documents", "brain", "memory_brain_ingest"),+ ("memory.turn_pack", "settings", "memory_pack_preview"),] {let cap = lookup(id).unwrap_or_else(|| panic!("missing `{id}`"));assert!(@@ -537,6 +537,7 @@ fn v1_memory_capabilities_are_not_advertised() {"intelligence.slack_memory_ingest","intelligence.clickup_memory_ingest","intelligence.remember_preferences",+ "memory.context",] {assert!(lookup(id).is_none(), "removed capability `{id}` is back");}diff --git a/docs/library-benchmarking.md b/docs/library-benchmarking.mdindex 2329ebbc54..c4e0421312 100644--- a/docs/library-benchmarking.md+++ b/docs/library-benchmarking.md@@ -123,7 +123,7 @@ behavior, not linked code size.| --- | --- || `OPENHUMAN_PROFILE_TURNS` | Turn count for `long-agent` (default 25). || `OPENHUMAN_PROFILE_PREWARM_SUBAGENTS=1` | Run one warm-up turn before measuring (`subagents`), isolating first-use cost from steady state. |-| `OPENHUMAN_PROFILE_DISABLE_MEMORY_WRITES=1` | Disable conversation memory (`[memory.conversations]`) and the `context.md` brief (`[memory.context]`), isolating orchestration from persistence. |+| `OPENHUMAN_PROFILE_DISABLE_MEMORY_WRITES=1` | Disable memory writes (conversation logging and the per-turn memory lifecycle), isolating orchestration from persistence. || `OPENHUMAN_PROFILE_FORCE_UTC=1` | Skip `iana_time_zone`/CoreFoundation timezone resolution. || `OPENHUMAN_PROFILE_HOLD_SECS` / `HOLD_BEFORE_SECS` | Pause the process at settled/baseline state for external inspection (`vmmap`, `heap`, `malloc_history`, Instruments). || `OPENHUMAN_PROFILE_DHAT_OUT` | Output path for dhat JSON (set by `library-heap.sh`). |diff --git a/gitbooks/developing/architecture/README.md b/gitbooks/developing/architecture/README.mdindex 86abc30fe8..0cab4ec400 100644--- a/gitbooks/developing/architecture/README.md+++ b/gitbooks/developing/architecture/README.md@@ -22,7 +22,7 @@ OpenHuman is a **React + Tauri v2 desktop app** with a **Rust core** doing the h│ JSON-RPC (loopback HTTP) ↕┌──────────────────────────────────────────────────────────────────┐│ Rust core (crates/openhuman-core/, binary `openhuman-core`) │-│ • Memory v2 (engine binding, recall/fetch/store, context.md) │+│ • Memory v2 (engine binding, recall/fetch/store, turn lifecycle) ││ • Integration adapters + memory source sync ││ • Provider router (model routing) ││ • TokenJuice compression │@@ -62,9 +62,9 @@ The full table is under "Repository layout" in the [deep architecture reference]2. **Sync**. A [memory source](../../features/memory.md) (folder, file, link, GitHub, RSS, or a connected Composio toolkit) syncs on demand and on its own schedule.3. **Read**. `tinymemory-sources` turns the source into documents, with an SSRF guard on links.4. **Scrub**. `tinymemory-safety` removes secrets and personal identifiers from every item.-5. **Store**. The item goes to the selected engine (hosted TinyHumans or your CortexDB). Conversations are stored after every few turns, learnings when the agent or you add one.+5. **Store**. The item goes to the selected engine (hosted TinyHumans or your CortexDB). Conversation turns are logged as they happen, learnings when the agent or you add one.6. **Recall / Fetch**. The agent's `memory` tool asks the engine a question (with citations) or runs a raw hybrid search.-7. **Context**. `context.md` is compiled on a schedule and injected into new chats only.+7. **Pack**. Before every turn, a token-budgeted memory pack is recalled and added to that turn's model request only, never to the transcript.8. **Forget**. Items are removed by id from the Memory page or the tool.9. **Compress**. Tool output and large source data go through [TokenJuice](../../features/token-compression.md) before entering LLM context.10. **Route**. The [router](../../features/model-routing/) picks the right provider and model for the task hint, one of several [pluggable engines](../engines.md) the core chooses at runtime.@@ -73,7 +73,7 @@ The full table is under "Repository layout" in the [deep architecture reference]Stays on your machine:-- Workspace config and `memory/context.md` (the compiled brief).+- Workspace config and persona files.- Audio capture buffers and any local model state.Goes through the OpenHuman backend (under one subscription, and one TinyHumans API key for embedders):diff --git a/gitbooks/developing/architecture/agent-harness.md b/gitbooks/developing/architecture/agent-harness.mdindex a5c1d54254..b459a90131 100644--- a/gitbooks/developing/architecture/agent-harness.md+++ b/gitbooks/developing/architecture/agent-harness.md@@ -160,7 +160,7 @@ Every turn - whether the user just typed a message, a Telegram webhook just fire│ Agent::turn() ││ 1. resume transcript ││ 2. build system prompt* │- │ 3. new session: context.md │+ │ 3. recall memory pack ││ 4. enter tool-call loop ────┼──► provider call│ 5. dispatch tool calls ────┼──► tool exec / sub-agent spawn│ 6. context guard / compact │@@ -196,9 +196,9 @@ A **session** is the live conversation an `Agent` instance is running. The `Agen1. **Resumes the session transcript** if this is a fresh process - re-loading the exact provider messages from disk so the inference backend's KV-cache prefix still hits.2. **Builds the system prompt** (only on the first turn). This pulls in identity, soul, profile, memory, connected integrations, available tools, safety preamble - assembled by the prompt section builder.-3. **Prepends the memory brief on a new session.** The session host adds `<workspace>/memory/context.md`, wrapped in `<memory-context>`, as the first user message of a NEW session only; a resumed session keeps its frozen transcript. Per-turn recall is not automatic: the model calls the `memory` tool, which returns an answer with citations (see [Memory architecture](memory.md)).+3. **Recalls a memory pack.** TinyMemory's agent lifecycle logs the user turn and recalls a token-budgeted pack (learnings and beliefs, brain documents, this agent's history, other agents' turns), wrapped in `<memory-context>` and added to that turn's model requests ephemerally; it is never persisted in the transcript, so the prompt cache is unaffected. The model can still call the `memory` tool for a cited answer (see [Memory architecture](memory.md)).4. **Enters the tool-call loop** (next section).-5. **Spawns post-turn hooks** in the background - the user gets their answer before cost logging and conversation buffering finish.+5. **Spawns post-turn hooks** in the background - the user gets their answer before cost logging and conversation logging finish.The system prompt is **not** rebuilt on subsequent turns. Even cosmetic byte changes invalidate the KV-cache prefix and force a full re-prefill, so dynamic per-turn context (tool results, memory recall answers) is appended as user-visible message content rather than spliced into the system prompt.@@ -513,7 +513,7 @@ A hook returning `Stop` aborts the loop with a clear reason the caller can surfaPost-turn hooks fire **after** the turn completes, in the background. They get a `TurnContext` snapshot - user message, assistant response, every tool call with arguments and outcome, total wall-clock, iteration count, session ID. Built-in consumers:- **Cost log** - final per-turn cost line.-- **Conversation buffering** - the `memory` domain's bus subscriber buffers committed turns per thread and stores one `Conversation` item every `batch_turns` turns or after `idle_secs` of idle (tool call names and ids only, never arguments); see [Memory architecture](memory.md).+- **Conversation logging** - the `memory` lifecycle logs the reply after the turn, with one-line tool results (never arguments); there is no batching or idle flush. See [Memory architecture](memory.md).Long-term facts are written explicitly: the agent calls the `memory` tool's `learn` action. There is no automatic archivist.@@ -752,6 +752,6 @@ Goals and todos are crate-backed outright, with no shadow: thread goals live in## See also- [Architecture overview](README.md) - where the harness sits in the bigger picture.-- [Memory](../../features/memory.md) and [Memory architecture](memory.md) - the `memory` tool, context.md and conversation buffering.+- [Memory](../../features/memory.md) and [Memory architecture](memory.md) - the `memory` tool, the per-turn memory lifecycle and conversation logging.- [Automatic Model Routing](../../features/model-routing/) - how `model: "hint:reasoning"` resolves to a concrete provider+model.- [Native Tools - Agent Coordination](../../features/native-tools/agent-coordination.md) - the user-facing surface for `spawn_subagent`, `delegate_*`, `todo`.diff --git a/gitbooks/developing/cef.md b/gitbooks/developing/cef.mdindex 592268a588..5ace7f835d 100644--- a/gitbooks/developing/cef.md+++ b/gitbooks/developing/cef.md@@ -66,7 +66,7 @@ Each provider had a **scanner module** in `crates/openhuman-app/src/` (all remov| `gmessages_scanner` | Periodic | Google Messages Web read-only IndexedDB walk || `imessage_scanner` | Periodic | **No webview.** Reads `~/Library/Messages/chat.db` directly on macOS |-Each scan emits `webview:event` payloads and POSTs `openhuman.memory_doc_ingest` straight to the core RPC, so memory grows whether the UI window is open or backgrounded.+Each scan emitted `webview:event` payloads from the shell, so scanning continued whether the UI window was open or backgrounded. (The native iMessage scanner's old `openhuman.memory_doc_ingest` RPC call no longer exists in the core.)### Google Meet mascot cameradiff --git a/gitbooks/features/personalization.md b/gitbooks/features/personalization.mdindex 932ea7a17f..54110b24cf 100644--- a/gitbooks/features/personalization.md+++ b/gitbooks/features/personalization.md@@ -1,7 +1,7 @@---description: >-How OpenHuman learns your preferences from everyday use: learnings in memory,- the context.md brief, and your persona files.+ the memory pack recalled for each turn, and your persona files.icon: brain---@@ -15,9 +15,9 @@ A **learning** is one durable statement: a preference, fact, procedure or correcLearnings live in your selected memory engine, so memory has to be on (see [Engines](memory.md#engines)). Secrets and personal identifiers are scrubbed before storing.-## The context.md brief+## The memory pack-Periodically (default every 6 hours) OpenHuman compiles a short brief from memory: who you are, active work, preferences and standing instructions, recent important events, plus your learnings. It is saved to `<workspace>/memory/context.md` and placed at the start of every **new** chat, so the agent defaults to your preferences without being asked. Resumed chats keep the prompt they started with and pick the brief up in the next new chat. Refresh it on demand from the **Context** tab.+Before every turn, OpenHuman recalls a short, token-budgeted *memory pack* from memory: relevant learnings (and beliefs the engine has built from them), documents from your brain, this agent's earlier conversations and, briefly, other agents' turns. The pack is added to that turn's model request only and is never written into the chat, so the agent defaults to your preferences without being asked and the prompt cache is unaffected. Preview it on **Connections → Memory → Ask**. See [How the agent uses memory](memory.md#how-the-agent-uses-memory).## Persona filesdiff --git a/gitbooks/features/platform.md b/gitbooks/features/platform.mdindex e95967c718..b674802ad0 100644--- a/gitbooks/features/platform.md+++ b/gitbooks/features/platform.md@@ -46,7 +46,7 @@ OpenHuman is built as a native application rather than a web wrapper for three r**Fast startup.** No browser engine to initialize. Ready to accept requests immediately.-**OS-level security.** Credentials live in your platform's secure keychain, macOS Keychain, Windows Credential Manager, Linux Secret Service. Sensitive data never sits in browser storage or plain text files. Memory items live in the engine you select; the compiled `context.md` lives in your workspace folder.+**OS-level security.** Credentials live in your platform's secure keychain, macOS Keychain, Windows Credential Manager, Linux Secret Service. Sensitive data never sits in browser storage or plain text files. Memory items live in the engine you select.---@@ -96,7 +96,7 @@ The desktop app maintains a persistent connection to the OpenHuman backend. Resp## Offline behavior-Your local state persists on your device. Preferences, settings, and connected-source configurations remain available offline. Your workspace files, including the compiled `context.md`, stay readable without a network connection. The [memory engine](memory.md) itself needs connectivity unless you point CortexDB at a local endpoint.+Your local state persists on your device. Preferences, settings, and connected-source configurations remain available offline. Your workspace files stay readable without a network connection. The [memory engine](memory.md) itself needs connectivity unless you point CortexDB at a local endpoint.Source sync and live LLM calls require connectivity. When the network returns, the next scheduled sync picks up where it left off.diff --git a/gitbooks/features/privacy-and-security.md b/gitbooks/features/privacy-and-security.mdindex 6d29fe4fc0..0558202bb7 100644--- a/gitbooks/features/privacy-and-security.md+++ b/gitbooks/features/privacy-and-security.md@@ -26,7 +26,6 @@ OpenHuman is designed so that the **memory of your life lives on your machine**.| | || ------------------------------- | --------------------------------------------------------------- |-| **Compiled `context.md`** | Local - `<workspace>/memory/context.md`. || **Memory items** | In your selected engine (hosted TinyHumans or your CortexDB). || **Audio capture buffers** | Local. Discarded after STT. || **Local model state** | Local. |diff --git a/gitbooks/guides/move-to-new-pc.md b/gitbooks/guides/move-to-new-pc.mdindex b6528ae1fe..5d7e6c4831 100644--- a/gitbooks/guides/move-to-new-pc.md+++ b/gitbooks/guides/move-to-new-pc.md@@ -32,7 +32,6 @@ Inside it, the things you care about migrating:| What | Where (inside the data folder) | Travels with a folder copy? || ------------------------------------------------------ | --------------------------------------------- | --------------------------------- |-| **Compiled memory brief** | `…/memory/context.md` | ✅ Yes || **Memory items** | In your engine (TinyHumans or CortexDB) | Sign in again / re-enter the key || **Persona & behavior** | `SOUL.md`, `IDENTITY.md`, `ROLE.md` | ✅ Yes || **Config** (models, providers, routing, autonomy) | `config.toml` | ✅ Yes |diff --git a/gitbooks/guides/privacy-sensitive-data.md b/gitbooks/guides/privacy-sensitive-data.mdindex 0f3530c615..86a1d18703 100644--- a/gitbooks/guides/privacy-sensitive-data.md+++ b/gitbooks/guides/privacy-sensitive-data.md@@ -28,7 +28,6 @@ These never leave your computer as raw data:| Thing | Plain meaning || ----------------------------- | -------------------------------------------------------------------------------------------- || **Your memory engine** | Where documents, conversations and learnings are stored (hosted TinyHumans or your CortexDB). Delete items any time. |-| **`context.md`** | The compiled brief about you, a Markdown file in your workspace. || **Audio you speak** | Captured to transcribe, then discarded. || **Local model state** | If you use [local AI](local-model.md), your own runtime and its models stay on-device. || **Your persona and settings** | The files that define how your assistant behaves and what it's allowed to do. |diff --git a/gitbooks/guides/recover-failed-installation.md b/gitbooks/guides/recover-failed-installation.mdindex e29eea2754..a485af1a96 100644--- a/gitbooks/guides/recover-failed-installation.md+++ b/gitbooks/guides/recover-failed-installation.md@@ -91,7 +91,7 @@ Rename-Item "$env:USERPROFILE\.openhuman" ".openhuman.backup"Relaunch. OpenHuman recreates a fresh data folder and you sign in again.-- If the fresh start **works**, the old folder was the issue, but your data is safe in the backup. You can copy specific pieces back (your workspace files such as `memory/context.md`) and test after each.+- If the fresh start **works**, the old folder was the issue, but your data is safe in the backup. You can copy specific pieces back (your workspace files such as `SOUL.md` or `config.toml`) and test after each.- If it **still fails**, the data folder wasn't the cause. **Restore your backup** by renaming it back, so you lose nothing, and escalate (below).---