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(gitbooks): document auto-update behaviour
Steven Enamakel3e3f075f2f98
diff --git a/gitbooks/README.md b/gitbooks/README.mdindex 297e142ccf..4b16f884c3 100644--- a/gitbooks/README.md+++ b/gitbooks/README.md@@ -1,9 +1,7 @@---description: >-- Personal AI super intelligence for your desktop: a brain that builds a- persistent memory of your life, an orchestrator of agent fleets and- workflows, and a deep researcher across the services you connect, running on- a Rust core light enough to embed anywhere.+ An open-source AI assistant for your desktop with a persistent memory of your+ life, agent fleets and workflows, and a Rust core small enough to embed.icon: diamond---@@ -11,29 +9,31 @@ icon: diamond<figure><img src=".gitbook/assets/demo.png" alt=""><figcaption></figcaption></figure>-OpenHuman is an open-source AI assistant built to be three things most assistants aren't: **a brain** (a persistent, local, readable memory of your world); **an orchestrator** (durable agent graphs, visual workflows, sub-agent fleets, and [end-to-end encrypted agent-to-agent sessions](features/orchestration.md)); and **a deep researcher** (it sweeps your data and the web before you finish asking). It's built on a Rust core wrapped in a Tauri desktop shell, and licensed under GNU GPL3. The source is at [github.com/tinyhumansai/openhuman](https://github.com/tinyhumansai/openhuman).+OpenHuman is an open-source AI assistant for your desktop. It is built to be three things most assistants are not. It is a brain, with a persistent, local, readable memory of your world. It is an orchestrator, with durable agent graphs, visual workflows, sub-agent fleets and [end-to-end encrypted agent-to-agent sessions](features/orchestration.md). And it is a deep researcher, sweeping your data and the web before you finish asking.-Every model in the world, all 200+ of them, shares the same fundamental limitation: they are stateless. You type a prompt, get a response, and the context evaporates. Even the ones with "memory" store a few bullet points. A few bullet points is a sticky note, not intelligence.+It runs on a Rust core inside a Tauri desktop shell and is licensed under GNU GPL3. The source is at [github.com/tinyhumansai/openhuman](https://github.com/tinyhumansai/openhuman).-OpenHuman solves this with a stack that's calmly, deliberately different:+Most language models are stateless. You send a prompt, get a reply, and the context is gone. Even assistants with "memory" keep a few bullet points, which is a sticky note and not understanding. OpenHuman takes a different approach.-- [**Memory you choose and can inspect**](features/memory.md)**.** Documents (folders, files, links, GitHub, RSS, connected apps), conversations and learnings are stored in a memory engine, either hosted TinyHumans or your own CortexDB. The agent asks it questions with citations, and a short brief about you opens every new chat. You can see and delete everything stored.-- [**Third-party integrations**](features/integrations/README.md)**.** One-click OAuth into Gmail, GitHub, Slack, Notion, Stripe, Calendar, Drive, Linear, Jira and more, across the 119 managed-auth toolkits the app knows about, with no API keys to wire by hand and 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/README.md) 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/README.md)**.** 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 voice agent you can interrupt mid-sentence. 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), with a [one-key setup](developing/tinyhumans-api-key.md)), so another product can boot a runtime and add agents to it in a few lines of Rust. See [Performance](developing/performance.md) (with the public [benchmarks repo](https://github.com/tinyhumansai/openhuman-benchmarks)), [Pluggable engines](developing/engines.md), and [Embedding OpenHuman](developing/embedding.md) if you're building on top of it.-- [**Privacy Mode**](features/privacy-mode.md)**.** One switch, enforced in the Rust core: local-only mode structurally blocks every cloud model call and permits only on-device runtimes (Ollama, LM Studio, MLX, local OpenAI-compatible).-- **Simple, UI-first.** A clean desktop experience and short onboarding paths take you from install to a working agent in a few clicks, no config-first setup, no terminal required. The agent has [a face](features/mascot/README.md): a desktop mascot that speaks, reacts to its surroundings, remembers you across weeks, and keeps thinking in the background even when you've stopped typing.+## What you get-Together, these turn OpenHuman into something fundamentally different from a chatbot. It is an AI agent that consumes large amounts of personal data at low cost, maintains a persistent and evolving understanding of your world, and takes proactive actions on your behalf.+- [**Memory you can inspect.**](features/memory.md) Documents (folders, files, links, GitHub, RSS, connected apps), conversations and learnings go into a memory engine, either hosted by TinyHumans or your own CortexDB. The agent answers from it with citations, and a short brief about you opens every new chat. You can see and delete everything stored.+- [**Third-party integrations.**](features/integrations/README.md) One-click OAuth into Gmail, GitHub, Slack, Notion, Stripe, Calendar, Drive, Linear, Jira and more, across 119 managed toolkits. You do not wire API keys by hand.+- **An agent built for big data.** [Token compression](features/token-compression.md) shrinks verbose tool output before it reaches the model, so sweeping through six months of email costs single-digit dollars. [Automatic model routing](features/model-routing/README.md) sends each task to the right model under one subscription and one TinyHumans API key. Optional [local AI through Ollama or LM Studio](features/model-routing/local-ai.md) keeps supported work on your device. Every model, embedding, memory and web-search engine is swappable through config.+- **Fast, cheap decisions.** Before an agent spends a full model call choosing between dozens of tools, a small classifier called Jev scores the options in about 150 milliseconds. It shortlists tools, decides whether any tool is needed, and drives routine browser steps. The expensive model runs only when a task needs it.+- [**Batteries included.**](features/native-tools/README.md) The default toolbelt has [web search](features/native-tools/web-search.md), a [web scraper](features/native-tools/web-scraper.md), a [coder toolset](features/native-tools/coder.md) (filesystem, git, lint, test, grep), [browser and computer control](features/native-tools/browser-and-computer.md), [cron and scheduling](features/native-tools/cron.md), [memory tools](features/native-tools/memory-tools.md), [agent coordination](features/native-tools/agent-coordination.md) for sub-agents, and [native voice](features/native-tools/voice.md) with speech in, speech out and a live voice agent you can interrupt.+- [**Workflows.**](features/workflows.md) Describe an automation in chat. The agent proposes a workflow graph, you review it on a canvas and save it. Flows run on schedules or app events, pause at approval gates, resume where they stopped, and keep a step-by-step run history.+- [**A harness that finishes the job.**](developing/architecture/agent-harness.md) Every turn is checkpointed, so sub-agents pause for your input and resume instead of dying. A circuit breaker stops loops of identical calls and hands back a root-cause summary. Tool failures show up as actionable cards, and every run has a replayable journal with per-call token and cost accounting.+- **Light enough to run in-process.** The Rust core runs inside the desktop app rather than as background services. We measured 500 agents alive in one process at about 1.77 MiB of marginal memory each. The same core ships as a library ([`crates/openhuman-embed`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-embed), with a [one-key setup](developing/tinyhumans-api-key.md)), so another product can boot a runtime and add agents in a few lines of Rust. See [Performance](developing/performance.md), the public [benchmarks repo](https://github.com/tinyhumansai/openhuman-benchmarks), [Pluggable engines](developing/engines.md) and [Embedding OpenHuman](developing/embedding.md).+- [**Privacy Mode.**](features/privacy-mode.md) One switch, enforced in the Rust core. Local-only mode blocks every cloud model call and allows only on-device runtimes (Ollama, LM Studio, MLX, or a local OpenAI-compatible server).+- **Simple and UI-first.** Short onboarding takes you from install to a working agent in a few clicks, with no terminal needed. The agent has [a face](features/mascot/README.md): a desktop mascot that speaks, reacts to its surroundings, remembers you across weeks and keeps thinking in the background.++Together, these make OpenHuman more than a chatbot. It takes in large amounts of personal data at low cost, keeps an evolving understanding of your world, and acts on your behalf.{% hint style="warning" %}-OpenHuman is not AGI. But it is a meaningful architectural step closer, with better memory, better orchestration, and better tooling.+OpenHuman is not AGI. It is a step in that direction, with better memory, orchestration and tooling.{% endhint %}## For developers-Building on or contributing to OpenHuman? Start with [Getting set up](developing/getting-set-up.md), then [Building the Rust core](developing/building-rust-core.md) and the [Architecture](developing/architecture/README.md) overview. To use the core from your own Rust product, read [Embedding OpenHuman](developing/embedding.md) and [One TinyHumans API key](developing/tinyhumans-api-key.md). [Loadable modules](developing/loadable-modules.md) covers the native module system, and [Performance and footprint](developing/performance.md) has the numbers; the benchmark rig and results are public at [tinyhumansai/openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks).+Start with [Getting set up](developing/getting-set-up.md), then [Building the Rust core](developing/building-rust-core.md) and the [Architecture](developing/architecture/README.md) overview. To use the core from your own Rust product, read [Embedding OpenHuman](developing/embedding.md) and [One TinyHumans API key](developing/tinyhumans-api-key.md). [Loadable modules](developing/loadable-modules.md) covers the native module system, and [Performance and footprint](developing/performance.md) has the numbers. The benchmark rig and results are public at [tinyhumansai/openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks).diff --git a/gitbooks/overview/auto-update.md b/gitbooks/overview/auto-update.mdindex c88c289942..1ddd50659e 100644--- a/gitbooks/overview/auto-update.md+++ b/gitbooks/overview/auto-update.md@@ -1,55 +1,55 @@---description: >-How OpenHuman updates itself: one signed manifest, a bounded download retry,- and a shell update that carries the core with it.+ and a single update that covers the app and its core.icon: arrows-rotate---# Auto-update-OpenHuman updates the whole app in one step. The core is linked into the desktop shell rather than shipped beside it, so there is no separate core update to think about: a shell update upgrades both.+OpenHuman updates the whole app in one step. The core is linked into the desktop shell, so there is no separate core update. Updating the shell upgrades both.## What you see-When a newer build is available, the app checks for it and downloads it in the background. The prompt appears once the download is ready, then moves through **ready to install**, **installing** and **restarting**. If you are already current you see **up to date**, and a failure says so rather than silently retrying forever.+When a newer build is available, the app downloads it in the background. A prompt appears once the download is ready and moves through **ready to install**, **installing** and **restarting**. If you are current you see **up to date**. A failure says so instead of retrying forever.-Installing shuts the in-process core down first, under the same restart lock the app uses elsewhere, so replacing the bundle never races a core still holding file handles. On macOS that is what keeps a `.app` replacement clean.+Before installing, the app shuts down the in-process core under the same restart lock it uses elsewhere. That way replacing the bundle never races a core that still holds file handles, which keeps a `.app` replacement on macOS clean.## Where updates come from-A single endpoint, a manifest published with every release:+There is one endpoint, a manifest published with every release:```texthttps://github.com/tinyhumansai/openhuman/releases/latest/download/latest.json```-Every artifact is signed, and the public key is compiled into the app. A build whose signature does not verify is refused. That is the whole trust story: no update server to trust, no second channel.+Every artifact is signed, and the public key is compiled into the app. A build whose signature does not verify is refused. There is no update server to trust and no second channel.-## Retry policy, and what is deliberately not retried+## Retries-Downloads get **three attempts** (one try plus two retries) with a linear backoff of two seconds times the attempt number.+A download gets three attempts: one try plus two retries, with a delay of two seconds times the attempt number.-Only transient network failures are retried. Signature failures, filesystem errors and "no artifact for this target" are **not**, and that asymmetry is the point: re-downloading cannot fix a bad signature, and looping on a verification failure would both waste the user's bandwidth and mask tampering. The policy lives in `crates/openhuman-app/src/app_update.rs`, where `classify` and `is_transient_updater_err` are the two functions that decide.+Only transient network failures are retried. Signature failures, filesystem errors and "no artifact for this target" are not. Downloading again cannot fix a bad signature, and looping on a failed verification would waste bandwidth and could hide tampering. The policy lives in `crates/openhuman-app/src/app_update.rs`, where `classify` and `is_transient_updater_err` decide.## Periodic checks-The core runs the schedule, under `[update]` in `config.toml`:+The core runs the schedule, set under `[update]` in `config.toml`:| Key | Default | What it does || --- | --- | --- |-| `enabled` | `true` | Turn periodic checks off entirely. |-| `interval_minutes` | `60` | How often to check. The runtime floor is 10 minutes. |-| `restart_strategy` | `self_replace` | `self_replace` restarts in place after staging; `supervisor` stages and leaves the restart to whatever is managing the process. |-| `rpc_mutations_enabled` | `true` | Whether a bearer-authenticated RPC client may call the mutating update methods at all. |+| `enabled` | `true` | Turns periodic checks off when set to `false`. |+| `interval_minutes` | `60` | How often to check. The minimum is 10 minutes. |+| `restart_strategy` | `self_replace` | `self_replace` restarts in place after staging. `supervisor` stages the update and leaves the restart to whatever manages the process. |+| `rpc_mutations_enabled` | `true` | Whether a bearer-authenticated RPC client may call the mutating update methods. |-`supervisor` is the setting for a headless or containerised core: something else owns the process lifecycle, and the update should not decide to restart on its own.+Use `supervisor` for a headless or containerized core, where something else owns the process lifecycle and the update should not restart it.## Headless and self-hosted cores-A core you run yourself (`openhuman-core serve`) checks and stages through the `update` namespace rather than the desktop prompt, which is why `rpc_mutations_enabled` exists as a separate switch. The desktop commands that used to update a core binary separately (`check_core_update`, `apply_core_update`) are kept as explicit no-ops for frontend compatibility and do nothing.+A core you run yourself (`openhuman-core serve`) checks and stages updates through the `update` namespace instead of the desktop prompt. That is why `rpc_mutations_enabled` is a separate switch. The old desktop commands `check_core_update` and `apply_core_update` still exist for frontend compatibility but do nothing.## See also-- [Platform & Availability](../features/platform.md): what ships on each OS.-- [Release Policy](../developing/release-policy.md): how a release is cut, and the OAuth minimum-version gate.-- [Cloud Deploy](../features/cloud-deploy.md): running the core somewhere else.+- [Platform and availability](../features/platform.md): what ships on each OS.+- [Release policy](../developing/release-policy.md): how a release is cut, and the OAuth minimum-version gate.+- [Cloud deploy](../features/cloud-deploy.md): running the core somewhere else.