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): add source links and developer entry points
Steven Enamakel2957561f9894
diff --git a/gitbooks/README.md b/gitbooks/README.mdindex 6b4dd6ba2d..297e142ccf 100644--- a/gitbooks/README.md+++ b/gitbooks/README.md@@ -11,7 +11,7 @@ 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.+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).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.@@ -24,7 +24,7 @@ OpenHuman solves this with a stack that's calmly, deliberately different:- [**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)), 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.+- **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.@@ -33,3 +33,7 @@ Together, these turn OpenHuman into something fundamentally different from a cha{% hint style="warning" %}OpenHuman is not AGI. But it is a meaningful architectural step closer, with better memory, better orchestration, and better 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).diff --git a/gitbooks/developing/README.md b/gitbooks/developing/README.mdindex 32b294d098..319698b086 100644--- a/gitbooks/developing/README.md+++ b/gitbooks/developing/README.md@@ -13,20 +13,20 @@ If you just want to use the app, head to [Getting Started](../overview/getting-s## Why the harness is light-Most of what makes OpenHuman fast is a choice made early on: the core is a Rust library, not a set of services talking to each other over sockets. Agents run in-process, so a turn pays for a function call instead of a process boundary or an RPC hop. We've measured 500 agents alive at once in a single process at roughly 1.77 MiB of marginal memory each, cold agent turns land around 100 ms, and a stripped build with only the domains you need can come in at 51 MiB. [Performance](performance.md) has the numbers and how we got them.+Most of what makes OpenHuman fast is a choice made early on: the core is a Rust library, not a set of services talking to each other over sockets. Agents run in-process, so a turn pays for a function call instead of a process boundary or an RPC hop. We've measured 500 agents alive at once in a single process at roughly 1.77 MiB of marginal memory each, cold agent turns land around 100 ms, and a stripped build with only the domains you need can come in at 51 MiB. [Performance](performance.md) has the numbers and how we got them, and the rig that produces them is public at [tinyhumansai/openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks).-Everything above that floor is modular: cargo feature gates decide what compiles in, loadable native modules carry the heavier engines, and the engines themselves, model providers, embeddings, memory, search, are chosen by config rather than baked into the binary. That's what [Pluggable engines](engines.md) and [Jev](jev.md) cover.+Everything above that floor is modular: cargo feature gates decide what compiles in, loadable native modules carry the heavier engines, and the engines themselves, model providers, embeddings, memory, search, are chosen by config rather than baked into the binary. That's what [Pluggable engines](engines.md), [Loadable modules](loadable-modules.md) and [Jev](jev.md) cover.## Where things live| Path | What's there || ----------- | ----------------------------------------------------------------------------------------------------------------- |-| `app/` | pnpm workspace `openhuman-app`. Vite + React frontend (`app/src/`) and the Tauri desktop host (`crates/openhuman-app/`). |-| `crates/` | Rust crates. Six workspace members: `openhuman-core` (package `openhuman`: the core library, domains under `src/<domain>/`, the controller contract and in-process dispatch under `src/core/`; **no binary and no JSON-RPC server**), `openhuman-rpc` (JSON-RPC 2.0 over the core: envelopes, HTTP client, and the server), `openhuman-embed` (the typed library facade), `openhuman-tinyhumans` (the only crate that may depend on `tinyhumans-sdk`: backend transport, hosted RPC proxies, host-side session owner; every host installs it first), `openhuman-cli` (the `openhuman-core` binary and every root `tests/` and `examples/` target), `openhuman-tui` (terminal frontend). Plus `openhuman-app` (the Tauri host), which is excluded from the root workspace and builds from its own manifest. |-| `gitbooks/` | This site (the public-facing docs). |-| `docs/` | Internal maintainer docs: test-coverage matrix, release smoke checklist, library benchmarking and minimal-recipe notes, translated READMEs, `community/`. |+| `app/` | pnpm workspace `openhuman-app`. Vite + React frontend ([`app/src/`](https://github.com/tinyhumansai/openhuman/tree/main/app/src)) and the Tauri desktop host ([`crates/openhuman-app/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-app)). |+| `crates/` | Rust crates ([overview](https://github.com/tinyhumansai/openhuman/blob/main/crates/README.md)). Six workspace members: `openhuman-core` (package `openhuman`: the core library, domains under `src/<domain>/`, the controller contract and in-process dispatch under `src/core/`; **no binary and no JSON-RPC server**), `openhuman-rpc` (JSON-RPC 2.0 over the core: envelopes, HTTP client, and the server), `openhuman-embed` (the typed library facade), `openhuman-tinyhumans` (the only crate that may depend on `tinyhumans-sdk`: backend transport, hosted RPC proxies, host-side session owner; every host installs it first), `openhuman-cli` (the `openhuman-core` binary and every root `tests/` and `examples/` target), `openhuman-tui` (terminal frontend). Plus `openhuman-app` (the Tauri host), which is excluded from the root workspace and builds from its own manifest. |+| `gitbooks/` | This site (the public-facing docs, [source](https://github.com/tinyhumansai/openhuman/tree/main/gitbooks)). |+| `docs/` | Internal maintainer docs: test-coverage matrix, release smoke checklist, library benchmarking and minimal-recipe notes, translated READMEs, `community/` ([`docs/`](https://github.com/tinyhumansai/openhuman/tree/main/docs)). |-`AGENTS.md` at the repo root is the source of truth for AI agents working on the codebase (`CLAUDE.md` is a symlink to it). Same rules apply to humans.+[`AGENTS.md`](https://github.com/tinyhumansai/openhuman/blob/main/AGENTS.md) at the repo root is the source of truth for AI agents working on the codebase ([`CLAUDE.md`](https://github.com/tinyhumansai/openhuman/blob/main/CLAUDE.md) is a symlink to it). Same rules apply to humans.---@@ -36,7 +36,7 @@ If it's your first time pulling the repo:1. [**Getting Set Up**](getting-set-up.md). Toolchain, dependencies, the Tauri CLI, everything `pnpm dev` needs to actually start.2. [**Building the Rust Core**](building-rust-core.md). Fresh-machine setup for the Rust workspace only: pinned toolchain, OS packages, and exact `cargo` commands.-3. [**Architecture**](architecture.md). How the desktop app, the in-process Rust core, the JSON-RPC bridge, and the dual sockets fit together. Read this before you make non-trivial changes.+3. [**Architecture**](architecture.md) (with the [overview](architecture/README.md)). How the desktop app, the in-process Rust core, the JSON-RPC bridge, and the dual sockets fit together. Read this before you make non-trivial changes.4. [**Frontend**](architecture/frontend.md) and [**Tauri Shell**](architecture/tauri-shell.md). The React app and the desktop host that wraps it.5. [**MCP Server**](mcp-server.md). Opt-in stdio MCP mode for exposing read-only OpenHuman memory tools to local clients.@@ -44,17 +44,17 @@ If it's your first time pulling the repo:## The core, in depth-- [**Performance**](performance.md). What "light and fast" means in numbers: memory per agent, cold-start timing, binary size, and how the benchmarks are run.+- [**Performance**](performance.md). What "light and fast" means in numbers: memory per agent, cold-start timing, binary size, and how the benchmarks are run. Raw rigs and results live in the public [openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks) repo.- [**Pluggable engines**](engines.md). How the LLM, embeddings, memory, and web search layers are chosen by config, and what's available for each.- [**Jev**](jev.md). The fast probability model behind tool selection and routine browser decisions, and why it beats brute-force retrieval on both speed and accuracy.-- [**Embedding OpenHuman**](embedding.md). Using `openhuman-embed` to run the core, and any number of agents on it, inside another Rust product.+- [**Embedding OpenHuman**](embedding.md) (see also [`crates/openhuman-embed`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-embed)). Using `openhuman-embed` to run the core, and any number of agents on it, inside another Rust product.- [**One TinyHumans API key**](tinyhumans-api-key.md). What a single key unlocks: managed inference, embeddings, web search, media, integrations, voice, and Jev.---## Testing-OpenHuman ships with three test layers. Know which one your change belongs in:+OpenHuman ships with three test layers. Know which one your change belongs in (the Rust integration targets are described in [`tests/README.md`](https://github.com/tinyhumansai/openhuman/blob/main/tests/README.md), the helper scripts in [`scripts/README.md`](https://github.com/tinyhumansai/openhuman/blob/main/scripts/README.md)):- [**Testing Strategy**](testing-strategy.md). When to write Vitest vs cargo tests vs WDIO.- [**E2E Testing**](e2e-testing.md). WDIO/Appium specs, dual-platform setup (Linux tauri-driver, macOS Appium Mac2), and how to run a single spec locally.@@ -75,6 +75,7 @@ PRs must clear the **≥ 80% coverage on changed lines** gate. Add tests for new- [**Agent Harness**](architecture/agent-harness.md). The tinyagents-based turn loop (checkpointing, circuit breakers, sub-agent handback, journals/replay) and how to extend the tool surface.- [**Workflows**](../features/workflows.md). The tinyflows-backed `flows` domain: triggers, trust origins, approval-gated runs, and the `flows_*` RPC surface.+- [**Loadable modules**](loadable-modules.md). Native `cdylib` modules the core loads at runtime, and how they are admitted.- [**Hooks**](hooks.md). User-owned scripts that run before a tool executes, after a file edit, or when a turn finishes.- [**Chromium Embedded Framework**](cef.md). Historical design notes from the CEF era; the shell now runs on stock Tauri (Wry).@@ -83,7 +84,7 @@ PRs must clear the **≥ 80% coverage on changed lines** gate. Add tests for new## Contributing-- Open issues and PRs at [tinyhumansai/openhuman](https://github.com/tinyhumansai/openhuman).+- Open issues and PRs at [tinyhumansai/openhuman](https://github.com/tinyhumansai/openhuman). The [`vendor/`](https://github.com/tinyhumansai/openhuman/tree/main/vendor) submodules (tinyagents, tinymemory and friends) have their own repos under [tinyhumansai](https://github.com/tinyhumansai).- PRs target `main`. Push to your fork, not upstream.- Follow [`CONTRIBUTING.md`](https://github.com/tinyhumansai/openhuman/blob/main/CONTRIBUTING.md) and the issue/PR templates.- Keep changes focused. A bug fix doesn't need surrounding cleanup; a one-shot operation doesn't need a helper.diff --git a/gitbooks/developing/architecture/README.md b/gitbooks/developing/architecture/README.mdindex 2a826369bf..2065f3345a 100644--- a/gitbooks/developing/architecture/README.md+++ b/gitbooks/developing/architecture/README.md@@ -48,15 +48,15 @@ Running the core in-process instead of behind a socket is also why it's cheap to## Crates-- `crates/openhuman-app/` - Tauri v2 desktop host; excluded from the root workspace, built from its own manifest.-- `crates/openhuman-core/` - Cargo package `openhuman`: business domains, the controller contract and in-process dispatch, `CoreBuilder`/`CoreRuntime`. It is a library: no binary, no JSON-RPC server, and no dependency on `tinyhumans-sdk`.-- `crates/openhuman-embed/` - typed library facade (`openhuman_embed::Runtime` / `Agent`, with `Harness` as a one-agent shorthand) for embedding the core in another product.-- `crates/openhuman-rpc/` - JSON-RPC 2.0 over the core: the envelopes, the browser-origin allowlist, the HTTP client used by the app and TUI, and the whole server (axum router, auth middleware, Socket.IO, `/dev/connect`, the listener bind). The contract types themselves (`Outcome`, `ControllerSchema`, `StructuredRpcError`) live in the core.-- `crates/openhuman-tinyhumans/` - the TinyHumans layer: the SDK-backed backend transport, the hosted RPC proxy domains, a `RuntimeBuilder` that boots connected, and the host-side login and session owner. The only crate allowed to depend on `tinyhumans-sdk`, and the first thing every host installs.-- `crates/openhuman-cli/` - the `openhuman-core` binary, the developer and benchmark bins, and every root `tests/` and `examples/` target.-- `crates/openhuman-tui/` - standalone terminal frontend that boots the core in-process.+- [`crates/openhuman-app/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-app) - Tauri v2 desktop host; excluded from the root workspace, built from its own manifest.+- [`crates/openhuman-core/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-core) - Cargo package `openhuman`: business domains, the controller contract and in-process dispatch, `CoreBuilder`/`CoreRuntime`. It is a library: no binary, no JSON-RPC server, and no dependency on `tinyhumans-sdk`.+- [`crates/openhuman-embed/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-embed) - typed library facade (`openhuman_embed::Runtime` / `Agent`, with `Harness` as a one-agent shorthand) for embedding the core in another product.+- [`crates/openhuman-rpc/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-rpc) - JSON-RPC 2.0 over the core: the envelopes, the browser-origin allowlist, the HTTP client used by the app and TUI, and the whole server (axum router, auth middleware, Socket.IO, `/dev/connect`, the listener bind). The contract types themselves (`Outcome`, `ControllerSchema`, `StructuredRpcError`) live in the core.+- [`crates/openhuman-tinyhumans/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-tinyhumans) - the TinyHumans layer: the SDK-backed backend transport, the hosted RPC proxy domains, a `RuntimeBuilder` that boots connected, and the host-side login and session owner. The only crate allowed to depend on `tinyhumans-sdk`, and the first thing every host installs.+- [`crates/openhuman-cli/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-cli) - the `openhuman-core` binary, the developer and benchmark bins, and every root `tests/` and `examples/` target.+- [`crates/openhuman-tui/`](https://github.com/tinyhumansai/openhuman/tree/main/crates/openhuman-tui) - standalone terminal frontend that boots the core in-process.-The full table is under "Repository layout" in the [deep architecture reference](../architecture.md).+The full table is under "Repository layout" in the [deep architecture reference](../architecture.md); per-crate notes are in [`crates/README.md`](https://github.com/tinyhumansai/openhuman/blob/main/crates/README.md).## Data flow@@ -92,3 +92,10 @@ See [Privacy & Security](../../features/privacy-and-security.md) for the full pi- **Repo:** [github.com/tinyhumansai/openhuman](https://github.com/tinyhumansai/openhuman). GNU GPL3.- **Issues and PRs** are welcome. The project is in early beta.- For contributors, the canonical developer guide is [deep architecture reference](../architecture.md).++## Further reading++- [Agent harness](agent-harness.md), [Memory](memory.md) and [Security](security.md) for the deep dives.+- [Frontend](frontend.md) and [Tauri shell](tauri-shell.md) for the two outer layers.+- [Loadable modules](../loadable-modules.md) and [Pluggable engines](../engines.md) for what plugs into the core.+- [`AGENTS.md`](https://github.com/tinyhumansai/openhuman/blob/main/AGENTS.md) for the repo-wide rules, including which `vendor/` submodule owns what.diff --git a/gitbooks/features/integrations/README.md b/gitbooks/features/integrations/README.mdindex b262ce6db5..07fc3822d9 100644--- a/gitbooks/features/integrations/README.md+++ b/gitbooks/features/integrations/README.md@@ -9,7 +9,7 @@ icon: plugOpenHuman ships with backend-proxied access to the connector platform's managed-auth catalog, **119 toolkits** as the app knows them. Connecting one through the managed path is a one-click OAuth flow inside the app: no API keys to wire by hand, and no plugin marketplace to navigate.-That figure is the catalog the app ships (`KNOWN_COMPOSIO_TOOLKITS` in `app/src/components/composio/toolkitMeta.tsx`, pinned at 119 by `toolkitMeta.test.tsx`). What you can actually connect is whatever the backend's allowlist returns when the page loads, and the per-toolkit action schemas are fetched live, so no number in this repository bounds the total actions reachable.+That figure is the catalog the app ships (`KNOWN_COMPOSIO_TOOLKITS` in [`app/src/components/composio/toolkitMeta.tsx`](https://github.com/tinyhumansai/openhuman/blob/main/app/src/components/composio/toolkitMeta.tsx), pinned at 119 by [`toolkitMeta.test.tsx`](https://github.com/tinyhumansai/openhuman/blob/main/app/src/components/composio/toolkitMeta.test.tsx)). What you can actually connect is whatever the backend's allowlist returns when the page loads, and the per-toolkit action schemas are fetched live, so no number in this repository bounds the total actions reachable.Under the hood, the connector layer is powered by [Composio](https://composio.dev). In the default managed mode, OpenHuman's backend owns the Composio API key, OAuth token brokering, rate limits, and trigger webhook fan-out. If you switch to direct mode, the core talks to Composio with your own Composio API key; synchronous tool calls work, but real-time trigger webhooks must be configured on your own webhook infrastructure.