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(guides): add privacy-sensitive data and move-to-new-pc guides
Steven Enamakel15f9c07282d8
diff --git a/gitbooks/README.md b/gitbooks/README.mdindex e7686e1249..4a6649d94c 100644--- a/gitbooks/README.md+++ b/gitbooks/README.md@@ -21,7 +21,7 @@ OpenHuman solves this with a stack that's calmly, deliberately different:- [**118+ third-party integrations**](features/integrations/README.md)**.** One-click OAuth into Gmail, GitHub, Slack, Notion, Stripe, Calendar, Drive, Linear, Jira and more, no API keys to wire by hand, no plugin marketplace to navigate.- **An agent built for big data.** [Smart token compression (TokenJuice)](features/token-compression.md) compacts verbose tool output before it ever enters the model's context, so sweeping through your last six months of email costs single-digit dollars. [Automatic model routing](features/model-routing/) sends each task to the right model, `hint:reasoning` to a frontier model, `hint:fast` to a cheap one, vision to vision, all under one subscription and one TinyHumans API key. Optional [local AI via Ollama or LM Studio](features/model-routing/local-ai.md) keeps supported workloads on-device, and every LLM, embedding, memory, and web search engine underneath is swappable through config rather than code.- **Fast, cheap decisions.** Before an agent burns a full model call choosing which of dozens of tools to use, a small classifier called Jev scores the options and answers in about 150 milliseconds instead of generating text. It shortlists tools, decides whether a tool is needed at all, and drives routine browser steps, so the expensive model gets called for the things that actually need it.-- [**Batteries included**](features/native-tools/)**.** A complete agent toolbelt is wired in by default: [web search](features/native-tools/web-search.md), a [web-fetch scraper](features/native-tools/web-scraper.md), a full [coder toolset](features/native-tools/coder.md) (filesystem, git, lint, test, grep), [browser & computer control](features/native-tools/browser-and-computer.md), [cron & scheduling](features/native-tools/cron.md), [memory tools](features/native-tools/memory-tools.md), [agent coordination](features/native-tools/agent-coordination.md) for spawning sub-agents, and [native voice](features/native-tools/voice.md), STT in, TTS out, mascot lip-sync, and a live Google Meet agent that joins meetings, transcribes them into your Memory Tree, and can speak back into the call. No "install a plugin to read files" friction.+- [**Batteries included**](features/native-tools/)**.** A complete agent toolbelt is wired in by default: [web search](features/native-tools/web-search.md), a [web-fetch scraper](features/native-tools/web-scraper.md), a full [coder toolset](features/native-tools/coder.md) (filesystem, git, lint, test, grep), [browser & computer control](features/native-tools/browser-and-computer.md), [cron & scheduling](features/native-tools/cron.md), [memory tools](features/native-tools/memory-tools.md), [agent coordination](features/native-tools/agent-coordination.md) for spawning sub-agents, and [native voice](features/native-tools/voice.md), STT in, TTS out, mascot lip-sync, and a live Google Meet agent that joins meetings, transcribes them into your memory, and can speak back into the call. No "install a plugin to read files" friction.- [**Workflows**](features/workflows.md)**.** Durable, visual automations on the open-source tinyflows engine. Describe the automation in chat, the agent proposes a workflow graph, you review it on a canvas and save it. Flows fire on schedules or live app events, pause at approval gates, and resume exactly where they stopped, with full step-by-step run history.- [**A harness that finishes the job**](developing/architecture/agent-harness.md)**.** Every turn runs on the open-source tinyagents graph engine: durable checkpointing (sub-agents pause for your input and resume, instead of dying), a no-progress circuit breaker that stops identical-call loops and hands back a root-cause summary, classified tool failures rendered as actionable timeline cards, and durable, replayable run journals with per-call token and cost accounting.- **Light enough to run in-process.** The Rust core that powers all of this runs in the same process as the desktop app rather than as a bag of background services: we've measured 500 agents alive in one process at about 1.77 MiB of marginal memory each, and thousands of agents on a single box is the direction it's heading. The same core ships as a library ([`crates/openhuman-embed`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-embed)), so another product can boot a runtime and add agents to it in a few lines of Rust. See [Performance](developing/performance.md), [Pluggable engines](developing/engines.md), and [Embedding OpenHuman](developing/embedding.md) if you're building on top of it.diff --git a/gitbooks/developing/architecture/README.md b/gitbooks/developing/architecture/README.mdindex 24127bb2ff..86abc30fe8 100644--- a/gitbooks/developing/architecture/README.md+++ b/gitbooks/developing/architecture/README.md@@ -22,8 +22,8 @@ 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 Tree pipeline │-│ • Integration adapters + auto-fetch scheduler │+│ • Memory v2 (engine binding, recall/fetch/store, context.md) │+│ • Integration adapters + memory source sync ││ • Provider router (model routing) ││ • TokenJuice compression ││ • Native tools (search, fetch, fs, git, …) │@@ -40,7 +40,7 @@ OpenHuman is a **React + Tauri v2 desktop app** with a **Rust core** doing the h**Where logic lives:**-- **Rust core**. All business logic: Memory Tree, integrations, model routing, tools, voice. Authoritative.+- **Rust core**. All business logic: Memory, integrations, model routing, tools, voice. Authoritative.- **Tauri shell**. Windowing, process lifecycle, IPC. A delivery vehicle, not where features live.- **React frontend**. UI and orchestration. Calls into core via JSON-RPC: `coreRpcClient` `fetch()`es `http://127.0.0.1:<port>/rpc` directly; only non-loopback plain-`http://` runtimes go through the shell's `relay_http_rpc` command (the `openhuman-rpc` HTTP client).@@ -59,13 +59,13 @@ The full table is under "Repository layout" in the [deep architecture reference]## Data flow1. **Connect**. OAuth into an [integration](../../features/integrations/README.md). Backend stores the token; core never sees it in plaintext.-2. **Auto-fetch**. Every twenty minutes the [scheduler](../../features/memory.md) walks every active connection and asks each native provider to sync.-3. **Canonicalize**. Provider output (an email page, a GitHub diff, a Slack channel dump) is normalized into provenance-tagged Markdown.-4. **Chunk**. Markdown is split into ≤3k-token deterministic chunks.-5. **Store**. Chunks land in SQLite (`<workspace>/memory_tree/chunks.db`) and as `.md` files in `<workspace>/wiki/`.-6. **Score**. Background workers run embeddings, entity extraction, hotness scoring.-7. **Summarize**. Source / topic / global summary trees are built and refreshed from the chunk pool.-8. **Retrieve**. When you ask a question, the agent queries the Memory Tree (search / drill down / topic / global / fetch).+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.+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.+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,8 +73,7 @@ The full table is under "Repository layout" in the [deep architecture reference]Stays on your machine:-- The Memory Tree SQLite DB.-- The Obsidian Markdown vault.+- Workspace config and `memory/context.md` (the compiled brief).- 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/features/native-tools/memory-tools.md b/gitbooks/features/native-tools/memory-tools.mdindex 7f2917921a..940ee12bc9 100644--- a/gitbooks/features/native-tools/memory-tools.md+++ b/gitbooks/features/native-tools/memory-tools.md@@ -1,27 +1,27 @@----description: How the agent reads, writes, and searches its own long-term memory.+description: How the agent recalls, fetches, learns and forgets with its single memory tool.icon: brain---# Memory Tools-The [Memory Tree](../memory.md) is OpenHuman's knowledge base. The memory tools are how the agent talks to it during a conversation.+[Memory](../memory.md) is OpenHuman's knowledge base. The agent talks to it through one tool, `memory`, whose `action` is one of:-## Tools in the family+| Action | What it does |+| --- | --- |+| `recall` | Ask a question; returns an answer and the citations it rests on. |+| `fetch` | Raw search (hybrid) over stored items, optionally filtered by metadata. Returns hits. |+| `learn` | Save one durable learning (a preference, fact, procedure or correction). |+| `forget` | Remove items by id. |-| Tool | What it does |-| -------- | --------------------------------------------------------------------------------------------------------- |-| `recall` | Search the Memory Tree by query - source-scoped, topic-scoped, or global. Returns chunks with provenance. |-| `store` | Write a new memory the agent decided is worth keeping (a fact, a preference, a piece of context). |-| `forget` | Remove a memory by ID - used when something is wrong, stale, or the user explicitly asks to forget it. |+The tool is only registered when a memory engine is usable. With none selected, memory is off and the agent never sees it. Each learning is tagged with the workspace, thread, agent and tool call that produced it.-There is also a tree-aware retrieval surface (drill down a topic, fetch the global digest for a day) - the agent picks the right one based on the question.+## Why a tool, not implicit context-## Why these are tools, not implicit context+Memory is too large to put in every prompt. Each new chat starts with a short compiled brief ([context.md](../memory.md#contextmd)); for everything else the model asks ("what do I know about the Stripe webhook?") and gets back just the relevant answer with citations.-The Memory Tree is too big to dump into every conversation. The tools let the model _ask_ - "what do I know about Alice?", "what happened yesterday?", "remind me of last week's Stripe webhook" - and the retrieval layer returns just the relevant chunks, with provenance back to the source file in your Obsidian vault.+External MCP clients get the same abilities from OpenHuman's [MCP server](../../developing/mcp-server.md) as `memory.recall`, `memory.fetch`, `memory.list`, `memory.learn` and `memory.forget`.## See also-- [Memory Tree](../memory.md) - what these tools read from and write to.-- [Auto-fetch](../memory.md) - how the tree gets populated in the first place.+- [Memory](../memory.md)diff --git a/gitbooks/features/platform.md b/gitbooks/features/platform.mdindex 2fd3198ee0..e95967c718 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. The local Memory Tree's SQLite database lives in your workspace folder, owned by you.+**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.---@@ -59,7 +59,7 @@ OpenHuman is built as a native application rather than a web wrapper for three r│ JSON-RPC ↕┌──────────────────────────────────────────────────┐│ Rust core (`openhuman` sidecar) │-│ • Memory Tree, integrations, auto-fetch │+│ • Memory, integrations, source sync ││ • Model router, TokenJuice, native tools ││ • Voice (STT in, TTS out, Meet agent) │└──────────────────────────────────────────────────┘@@ -96,9 +96,9 @@ 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. The local Memory Tree is fully accessible, you can browse the [Obsidian vault](memory.md) and read your existing notes without any network connection.+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.-Auto-fetch and live LLM calls require connectivity. When the network returns, the next 20-minute tick picks up where it left off.+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 7c3aea015c..8ee286511f 100644--- a/gitbooks/features/privacy-and-security.md+++ b/gitbooks/features/privacy-and-security.md@@ -4,13 +4,13 @@ icon: shield# Privacy & Security-OpenHuman is designed so that the **memory of your life lives on your machine**. The local SQLite Memory Tree, the Markdown Obsidian vault, your audio buffers, all of that stays under your control. The OpenHuman backend handles things that have to be brokered (LLM calls, OAuth tokens, search proxying), and nothing more.+OpenHuman is designed so that the **memory of your life lives on your machine**. Your workspace files, your audio buffers and your choice of memory engine stay under your control. The OpenHuman backend handles things that have to be brokered (LLM calls, OAuth tokens, search proxying), and nothing more.---## Privacy by Design-**The Memory Tree is local.** The SQLite database (`<workspace>/memory_tree/chunks.db`) and the Markdown vault (`<workspace>/wiki/`) live on your machine. The agent reads from them locally; nothing about your raw source data sits on the OpenHuman backend.+**You choose where memory lives.** [Memory](memory.md) is stored by the engine you select: hosted TinyHumans (CortexDB behind the OpenHuman backend, requires sign-in) or your own CortexDB endpoint. With neither, memory is off and nothing is stored. Secrets and personal identifiers are scrubbed from every item before it is sent, tool-call arguments are never stored, and you can delete any item.**Integration tokens are held by the backend, not on your laptop.** OAuth tokens are never written to disk in plaintext on your device. The OpenHuman backend brokers each integration request, the core never speaks any third-party API directly.@@ -26,8 +26,8 @@ OpenHuman is designed so that the **memory of your life lives on your machine**.| | || ------------------------------- | --------------------------------------------------------------- |-| **Memory Tree SQLite database** | Local - `<workspace>/memory_tree/chunks.db`. |-| **Obsidian Markdown vault** | Local - `<workspace>/wiki/`. Yours to read, edit, copy, delete. |+| **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. |@@ -46,23 +46,21 @@ OpenHuman is designed so that the **memory of your life lives on your machine**.OpenHuman accesses an integration only after you complete its OAuth flow. Each connection has its own scope; you can revoke any of them at any time from the **Connections** page.-[Auto-fetch](memory.md) does run continuously while a connection is active, that is the whole point. But it is bound by:+[Memory sources](memory.md) sync on a schedule while they exist, which is the point. Integration sync is bound by:- The **OAuth scope** you granted that integration.- A **per-provider sync interval** (e.g. Gmail every 15 min by default).- A **daily budget** per connection that caps API usage.-If you revoke a connection, the next tick stops syncing it; chunks already in your local Memory Tree remain there because they're yours.+If you revoke a connection, the next sync stops; items already stored in your memory engine remain until you forget them.----## Why a local memory is privacy+## Why memory is scrubbed and scoped-Most AI assistants face a tradeoff: more context means more raw data sent to the cloud. The Memory Tree eliminates this tradeoff.+Memory only helps if it is safe to keep. Every item passes through secret and PII scrubbing before it is stored, conversations record tool-call names and ids but never arguments, and the agent only sees what a recall or fetch returns at the moment of a turn. You can inspect and delete everything from **Connections → Memory**.-Because canonicalization, chunking, scoring and summary trees all run **inside your local Rust core**, your raw source data never leaves your machine. The only thing the LLM sees is what the agent retrieves from your local Memory Tree at the moment of a turn, and that retrieval is governed by your prompt, not by background uploads.--Compression and locality together become the privacy architecture.+Scrubbing and scoped retrieval together become the privacy architecture.<figure><img src="../.gitbook/assets/V17 — Privacy [email protected]" alt=""><figcaption></figcaption></figure>diff --git a/gitbooks/guides/move-to-new-pc.md b/gitbooks/guides/move-to-new-pc.mdindex 5142af88d4..b6528ae1fe 100644--- a/gitbooks/guides/move-to-new-pc.md+++ b/gitbooks/guides/move-to-new-pc.md@@ -32,8 +32,8 @@ Inside it, the things you care about migrating:| What | Where (inside the data folder) | Travels with a folder copy? || ------------------------------------------------------ | --------------------------------------------- | --------------------------------- |-| **Memory Tree** (the database) | `…/memory_tree/chunks.db` | ✅ Yes |-| **Obsidian vault** (readable memory) | `…/wiki/` | ✅ Yes |+| **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 || **Session history** | `sessions/`, `session_raw/` | ✅ Yes |diff --git a/gitbooks/guides/privacy-sensitive-data.md b/gitbooks/guides/privacy-sensitive-data.mdindex 31e594df09..0f3530c615 100644--- a/gitbooks/guides/privacy-sensitive-data.md+++ b/gitbooks/guides/privacy-sensitive-data.md@@ -27,8 +27,8 @@ These never leave your computer as raw data:| Thing | Plain meaning || ----------------------------- | -------------------------------------------------------------------------------------------- |-| **Your Memory Tree** | The database of everything OpenHuman has learned about your world. It's a file on your disk. |-| **Your Obsidian vault** | The human-readable Markdown version of that memory. Yours to read, edit, or delete. |+| **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/overview/getting-started.md b/gitbooks/overview/getting-started.mdindex f5c18162a8..8c490822aa 100644--- a/gitbooks/overview/getting-started.md+++ b/gitbooks/overview/getting-started.md@@ -1,7 +1,7 @@---description: >-Install OpenHuman, walk through the in-app onboarding (sign in, connect Gmail,- choose how AI runs), and run your first request against your own Memory Tree.+ choose how AI runs), and run your first request against your own memory.icon: play---@@ -40,12 +40,12 @@ The first screen is **"Sign in! Let's Cook"**. Multiple sign-in options are avai{% endhint %}{% hint style="warning" %}-**Know what is local and what is managed.** Your Memory Tree database, Markdown vault, workspace config, and local runtime state live on your machine. The default setup still uses OpenHuman-hosted services for sign-in, model routing, managed integration OAuth/tool calls, and web search proxying. Use the custom setup paths if you want to bring your own model, search, or Composio credentials. Some hosted features and real-time integration triggers still require the managed backend.+**Know what is local and what is managed.** Your workspace config, and local runtime state live on your machine. The default setup still uses OpenHuman-hosted services for sign-in, model routing, managed integration OAuth/tool calls, and web search proxying. Use the custom setup paths if you want to bring your own model, search, or Composio credentials. Some hosted features and real-time integration triggers still require the managed backend.{% endhint %}## 3. Run your first request-Once Gmail has been ingested (the first auto-fetch tick happens within twenty minutes), try prompts like:+Once Gmail is connected and a memory source has synced, try prompts like:**Briefings**@@ -63,9 +63,9 @@ OpenHuman picks the right model for each task automatically. See [Automatic Mode----## 4. Open the Obsidian vault+## 4. Set up memory-The Memory tab has a **View vault in Obsidian** button. Click it to open `<workspace>/wiki/` in [Obsidian](https://obsidian.md). You can browse the agent's summaries, drop in your own notes, and even build manual links - the agent will pick up your edits on the next ingest. See [Obsidian-Style Memory](../features/memory.md).+Open **Connections → Memory**. On the **Engine** tab choose TinyHumans (signed in) or your own CortexDB, then add a folder, link or GitHub repo on the **Documents** tab. The agent can then answer questions about it, with citations. See [Memory](../features/memory.md).---@@ -73,7 +73,7 @@ The Memory tab has a **View vault in Obsidian** button. Click it to open `<worksNow that the agent has memory and a model, the rest of the product is about giving it more surfaces:-- [**Auto-fetch from Integrations**](../features/memory.md) - connect more sources from **Settings**; every twenty minutes the scheduler pulls fresh data into your tree.+- [**Memory**](../features/memory.md) - connect more sources; they sync on a schedule into your memory engine.- [**Native Voice**](../features/native-tools/voice.md) - push-to-talk dictation and TTS replies so you can talk to OpenHuman instead of typing.## Join the community