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 orchestration, search engines, and security devices
Steven Enamakele4ff5d2d6d97
diff --git a/crates/openhuman-core/src/agent/orchestration/README.md b/crates/openhuman-core/src/agent/orchestration/README.mdindex 55c4912f6b..12524298cd 100644--- a/crates/openhuman-core/src/agent/orchestration/README.md+++ b/crates/openhuman-core/src/agent/orchestration/README.md@@ -1,4 +1,4 @@-# Agent Orchestration+# orchestration`agent::orchestration` is the control plane for coordinating multiple agentworkers from one parent session: agent teams, background command-center views,diff --git a/crates/openhuman-core/src/search/engines/README.md b/crates/openhuman-core/src/search/engines/README.mdindex b6e6bc9701..42221e819c 100644--- a/crates/openhuman-core/src/search/engines/README.md+++ b/crates/openhuman-core/src/search/engines/README.md@@ -9,25 +9,23 @@ BYOK engines that call a provider's API directly with the user's own key.- `mod.rs`: declares the seven engine modules and nothing else.- `managed.rs`: the default. Builds a single `WebSearchTool` that posts to- the backend's `/agent-integrations/parallel/search` via- `crate::integrations::build_client`.-- `parallel.rs`: registers the full Parallel family- (`ParallelSearchTool`, `ParallelExtractTool`, `ParallelChatTool`,- `ParallelResearchTool`, `ParallelEnrichTool`, `ParallelDatasetTool`) plus- `WebSearchTool`, all backend-proxied through the same `IntegrationClient`.- If no backend client can be built, it falls back to a single- `WebSearchTool` with no client, matching `managed`'s degraded case.+ the backend's `/agent-integrations/parallel/search`.+- `parallel.rs`: registers the full Parallel family (`ParallelSearchTool`,+ `ParallelExtractTool`, `ParallelChatTool`, `ParallelResearchTool`,+ `ParallelEnrichTool`, `ParallelDatasetTool`) plus `WebSearchTool`, all+ backend-proxied. Falls back to a client-less `WebSearchTool` if no backend+ client can be built.- `brave.rs`: registers `BraveWebSearchTool`, `BraveNewsSearchTool`,- `BraveImageSearchTool`, and `BraveVideoSearchTool`, all built from+ `BraveImageSearchTool`, and `BraveVideoSearchTool` from`root_config.search.brave.api_key`. BYOK, direct to Brave's API.-- `querit.rs`: registers a `QueritSearchTool` under the `web_search_tool`- name plus a second instance under `querit_search`, both from- `root_config.search.querit.api_key`. BYOK, direct to Querit's API.-- `exa.rs`: registers `ExaSearchTool` (twice, once as `web_search_tool` and- once as `exa_search`), `ExaFindSimilarTool`, and `ExaGetContentsTool`,- all from `root_config.search.exa.api_key`. The module doc comment is- explicit that every tool here calls `https://api.exa.ai` directly and- nothing routes through the managed backend.+- `querit.rs`: registers `QueritSearchTool` under both the `web_search_tool`+ and `querit_search` names, from `root_config.search.querit.api_key`. BYOK,+ direct to Querit's API.+- `exa.rs`: registers `ExaSearchTool` (as `web_search_tool` and as+ `exa_search`), `ExaFindSimilarTool`, and `ExaGetContentsTool`, from+ `root_config.search.exa.api_key`. The module doc comment says every tool+ here calls `https://api.exa.ai` directly and nothing routes through the+ managed backend.- `tavily.rs`: registers `TavilySearchTool` (as `web_search_tool` and as`tavily_search`) and `TavilyExtractTool`, from`root_config.search.tavily.api_key`. Same BYOK, direct-to-`api.tavily.com`@@ -36,7 +34,7 @@ BYOK engines that call a provider's API directly with the user's own key.## Key types-Every file exports one function with the same shape:+Every file exports one function with the same signature:```rustpub(crate) fn build(root_config: &Config, params: SearchToolParams) -> Vec<Box<dyn Tool>>@@ -44,33 +42,19 @@ pub(crate) fn build(root_config: &Config, params: SearchToolParams) -> Vec<Box<d`SearchToolParams` (`registry.rs`) is a small `Copy` struct carrying`max_results` and `timeout_secs`, already clamped by-`registry::build_search_tools` before any engine sees them. `engines` itself-is declared `pub(crate) mod engines;` in `search/mod.rs`, so nothing outside+`registry::build_search_tools` before any engine sees them. `engines` is+declared `pub(crate) mod engines;` in `search/mod.rs`, so nothing outsidethe search domain names these modules directly.## How it fits`registry::build_search_tools` reads `Config.search.effective_engine()` and-matches it to exactly one of these `build` functions:--```rust-match engine {- SearchEngine::Disabled => engines::disabled::build(...),- SearchEngine::Managed => engines::managed::build(...),- SearchEngine::Parallel => engines::parallel::build(...),- SearchEngine::Brave => engines::brave::build(...),- SearchEngine::Querit => engines::querit::build(...),- SearchEngine::Exa => engines::exa::build(...),- SearchEngine::Tavily => engines::tavily::build(...),-}-```--That call produces the base tool set. If the resolved engine is not-`Disabled`, the registry then appends the TinyFish tools on top+matches it to exactly one `build` function above. If the resolved engine is+not `Disabled`, the registry then layers the TinyFish tools on top(`build_backend_search_tools`), independent of which engine was chosen, aslong as an `IntegrationClient` can be built and`config.integrations.tinyfish.is_active()`. TinyFish therefore has no file-under `engines/`; it is not one of the selectable engines, just an add-on.+here; it is not one of the selectable engines, just an add-on.SearXNG and Seltz also have no file here. Both bypass engine selectionentirely and are constructed per RPC call from `config.searxng` /@@ -79,17 +63,15 @@ entirely and are constructed per RPC call from `config.searxng` /[`../tools/README.md`](../tools/README.md) for the full provider-to-tooltable, including SearXNG, Seltz, and TinyFish.-For the managed and BYOK engines that this directory does cover, `managed`-is the fallback: a BYOK engine configured with no key still resolves to the-managed `WebSearchTool` rather than registering nothing, so `search.engine`-being set to `exa` or `tavily` before a key is saved behaves the same as-`managed`.+A BYOK engine configured with no key still resolves to the managed+`WebSearchTool` rather than registering nothing, so setting `search.engine`+to `exa` or `tavily` before a key is saved behaves the same as `managed`.## Where next- `search/registry.rs` for the dispatch and the TinyFish add-on logic.-- `search/tools/` for the actual `Tool` implementations these `build`- functions construct.+- `search/tools/` for the `Tool` implementations these `build` functions+ construct.- `crates/openhuman-core/src/config/schema/` for the `SearchEngine` enum andthe per-provider config sections (`search.brave`, `search.exa`, and so on)these files read.diff --git a/crates/openhuman-core/src/security/devices/README.md b/crates/openhuman-core/src/security/devices/README.mdindex 442f390895..e1dce26bf0 100644--- a/crates/openhuman-core/src/security/devices/README.md+++ b/crates/openhuman-core/src/security/devices/README.md@@ -24,7 +24,7 @@ Mobile-device pairing domain. Brokers a secure, end-to-end-encrypted tunnel betw| `crates/openhuman-core/src/security/devices/store.rs` | SQLite persistence (`paired_devices` table) via the per-call `with_connection` pattern. || `crates/openhuman-core/src/security/devices/crypto.rs` | `DeviceKeypair` (X25519 keygen, DH, byte round-trip), `TunnelCipher` (XChaCha20-Poly1305 seal/open with a `WINDOW_SIZE`=128 replay window), and base64url helpers. || `crates/openhuman-core/src/security/devices/tunnel_client.rs` | Emits/parses `tunnel:*` events over the shared `SocketManager`; wire types; `tunnel:register` uses Socket.IO ACK via `SocketManager::emit_with_ack`. Frame cap 64 KB. |-| `crates/openhuman-core/src/security/devices/bus.rs` | `DeviceTunnelSubscriber` event handler — drives handshake completion, persistence, and peer-status updates. |+| `crates/openhuman-core/src/security/devices/bus.rs` | `DeviceTunnelSubscriber` event handler: drives handshake completion, persistence, and peer-status updates. |## Public surface@@ -42,7 +42,7 @@ Namespace `devices` (invoked as `openhuman.devices_<function>`):| Method | Inputs | Output | Behavior || --- | --- | --- | --- || `devices_create_pairing` | `label?: string` | `CreatePairingResponse` | Registers a channel via Socket.IO ACK, generates+persists keypair, emits tokenless core `tunnel:connect`, returns QR fields using the backend-provided pairing expiry. |-| `devices_list` | — | `ListDevicesResponse` | Lists non-revoked devices, overlaying live `peer_online` from `PEER_STATUS`. |+| `devices_list` | none | `ListDevicesResponse` | Lists non-revoked devices, overlaying live `peer_online` from `PEER_STATUS`. || `devices_revoke` | `channel_id: string` | `RevokeDeviceResponse` | Soft-deletes the device, clears all in-memory state for the channel, publishes `DeviceRevoked`. |Wired into the controller registry in `crates/openhuman-core/src/core/all.rs` (schemas + registered controllers + the `"devices"` namespace branch).@@ -79,25 +79,25 @@ SQLite DB at `{workspace_dir}/devices/devices.db`, table `paired_devices`:| `created_at` / `last_seen_at` | ISO 8601; `last_seen_at` set by `touch_device`. || `revoked` | Soft-delete flag; `list_devices` filters `revoked = 0`. |-DDL is created idempotently on every connection open (`with_connection`). `peer_online` is **not** persisted — it lives only in the in-memory `PEER_STATUS` map.+DDL is created idempotently on every connection open (`with_connection`). `peer_online` is **not** persisted; it lives only in the in-memory `PEER_STATUS` map.Separately, encrypted X25519 private keys are persisted as `enc2:` strings (via `keyring::SecretStore`, ChaCha20-Poly1305) keyed by `channel_id` in the in-memory `PERSISTED_KEYPAIRS` map, allowing keypair reconstruction (`load_keypair_from_store`) for reconnect handshakes.## Dependencies-- `crate::config` (`Config`, `config::rpc::load_config_with_timeout`) — workspace paths and config loading for handlers.-- `crate::security::keyring::SecretStore` — encrypt/decrypt the X25519 private key at rest.-- `crate::platform::socket::global_socket_manager` — reuse the shared backend Socket.IO connection to emit `tunnel:*` events (no second WebSocket).-- `crate::core::bus::BUS` (`.publish`, `.subscribe`) + `crate::core::events::DomainEvent` + `tinybus::EventHandler` — pub/sub for device tunnel events.-- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core::{ControllerSchema, FieldSchema, TypeSchema}` — controller registry contract.-- `crate::rpc::RpcOutcome` — RPC handler return type.+- `crate::config` (`Config`, `config::rpc::load_config_with_timeout`): workspace paths and config loading for handlers.+- `crate::security::keyring::SecretStore`: encrypt/decrypt the X25519 private key at rest.+- `crate::platform::socket::global_socket_manager`: reuse the shared backend Socket.IO connection to emit `tunnel:*` events (no second WebSocket).+- `crate::core::bus::BUS` (`.publish`, `.subscribe`) plus `crate::core::events::DomainEvent` and `tinybus::EventHandler`: pub/sub for device tunnel events.+- `crate::core::all` (`ControllerFuture`, `RegisteredController`) and `crate::core::{ControllerSchema, FieldSchema, TypeSchema}`: controller registry contract.+- `crate::rpc::RpcOutcome`: RPC handler return type.- External crates: `rusqlite`, `chacha20poly1305`, `x25519-dalek`, `base64`, `sha2`, `chrono`, `once_cell`, `tokio`, `async_trait`, `anyhow`.## Used by-- `crates/openhuman-core/src/core/all.rs` — registers the `devices` controllers/schemas and namespace branch.-- `crates/openhuman-core/src/core/jsonrpc.rs` — calls `register_device_tunnel_subscriber()` at startup.-- `crates/openhuman-core/src/platform/socket/event_handlers.rs` — parses raw `tunnel:*` Socket.IO events into `DomainEvent`s that this domain consumes, using this domain's `tunnel_client` wire types (`TunnelPeerStatus`, `TunnelFrame`).+- `crates/openhuman-core/src/core/all.rs`: registers the `devices` controllers/schemas and namespace branch.+- `crates/openhuman-core/src/core/jsonrpc.rs`: calls `register_device_tunnel_subscriber()` at startup.+- `crates/openhuman-core/src/platform/socket/event_handlers.rs`: parses raw `tunnel:*` Socket.IO events into `DomainEvent`s that this domain consumes, using this domain's `tunnel_client` wire types (`TunnelPeerStatus`, `TunnelFrame`).## Notes / gotchas