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: add README files for workspace config, hosting, and embed modules
Steven Enamakelb52e84e3bfa6
diff --git a/crates/openhuman-core/src/config/workspace/README.md b/crates/openhuman-core/src/config/workspace/README.mdindex 61582170f0..ceec18627c 100644--- a/crates/openhuman-core/src/config/workspace/README.md+++ b/crates/openhuman-core/src/config/workspace/README.md@@ -55,21 +55,24 @@ The editable surface is restricted to the `BOOTSTRAP_FILES` allowlist (`SOUL.md`## Dependencies-- `crate::config::rpc` — loads `Config` (timeout-bounded) to resolve `workspace_dir` and `config_path` in both `ops.rs` and `schemas.rs`.-- `crate::skills::init_skills_dir` — seeds the `skills/` directory README during `init_workspace`.-- `crate::subconscious::heartbeat::engine::HeartbeatEngine::ensure_heartbeat_file` — ensures `HEARTBEAT.md` during `init_workspace`.-- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core::{ControllerSchema, FieldSchema, TypeSchema}` — controller registry types.-- `crate::rpc::RpcOutcome` — uniform RPC return type.+- `crate::config::rpc`: loads `Config` (timeout-bounded) to resolve `workspace_dir` and `config_path` in both `ops.rs` and `schemas.rs`.+- `crate::skills::init_skills_dir`: seeds the `skills/` directory README during `init_workspace`.+- `crate::subconscious::heartbeat::engine::HeartbeatEngine::ensure_heartbeat_file`: ensures `HEARTBEAT.md` during `init_workspace`.+- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller registry types.+- `crate::rpc::RpcOutcome`: uniform RPC return type.- Bundled prompt assets via `include_str!("../../agent/prompts/SOUL.md" | "IDENTITY.md")`.+- `tinytools` (`PermissionLevel`, `Tool`, `ToolResult`) for the agent tools in `tools.rs`.+- `rusqlite` for `state.rs`'s watcher-state database.## Used by-- `crates/openhuman-core/src/core/all.rs` — extends the global controller + schema registries with the workspace controllers (the only external consumer found in-tree). The CLI/JSON-RPC surface reaches `init_workspace` and the persona RPCs through that registry rather than direct calls.+- `crates/openhuman-core/src/core/all.rs` extends the global controller and schema registries with the workspace controllers (the only external consumer found in-tree). The CLI/JSON-RPC surface reaches `init_workspace` and the persona RPCs through that registry rather than direct calls.+- `crates/openhuman-core/src/tools/mod.rs` re-exports `workspace::tools::*` into the agent tool catalog.## Notes / gotchas- `bundled_default_contents` is the single allowlist gate: membership there is both "what may be edited from the Persona surface" and "what to restore on reset", so a caller can never read or clobber an arbitrary workspace path (path-traversal names like `../escape.md` and case variants like `soul.md` are rejected).- `read_workspace_file` deliberately avoids a `metadata().len()` pre-check (TOCTOU-prone) and instead reads through `take(MAX_WORKSPACE_FILE_BYTES + 1)`, capping bytes held regardless of races; an over-cap file is refused, non-UTF-8 is rejected.- `WorkspaceFile` intentionally omits the absolute on-disk path to avoid leaking host filesystem layout over RPC.-- This is a stateless-handler domain: no `store.rs`, `tools.rs`, `bus.rs`, or `types.rs` — no agent tools, no event-bus subscribers, no persisted in-memory state.+- The persona/bootstrap surface has no `store.rs`, `bus.rs`, or `types.rs`: no event-bus subscribers, no persisted in-memory state beyond plain files. `tools.rs` and `state.rs` are the exceptions to an otherwise stateless-handler domain.- The module's own `init_workspace` is unrelated to `keyring::init_workspace` (same name, different domain).diff --git a/crates/openhuman-core/src/hosting/README.md b/crates/openhuman-core/src/hosting/README.mdindex a956442af4..e590e54d57 100644--- a/crates/openhuman-core/src/hosting/README.md+++ b/crates/openhuman-core/src/hosting/README.md@@ -11,10 +11,10 @@ everything about a provider, and this module owns everything about OpenHuman.- Decide which directory an agent may deploy (`resolve_in_workspace`).- Expose the ten `hosting_*` agent tools and describe their results to a model.-Everything else, Vercel's endpoints, the upload-then-build deployment protocol,-how a marketplace database is provisioned and connected, the order a launch runs-in, belongs to the crate, where it is provider-independent and tested against a-mock of the provider's REST API. Outside the mock responses in+Everything else belongs to the crate: Vercel's endpoints, the upload-then-build+deployment protocol, how a marketplace database is provisioned and connected,+and the order a launch runs in. That side is provider-independent and tested+against a mock of the provider's REST API. Outside the mock responses in`hosting_tests.rs`, nothing here knows the word `readyState`.## Key files@@ -53,12 +53,13 @@ agent reaches for it.`hosting_rollback` reads the deployment before promoting it and refuses one thatdid not finish building. `hosting_list_deployments` returns failed and-still-building deployments too, they are the history an agent is reading, so-the id it picks is not necessarily one that can serve traffic, and promoting a-failed build would take the site down during an attempt to bring it back up. It-does **not** check that the deployment belongs to the named site: a deployment is-looked up by id alone and the provider's response may omit the project name, so-that check would refuse legitimate rollbacks. The provider owns it.+still-building deployments too, because they are the history an agent is+reading. So the id it picks is not necessarily one that can serve traffic, and+promoting a failed build would take the site down during an attempt to bring it+back up. It does **not** check that the deployment belongs to the named site: a+deployment is looked up by id alone and the provider's response may omit the+project name, so that check would refuse legitimate rollbacks. The provider+owns it.## Gatingdiff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex 31c3d9f067..a3afad8ef7 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -321,7 +321,7 @@ time. Run them with `cargo test -p openhuman-embed --features inference,mcp,skil## Relationship to other cratesIts only in-repo dependency is `openhuman-core` (package `openhuman`) with-`default-features = false` — every capability comes from a feature forwarded+`default-features = false`: every capability comes from a feature forwardedabove. It does not depend on `openhuman-rpc` directly; the shared`RpcOutcome` and `StructuredRpcError` types reach it through`openhuman_core::rpc`. `openhuman-app` and `openhuman-tui` depend ondiff --git a/gitbooks/developing/architecture/frontend.md b/gitbooks/developing/architecture/frontend.mdindex 186369efd8..d289e3dd03 100644--- a/gitbooks/developing/architecture/frontend.md+++ b/gitbooks/developing/architecture/frontend.md@@ -27,7 +27,7 @@ This is one consolidated reference. Use the table of contents above (or your rea| Metric | Value || --------------------------------------- | ------------------------------------------------------------------------- |-| TypeScript / TSX files under `app/src/` | \~1700 (`find app/src -name '*.ts' -o -name '*.tsx' \| wc -l` to refresh) |+| TypeScript / TSX files under `app/src/` | \~1900 (`find app/src -name '*.ts' -o -name '*.tsx' \| wc -l` to refresh) || Test runner | Vitest (`app/test/vitest.config.ts`) |## Directory layout@@ -242,7 +242,7 @@ const result = await apiClient.post<LoginResponse>("/auth/login", {### Domain API modules (`services/api/`)-\~50 domain-scoped modules, one per feature surface, each wrapping either backend REST endpoints or core RPC methods. Representative examples:+\~55 domain-scoped modules, one per feature surface, each wrapping either backend REST endpoints or core RPC methods. Representative examples:- `authApi` / `userApi`: auth + user profile- `threadApi`, `threadUsageApi`: chat threads@@ -499,7 +499,7 @@ Settings is a full `/settings/*` URL surface, presented on desktop as a **modal- **`components/settings/settingsRouteElements.tsx`**: maps registry entries to panel `<Route>` elements.- **`components/settings/modal/`**: `SettingsModal` (mounted by `AppShellDesktop` whenever the path is a settings path; `settingsOverlay.ts` computes `{ settingsOpen, baseLocation }` so the page behind stays rendered), `SettingsModalFrame` (backdrop / Esc / focus / close), `SettingsModalLayout` (routed two-column layout).- **`components/settings/layout/`**: two-pane chrome: `SettingsLayout`, `SettingsSidebar` (grouped by `SettingsNavGroup`: general, assistant, data, connections, knowledge & memory, agents & autonomy, models & inference, automation & integrations, diagnostics & logs), `SettingsSubNav`, `SettingsIndexRedirect`.-- **`components/settings/panels/`**: \~50 leaf panels (`AccountPanel`, `AppearancePanel`, `AIPanel`, `AgentsPanel`, `AgentAccessPanel`, `AutonomyPanel`, `BillingPanel`, `CronJobsPanel`, `IntegrationsPanel`, `McpServerPanel`, `NotificationsTabbedPanel`, `PrivacyPanel`, `DeveloperOptionsPanel`, …). Adding a panel = add the component + a registry entry; nav, breadcrumbs, and search pick it up automatically.+- **`components/settings/panels/`**: \~80 leaf panels (`AccountPanel`, `AppearancePanel`, `AIPanel`, `AgentsPanel`, `AgentAccessPanel`, `AutonomyPanel`, `BillingPanel`, `CronJobsPanel`, `IntegrationsPanel`, `McpServerPanel`, `NotificationsTabbedPanel`, `PrivacyPanel`, `DeveloperOptionsPanel`, …). Adding a panel = add the component + a registry entry; nav, breadcrumbs, and search pick it up automatically.- **`components/settings/search/`**: settings search bar + registry-derived index.### HashRouter vs BrowserRouter@@ -566,7 +566,7 @@ Conventions:### Custom Hooks (`hooks/`)-\~40 app-level hooks. Representative examples:+\~45 app-level hooks. Representative examples:- **`useUser`**: thin wrapper over `useCoreState()`; returns `{ user: snapshot.currentUser, isLoading, error, refetch }`. There is no standalone user store.- **`useBackendUrl`**: runtime backend URL resolution (see [Runtime config precedence](frontend.md#runtime-config-precedence)).