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(openhuman-embed): reflow prose in README for clarity
Steven Enamakelb00f80b0ff28
diff --git a/crates/openhuman-core/src/platform/README.md b/crates/openhuman-core/src/platform/README.mdnew file mode 100644index 0000000000..1fe84fbb0f--- /dev/null+++ b/crates/openhuman-core/src/platform/README.md@@ -0,0 +1,32 @@+# platform++Host-platform services for the core process: lifecycle, self-update, diagnostics, and the local transport surfaces the desktop shell talks to. Nothing here is feature-gated. A build whose only inference driver is an external backend still has to start, stay healthy, report cost, and be reachable over Socket.IO, so this module ships in every build.++## What's in it++| Folder | Purpose |+| --- | --- |+| [`about_app/`](about_app/README.md) | The desktop app's user-facing capability catalog: what each feature does, its maturity, and its privacy disclosure. |+| [`connectivity/`](connectivity/README.md) | Reachability diagnostics (`connectivity_diag`) and the listen-port selection logic used when the core binds its HTTP listener. |+| [`cost/`](cost/README.md) | Local token-usage and USD cost tracking, with a 7-day dashboard over JSON-RPC. |+| [`doctor/`](doctor/README.md) | Self-check probes over config, workspace, the daemon state file, and the embedding provider, aggregated into a `DoctorReport`. |+| [`health/`](health/README.md) | In-process component health registry, driven by domain events, backing `GET /health`. |+| [`proc_metrics/`](proc_metrics/README.md) | Cross-platform process (and process-tree) RSS sampling used by the RSS benchmark harness. |+| [`service/`](service/README.md) | Installs the core as a per-user OS service and drives self-restart / graceful shutdown. |+| [`socket/`](socket/README.md) | The persistent Socket.IO client that keeps the core connected to the hosted backend. |+| [`startup/`](startup/README.md) | One-shot workspace migrations run during core boot. |+| [`update/`](update/README.md) | Self-update: checks GitHub Releases, downloads and stages a new binary, and triggers a restart. |++## How it fits++Everything under `platform/` answers questions about the process itself rather than about what the agent is doing: is it running, is it healthy, what did it cost, is it connected, does it need an update. Most of these domains expose a small `*.rs` RPC surface registered into the global controller registry in `crates/openhuman-core/src/core/all.rs`, the same way business-domain modules do, so the frontend and CLI reach them through ordinary JSON-RPC rather than a side channel.++A few subfolders read state that other domains own instead of maintaining their own: `doctor` reads the daemon state file that `service` writes and the memory-tree database that `memory` owns, and `health` is driven entirely by events other domains publish rather than by direct calls into them.++## Key types++There is no single shared type across `platform/`; each subfolder defines its own (`DoctorReport`, `HealthSnapshot`, `CostTracker`, `ServiceStatus`, and so on). See each subfolder's README for its public surface.++## Where next++Start with the subfolder README for the concern you're touching. `service/README.md` and `update/README.md` are the pair to read together if you're changing how the core restarts itself; `health/README.md` and `connectivity/README.md` if you're changing what "is the app connected" means to the frontend.diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex a496efce80..0f15dca020 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -189,13 +189,13 @@ The keyring master key, the RPC bearer, the global event bus and thesequence), so a second runtime would silently share them while believing ithad a separate workspace. `RuntimeBuilder::build` returns`RuntimeError::AlreadyRunning` instead; agents are the unit of multiplicity.-`Core::from_runtime` is not guarded — it only wraps a runtime the host-already built — but the same constraint applies to the `CoreRuntime` beneath+`Core::from_runtime` is not guarded (it only wraps a runtime the host+already built), but the same constraint applies to the `CoreRuntime` beneathit.-Build the tokio runtime yourself — a turn is a large async state machine that-overflows tokio's default 2 MiB worker stack once a sub-agent nests inside it —-using `AGENT_WORKER_STACK_BYTES` and `MAX_BLOCKING_THREADS` from+Build the tokio runtime yourself. A turn is a large async state machine that+overflows tokio's default 2 MiB worker stack once a sub-agent nests inside it,+so use `AGENT_WORKER_STACK_BYTES` and `MAX_BLOCKING_THREADS` from[`openhuman_core::core::runtime`](../openhuman-core/src/core/runtime/README.md):```rust,no_run