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(developing): update architecture docs to reflect multi-crate workspace and in-process core
Steven Enamakel4b03678df683
diff --git a/gitbooks/developing/README.md b/gitbooks/developing/README.mdindex 6995589a00..1c11871b13 100644--- a/gitbooks/developing/README.md+++ b/gitbooks/developing/README.md@@ -16,7 +16,7 @@ If you just want to use the app, head to [Getting Started](../overview/getting-s| Path | What's there || ----------- | ----------------------------------------------------------------------------------------------------------------- || `app/` | pnpm workspace `openhuman-app`. Vite + React frontend (`app/src/`) and the Tauri desktop host (`crates/openhuman-app/`). |-| `src/` | Rust crate `openhuman_core` and the `openhuman-core` CLI binary. Domains, JSON-RPC, MCP routing. |+| `crates/` | Rust crates: `openhuman-core` (lib `openhuman_core` + the `openhuman-core` CLI binary; domains under `src/<domain>/`, JSON-RPC, MCP routing), `openhuman-app` (Tauri host), `openhuman-embed` (library facade), `openhuman-rpc` (shared RPC contracts + HTTP client), `openhuman-tui` (terminal frontend). || `gitbooks/` | This site (the public-facing docs). || `docs/` | Older deep references not yet migrated to GitBook (memory pipeline diagrams, agent flows, etc.). |@@ -28,9 +28,9 @@ If you just want to use the app, head to [Getting Started](../overview/getting-sIf it's your first time pulling the repo:-1. [**Getting Set Up**](getting-set-up.md). Toolchain, dependencies, the vendored Tauri CLI, sidecar staging - everything `pnpm dev` needs to actually start.-2. [**Building the Rust Core**](building-rust-core.md). Fresh-machine setup for the repo-root Rust crate only: pinned toolchain, OS packages, and exact `cargo` commands.-3. [**Architecture**](architecture.md). How the desktop app, the Rust core sidecar, the JSON-RPC bridge, and the dual sockets fit together. Read this before you make non-trivial changes.+1. [**Getting Set Up**](getting-set-up.md). Toolchain, dependencies, the Tauri CLI - everything `pnpm dev` needs to actually start.+2. [**Building the Rust Core**](building-rust-core.md). Fresh-machine setup for the Rust workspace only: pinned toolchain, OS packages, and exact `cargo` commands.+3. [**Architecture**](architecture.md). How the desktop app, the in-process Rust core, the JSON-RPC bridge, and the dual sockets fit together. Read this before you make non-trivial changes.4. [**Frontend**](architecture/frontend.md) and [**Tauri Shell**](architecture/tauri-shell.md). The React app and the desktop host that wraps it.5. [**MCP Server**](mcp-server.md). Opt-in stdio MCP mode for exposing read-only OpenHuman memory tools to local clients.diff --git a/gitbooks/developing/architecture.md b/gitbooks/developing/architecture.mdindex d81831f2a1..1b9cb368e6 100644--- a/gitbooks/developing/architecture.md+++ b/gitbooks/developing/architecture.md@@ -18,11 +18,11 @@ OpenHuman is a cross-platform communication and automation platform purpose-buil| **`app/`** | pnpm workspace **`openhuman-app`**: Vite/React UI (`app/src/`), Tauri shell (`crates/openhuman-app/`), Vitest tests || **`crates/openhuman-core/`** | Rust **`openhuman_core`** library + **`openhuman-core`** CLI binary - core server, first-class JavaScript runtime (`crates/openhuman-core/src/runtime/javascript/`) backed by a managed Node.js implementation, channels, memory, etc. || **`crates/openhuman-rpc/`** | Shared JSON-RPC contracts, envelope decoding, and authenticated HTTP client reused by the Tauri shell and terminal frontend. |-| **`Cargo.toml`** (root) | Defines the Rust workspace and builds the `openhuman-core` binary (`cargo build --bin openhuman-core`) staged into `crates/openhuman-app/binaries/` for the desktop bundle. |+| **`Cargo.toml`** (root) | Virtual workspace for `openhuman-core`, `openhuman-embed`, `openhuman-rpc`, and `openhuman-tui` (`cargo build --bin openhuman-core` builds the standalone CLI/server). `crates/openhuman-app/` is deliberately excluded and built with its own manifest; the desktop bundle links the core in-process rather than staging a sidecar binary. || **`crates/openhuman-core/src/skills/`** | **Metadata-only** skill helpers (`ops_create`, `ops_discover`, `ops_install`, `ops_parse`, `inject`, `schemas`, `types`). The legacy QuickJS / `rquickjs` skill execution runtime was removed; skills now contribute metadata + tool descriptors that get injected into agent prompts, while tool execution flows through native Rust handlers and Node-backed helpers via `runtime_node`. |-| **`docs/`** | This book + per-tree guides (`docs/src/`, `docs/src-tauri/`) |+| **`docs/`** | Internal maintainer references not yet migrated to this book (coverage matrix, benchmarking, recipes) |-The desktop app **WebView** loads the UI from `app/`; heavy RPC and skills run in the **`openhuman-core`** process, reachable over HTTP from the Tauri host (renderer → `coreRpcClient`, with the `relay_http_rpc` Tauri command as the host-side relay).+The desktop app **WebView** loads the UI from `app/`; heavy RPC and skills run in the **`openhuman-core`** core, hosted in-process as a tokio task by the Tauri shell and reachable over loopback HTTP (renderer → `coreRpcClient`, with the `relay_http_rpc` Tauri command as the host-side relay).---diff --git a/gitbooks/developing/architecture/README.md b/gitbooks/developing/architecture/README.mdindex 8ba18baea5..26a557d9ef 100644--- a/gitbooks/developing/architecture/README.md+++ b/gitbooks/developing/architecture/README.md@@ -16,12 +16,12 @@ OpenHuman is a **React + Tauri v2 desktop app** with a **Rust core** that does t```┌──────────────────────────────────────────────────┐│ Tauri shell (crates/openhuman-app/) │-│ • windowing, OS integration, sidecar lifecycle │+│ • windowing, OS integration, core lifecycle (tokio task) ││ • CEF child webviews for integration providers │└──────────────────────────────────────────────────┘│ JSON-RPC (HTTP) ↕┌──────────────────────────────────────────────────┐-│ Rust core (`openhuman` binary, `src/`) │+│ Rust core (`openhuman-core`, in-process; `crates/openhuman-core/`) ││ • Memory Tree pipeline ││ • Integration adapters + auto-fetch scheduler ││ • Provider router (model routing) │