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(architecture): update core crate description to reflect JSON-RPC server relocation
Steven Enamakelb17e72a8d471
diff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.mdindex fb3460e532..593fd8c8a8 100644--- a/gitbooks/developing/architecture.md+++ b/gitbooks/developing/architecture.md@@ -17,7 +17,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-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 controller contract (`Outcome`, `ControllerSchema`, `params`, `StructuredRpcError`), in-process dispatch (`invoke.rs`, `dispatch.rs`), the CLI (`cli.rs`), controller registry (`all.rs`), event bus (`bus.rs`), `runtime/` (`CoreBuilder`/`CoreRuntime`, boot and subscribers) and `subsystem/`. The JSON-RPC server is not in this crate: it lives in `openhuman-rpc`, which depends on it. || **`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/`). |