Skip to content

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

docs(openhuman-embed): add READMEs for crate and runtime module

Steven Enamakeld6a51f59d1a3
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.md
index f0c69cb919..c10a665c31 100644
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@ -383,6 +383,9 @@ agent to another. See [`src/agent/README.md`](src/agent/README.md).
| `src/call.rs` | The private typed dispatch helper over `CoreRuntime::invoke` that every facade method uses. |
| `src/config.rs`, `src/auth.rs`, `src/core_agent.rs` | The `Core` sub-facades: runtime flags, credentials (`Session`, `AuthState`), and the orchestrator turn. |
| `src/memory.rs` | `Memory`, the per-tenant memory facade returned by `Runtime::memory`. |
+| `src/process.rs`, `src/process_sentry.rs` | Host lifecycle helpers: the agent-sized tokio runtime, logging init, dotenv and launch overrides, the master key, and (`crash-reporting`) the Sentry `ClientOptions` with the single `before_send` chain. |
+| `src/artifacts.rs`, `src/chat_surface.rs`, `src/identity.rs`, `src/modules.rs` | Curated host facades: artifact file resolution, the in-process web-chat event stream, the signed-in identity peek, bundled module releases. `config` also carries `load_or_init`, `load_config_with_timeout`, `default_root_openhuman_dir`, `read_active_user_id`. |
+| `src/host_internals.rs` | `__host` (doc-hidden): an explicit list of core modules for `openhuman-tinyhumans` and `openhuman-rpc` only. |
| `src/error.rs` | `CoreError`, the error every facade call returns (`Domain`, `Unavailable`, `Rpc`, route refusals). |
| [`examples/`](examples/README.md) | Runnable programs: one turn on a harness, and two agents on one runtime. |
| [`tests/`](tests/README.md) | End-to-end suites against `wiremock` providers. |
diff --git a/crates/openhuman-embed/src/runtime/README.md b/crates/openhuman-embed/src/runtime/README.md
index 973b115e2a..d2113a8ed0 100644
--- a/crates/openhuman-embed/src/runtime/README.md
+++ b/crates/openhuman-embed/src/runtime/README.md
@@ -64,15 +64,22 @@ releases `RUNTIME_LIVE`.
| File | What it does |
| --- | --- |
| `mod.rs` | `Runtime`, `RuntimeError`, `CoreGuard` and the `RUNTIME_LIVE` process slot. |
-| `builder.rs` | `RuntimeBuilder`, plus the helpers the harness reuses: `apply_provider`, `effective_host_kind`, `default_domains`, `default_services`. |
+| `builder.rs` | `RuntimeBuilder`, its knobs and `ConfigSource` (`Resolved`: embed hands the core a config; `Discovered`: the core loads the operator's install, as desktop/CLI/TUI do). |
+| `build.rs` | `RuntimeBuilder::build`: validation, config resolution, seam install, `CoreBuilder` boot; `apply_provider`, `effective_host_kind`. |
+| `presets.rs` | Host presets `library`/`desktop`/`cli`/`tui` and the library defaults `default_domains`, `default_services`. |
+| `seams.rs` | Process-global seams as builder options (`controller_extension`, `tool_ranker`, `post_turn_hook`, `tool_hook`, `server_launcher`, `live_policy`) and the guard that restores the restorable ones on drop. |
+| `run.rs` | `RuntimeBuilder::run_from_args` / `run_from_args`: install the builder's process-global pieces for the process, then run the core's CLI dispatcher. |
| `api_key.rs` | `ApiKey`, a newtype over the TinyHumans key whose `Debug` does not print it. |
## Key types and entry points
-- `RuntimeBuilder` (`builder.rs`): `workspace`, `api_key`, `backend_url`,
+- `RuntimeBuilder` (`builder.rs`): `workspace`, `workspace_dir`,
+ `action_dir`, `config_source`, `api_key`, `backend_url`,
`backend_transport`, `memory_engine`, `session_store`, `provider`,
- `access`, `services`, `domains`, `tool_groups`, `host_kind`, `session`,
- `config`, then `build`.
+ `access`, `services`, `domains`, `tool_groups`, `host_kind`, `token`,
+ `listen` (`listen_host`, `listen_port`), `session`, `config`, the seam
+ options (`seams.rs`), then `build` or `run_from_args`. Presets
+ (`presets.rs`): `library()` (= `new()`), `desktop()`, `cli()`, `tui()`.
- `Runtime` (`mod.rs`): `agent(spec)` builds an agent; `agent_ids()` lists
the live ones; `core()` returns the narrow `HarnessCore` (config, auth);
`memory(root)` returns one tenant's `memory::Memory`; `root_dir()` and