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(crates): add READMEs for the crates directory and core crate
Steven Enamakel8c86f2fb725e
diff --git a/crates/README.md b/crates/README.mdindex ae3193f4ff..3455b9b004 100644--- a/crates/README.md+++ b/crates/README.md@@ -14,7 +14,7 @@ with `--manifest-path crates/openhuman-app/Cargo.toml`.| [`openhuman-core`](openhuman-core/README.md) | package `openhuman`, lib `openhuman_core` | The core library: every business domain under `src/<domain>/`, the controller contract and registry, in-process dispatch, the event bus and the CLI dispatcher. No JSON-RPC server, no backend client, no binary targets. || [`openhuman-embed`](openhuman-embed/README.md) | `openhuman-embed` | The typed library facade for running the core in-process in another product (`Runtime` then `Agent`), plus the host presets, `embed::process` lifecycle helpers and the curated facades the hosts use. || [`openhuman-rpc`](openhuman-rpc/README.md) | `openhuman-rpc` | JSON-RPC 2.0 over the core: envelopes, the HTTP client (`http-client`), the server with Socket.IO and the `run_server*` entry points (`server`), the on-disk session store (`session-store`), and `host::{cli, desktop, tui}`, the shared host boot. Re-exports `embed` and `tinyhumans`: the one dependency a host needs. |-| [`openhuman-tinyhumans`](openhuman-tinyhumans/README.md) | `openhuman-tinyhumans` | The hosted-backend layer: the SDK-backed `BackendTransport`, `install()`, a `RuntimeBuilder` that boots connected, the hosted RPC proxies, the login and session owner, and the Jev ranker. The only crate allowed to depend on `tinyhumans-sdk`. |+| [`openhuman-tinyhumans`](openhuman-tinyhumans/README.md) | `openhuman-tinyhumans` | The hosted-backend layer, and the only owner of anything hosted: the backend transport port and its SDK implementation, the authenticated client, routes and hosted providers (plugged into the core's generic registries), `install()`, a `RuntimeBuilder` that boots connected, the hosted RPC proxies, the login and session owner, and the Jev ranker. The only crate allowed to depend on `tinyhumans-sdk`. || [`openhuman-cli`](openhuman-cli/README.md) | `openhuman-cli` | The `openhuman-core` binary, the `openhuman-fleet` and `test-mcp-stub` ops binaries, and every root `tests/*.rs` and `examples/*.rs` target. || [`openhuman-tui`](openhuman-tui/README.md) | `openhuman-tui` | The standalone terminal client, embedding the core in-process. || [`openhuman-app`](openhuman-app/README.md) | `openhuman-app` (lib `openhuman`) | The thin Tauri v2 desktop host. Runs the core and its JSON-RPC server as a tokio task. Outside the root workspace. |@@ -42,7 +42,7 @@ names only the layer directly below it.| process helpers, facadesvopenhuman-core domains, controller registry,- BackendTransport port+ generic registries```The same edges as a list:@@ -69,8 +69,9 @@ tinyhumans as dev-dependencies, which never reach the shipped binary.## Why it is split this wayThe core runs agents, memory, tools and controllers without any hosted-backend. It reaches the backend only through the `BackendTransport` port and-knows nothing of JSON-RPC, so it can be embedded with neither. The layers+backend. It has no backend module, no hosted route and no hosted hostname:+the TinyHumans layer plugs in through the core's generic registries. The core+also knows nothing of JSON-RPC, so it can be embedded with neither. The layersabove add those pieces, and each host boots through one `openhuman_rpc::host`entry that connects them:diff --git a/crates/openhuman-core/README.md b/crates/openhuman-core/README.mdindex 3374eafe56..ee55b63762 100644--- a/crates/openhuman-core/README.md+++ b/crates/openhuman-core/README.md@@ -30,7 +30,7 @@ OpenHuman's policy.v v v+----------------------+ +-------------------------------------------+| openhuman-rpc | | openhuman-tinyhumans |- | JSON-RPC envelopes, | | SdkBackendTransport, RuntimeBuilder, |+ | JSON-RPC envelopes, | | transport, client, hosted providers, || HTTP client, axum | | login/session owner, hosted RPC proxies || server, Socket.IO, | | +-------------------------------------+ || session store | | | openhuman-embed | |@@ -44,7 +44,7 @@ OpenHuman's policy.| core/: Outcome, ControllerSchema, registry (all.rs), invoke, BUS, || CoreBuilder -> CoreRuntime, CLI || src/<domain>/: agent, memory, tools, security, inference, channels... |- | backend/transport: BackendTransport port (implemented above) |+ | generic registries (tools::sources, inference::registry, ...) |+-------------------------------------------------------------------------+|v@@ -60,13 +60,19 @@ OpenHuman's policy.Arrows point at what a crate depends on. Two seams let the upper crates pluginto the core without the core naming them:-- The backend transport port ([`backend/transport/`](./src/backend/transport/): `BackendTransport`,- `BackendRequest`, `BackendTransportError`). `openhuman-tinyhumans`- implements it with the TinyHumans SDK and installs it once per process- (`openhuman_tinyhumans::install`, `RuntimeBuilder`, or- `CoreBuilder::backend_transport`). With no transport installed, agents,- memory, tools, and RPC still run, and backend calls answer- `BACKEND_UNAVAILABLE:`. The core never depends on `tinyhumans-sdk`.+- The generic registries (`tools::sources`, `voice::factory::registry`,+ `voice::live::registry`, `inference::registry`, `channels::callback_slot`,+ `config::register_enricher`, `memory::engine_registry`,+ `integrations::composio::client::register_composio_route_builder`,+ `modules::connectors::register_proxy_target`, `modules::wallet_backend`).+ Each is keyed by a slug or id and knows nothing of what it serves.+ `openhuman-tinyhumans` fills them (`openhuman_tinyhumans::install` or+ `RuntimeBuilder`) with the hosted transport, client, routes and providers.+ The core has no backend module and no transport slot, and+ `scripts/ci/check-core-hosted-free.mjs` keeps hosted names out of it. With+ nothing registered, agents, memory, tools, and RPC still run, and+ backend-touching calls answer `BACKEND_UNAVAILABLE:`. The core never depends+ on `tinyhumans-sdk`.- The controller extension hook (`core::all::register_controller_extension`).`openhuman-tinyhumans` registers the hosted proxies (`billing`, `team`,`referral`, `announcements`, `webhooks`, `channel_link`, `oauth`) under