Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(architecture): update openhuman-rpc crate description

Steven Enamakel34983a4363e2
diff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.md
index a1d832c851..fb3460e532 100644
--- a/gitbooks/developing/architecture.md
+++ b/gitbooks/developing/architecture.md
@@ -18,7 +18,7 @@ OpenHuman is a cross-platform communication and automation platform: a Rust core
| **`app/`** | pnpm workspace **`openhuman-app`**: Vite/React UI (`app/src/`), Vitest and WDIO tests. The Tauri shell itself is the Rust crate `crates/openhuman-app/` (below). |
| **`crates/openhuman-app/`** | Thin Tauri v2 desktop host (Cargo package `openhuman-app`). Built from its own manifest and lockfile, excluded from the root workspace; hosts the core as an in-process tokio task (`src/core_process.rs`). |
| **`crates/openhuman-core/`** | Cargo package **`openhuman`**: library **`openhuman_core`**, with no `tinyhumans-sdk` dependency (the hosted backend is reached only through the `api::transport::BackendTransport` port). Flat domain modules directly under `src/` (`agent`, `api`, `channels`, `config`, `cron`, `desktop`, `flows`, `hooks`, `hosting`, `http_host`, `inference`, `integrations`, `json_schema`, `mcp`, `media`, `memory`, `modules`, `platform`, `runtime`, `sandbox`, `search`, `security`, `skills`, `threads`, `tools`, `util`, `voice`, `web3`, `web_chat`, …). `src/core/` holds the JSON-RPC server (`jsonrpc.rs`), CLI (`cli.rs`), dispatch, controller registry (`all.rs`), event bus (`bus.rs`), `runtime/` (`CoreBuilder`/`CoreRuntime`) and `subsystem/`. There is no `src/rpc/` or `src/embed/` inside this crate any more. |
-| **`crates/openhuman-rpc/`** | Shared JSON-RPC contracts: `Outcome`, `unwrap_rpc`, `apply_log_envelope`, `StructuredRpcError`. The `http-client` feature (default on; off for root-workspace consumers) adds `post_json_rpc`, `bearer_header`, `redact_url_for_log`, `HttpRpcResponse`. Used by the Tauri shell (`core_rpc.rs` → `relay_http_rpc`) and the TUI (envelope decoding); re-exported by the core as `openhuman_core::rpc`. |
+| **`crates/openhuman-rpc/`** | JSON-RPC 2.0 over the core, which it depends on: the envelopes (`RpcRequest`, `RpcSuccess`, `RpcFailure`, `request_body`, `decode_response`), the browser-origin allowlist, `unwrap_rpc`, the HTTP client (`http-client` feature: `post_json_rpc`, `bearer_header`, `redact_url_for_log`, `HttpRpcResponse`), and the server (`server` feature: the axum router and handlers, auth middleware, Socket.IO, `/dev/connect`, `serve` and the `run_server*` entry points). Used by the Tauri shell (the embedded server and `core_rpc.rs` → `relay_http_rpc`), the CLI binary (`install_cli_server`) and the TUI (envelope decoding). |
| **`crates/openhuman-embed/`** | Typed library facade with two ways in: `openhuman_embed::Runtime` -> `Agent` (the public library API: one runtime per process, any number of independently configured agents on it, with `Harness` as a one-agent shorthand) and `Core` (a typed facade over a `CoreRuntime` the host built itself with `CoreBuilder`). Forwards the core's feature gates. Installs no backend transport itself. |
| **`crates/openhuman-tinyhumans/`** | The TinyHumans layer above embed: `SdkBackendTransport` (the only crate that depends on the vendored `tinyhumans-sdk`), `install()` for hosts that boot the core themselves, a `RuntimeBuilder` that boots an embed runtime connected, the hosted RPC proxies (`hosted/`: billing, team, referral, announcements, registered into the core's controller registry as an extension), and the host-side login/session owner (`session/`). |
| **`crates/openhuman-cli/`** | The `openhuman-core` binary (installs the tinyhumans transport, then `run_core_from_args`), the developer/benchmark bins, and every root `tests/*.rs` / `examples/*.rs` target. |