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(embed): refresh Linux measurements and generated API references
Steven Enamakel0b3c1df99efc
diff --git a/README.md b/README.mdindex b7901ee6f3..22858053a2 100644--- a/README.md+++ b/README.md@@ -117,7 +117,7 @@ Most agent harnesses run one heavy process per agent and resend a big prompt on<h3>Built for developers</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust quickstart</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">Embedding guide</a> · <a href="./crates/openhuman-embed/examples">Examples</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust quickstart</a> · <a href="./gitbooks/developing/embed/README.md">Embedding guide</a> · <a href="./crates/openhuman-embed/examples">Examples</a></p><p>Use it as a Rust library: call an agent like any other function, or run a whole fleet from one small server.</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-Next: the [Rust quickstart](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), the [embedding guide](https://tinyhumans.gitbook.io/openhuman/developing/embedding) and the [developer docs](https://tinyhumans.gitbook.io/openhuman/developing).+Next: the [Rust quickstart](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), the [embedding guide](./gitbooks/developing/embed/README.md) and the [developer docs](https://tinyhumans.gitbook.io/openhuman/developing).---diff --git a/crates/openhuman-embed/examples/README.md b/crates/openhuman-embed/examples/README.mdindex c24342786b..9922e16ac6 100644--- a/crates/openhuman-embed/examples/README.md+++ b/crates/openhuman-embed/examples/README.md@@ -13,6 +13,7 @@- [A per-agent post-turn hook observes completed turns](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/hooks.rs): A per-agent post-turn hook observes completed turns. (offline; optional live via OPENHUMAN_EXAMPLE_LIVE=1 and BASE_URL/API_KEY/MODEL.)- [Host tools and HostOnly keep the advertised tool catalog exact](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/host_tools.rs): Host tools and HostOnly keep the advertised tool catalog exact. (offline with loopback stubs; no live path.)- [Lean runtime without background services](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/lean_headless.rs): Lean runtime without background services. (offline with loopback stubs; optional live via OPENHUMAN_EXAMPLE_LIVE.)+- [Linux agent fleet memory and latency](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs): Measure retained runtime-owned agents using loopback inference and two worker threads. (offline on Linux; use a fresh constrained cgroup for release measurements.)- [Connect an actual MCP protocol stub over loopback](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/mcp.rs): Connect an actual MCP protocol stub over loopback. (offline with loopback stubs; no live path.; feature: mcp)- [Tenant scoped memory facade with an in-memory engine](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/memory.rs): Tenant scoped memory facade with an in-memory engine. (offline with loopback stubs; no live path.)- [SaaS profiles isolate conversation history](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/profiles.rs): SaaS profiles isolate conversation history. (offline with loopback stubs; no live path.)diff --git a/docs/README.ar.md b/docs/README.ar.mdindex adc65d0d85..525adda76f 100644--- a/docs/README.ar.md+++ b/docs/README.ar.md@@ -143,7 +143,7 @@ irm https://raw.githubusercontent.com/tinyhumansai/openhuman/main/scripts/instal<h3>مصمم للمطورين</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">البدء السريع مع Rust</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">دليل التضمين</a> · <a href="../crates/openhuman-embed/examples">أمثلة</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">البدء السريع مع Rust</a> · <a href="../gitbooks/developing/embed/README.md">دليل التضمين</a> · <a href="../crates/openhuman-embed/examples">أمثلة</a></p><p>استخدمه كمكتبة Rust: استدعِ وكيلاً كأي دالة أخرى، أو شغّل أسطولاً كاملاً من خادم صغير واحد.</p>@@ -342,7 +342,7 @@ println!("{}", reply.reply);<div dir="rtl" lang="ar">-بعد ذلك: [البدء السريع مع Rust](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)، و[دليل التضمين](https://tinyhumans.gitbook.io/openhuman/developing/embedding)، و[مستندات المطورين](https://tinyhumans.gitbook.io/openhuman/developing).+بعد ذلك: [البدء السريع مع Rust](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)، و[دليل التضمين](../gitbooks/developing/embed/README.md)، و[مستندات المطورين](https://tinyhumans.gitbook.io/openhuman/developing).---diff --git a/docs/README.de.md b/docs/README.de.mdindex 57475cd8a5..882d2833dc 100644--- a/docs/README.de.md+++ b/docs/README.de.md@@ -117,7 +117,7 @@ Die meisten Agent-Harnesses starten pro Agent einen schweren Prozess und senden<h3>Für Entwickler gebaut</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust-Schnellstart</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">Einbettungsanleitung</a> · <a href="../crates/openhuman-embed/examples">Beispiele</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust-Schnellstart</a> · <a href="../gitbooks/developing/embed/README.md">Einbettungsanleitung</a> · <a href="../crates/openhuman-embed/examples">Beispiele</a></p><p>Nutze es als Rust-Bibliothek: Rufe einen Agenten wie jede andere Funktion auf oder betreibe eine ganze Flotte auf einem kleinen Server.</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-Als Nächstes: der [Rust-Schnellstart](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), die [Einbettungsanleitung](https://tinyhumans.gitbook.io/openhuman/developing/embedding) und die [Entwicklerdokumentation](https://tinyhumans.gitbook.io/openhuman/developing).+Als Nächstes: der [Rust-Schnellstart](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), die [Einbettungsanleitung](../gitbooks/developing/embed/README.md) und die [Entwicklerdokumentation](https://tinyhumans.gitbook.io/openhuman/developing).---diff --git a/docs/README.ja-JP.md b/docs/README.ja-JP.mdindex 71b8a49bce..97946c4175 100644--- a/docs/README.ja-JP.md+++ b/docs/README.ja-JP.md@@ -117,7 +117,7 @@ macOS と Linux のスクリプトが何を行うかを事前に確認するに<h3>開発者のために</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust クイックスタート</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">組み込みガイド</a> · <a href="../crates/openhuman-embed/examples">サンプル</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust クイックスタート</a> · <a href="../gitbooks/developing/embed/README.md">組み込みガイド</a> · <a href="../crates/openhuman-embed/examples">サンプル</a></p><p>Rust ライブラリとして使えます。エージェントを普通の関数のように呼び出すことも、小さなサーバー1台でエージェント群をまるごと動かすこともできます。</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-次は、[Rust クイックスタート](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)、[組み込みガイド](https://tinyhumans.gitbook.io/openhuman/developing/embedding)、[開発者向けドキュメント](https://tinyhumans.gitbook.io/openhuman/developing)をご覧ください。+次は、[Rust クイックスタート](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)、[組み込みガイド](../gitbooks/developing/embed/README.md)、[開発者向けドキュメント](https://tinyhumans.gitbook.io/openhuman/developing)をご覧ください。---diff --git a/docs/README.ko.md b/docs/README.ko.mdindex bbc290e673..83c87b2a57 100644--- a/docs/README.ko.md+++ b/docs/README.ko.md@@ -117,7 +117,7 @@ macOS와 Linux 스크립트가 무엇을 하는지 미리 보려면 명령 끝<h3>개발자를 위해 만들었습니다</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust 퀵스타트</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">임베딩 가이드</a> · <a href="../crates/openhuman-embed/examples">예제</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust 퀵스타트</a> · <a href="../gitbooks/developing/embed/README.md">임베딩 가이드</a> · <a href="../crates/openhuman-embed/examples">예제</a></p><p>Rust 라이브러리로 사용하세요. 다른 함수처럼 에이전트를 호출하거나, 작은 서버 하나에서 수많은 에이전트를 실행할 수 있습니다.</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-다음으로는 [Rust 퀵스타트](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), [임베딩 가이드](https://tinyhumans.gitbook.io/openhuman/developing/embedding), [개발자 문서](https://tinyhumans.gitbook.io/openhuman/developing)를 보세요.+다음으로는 [Rust 퀵스타트](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), [임베딩 가이드](../gitbooks/developing/embed/README.md), [개발자 문서](https://tinyhumans.gitbook.io/openhuman/developing)를 보세요.---diff --git a/docs/README.tr.md b/docs/README.tr.mdindex cd63024b1b..cee26fbf31 100644--- a/docs/README.tr.md+++ b/docs/README.tr.md@@ -117,7 +117,7 @@ macOS ve Linux betiğinin ne yapacağını önceden görmek için komutun sonuna<h3>Geliştiriciler için tasarlandı</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust hızlı başlangıç</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">Gömme rehberi</a> · <a href="../crates/openhuman-embed/examples">Örnekler</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust hızlı başlangıç</a> · <a href="../gitbooks/developing/embed/README.md">Gömme rehberi</a> · <a href="../crates/openhuman-embed/examples">Örnekler</a></p><p>Bir Rust kütüphanesi olarak kullanın: bir ajanı herhangi bir işlev gibi çağırın ya da tüm bir filoyu tek bir küçük sunucudan çalıştırın.</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-Sırada: [Rust hızlı başlangıç](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), [gömme rehberi](https://tinyhumans.gitbook.io/openhuman/developing/embedding) ve [geliştirici dokümanları](https://tinyhumans.gitbook.io/openhuman/developing).+Sırada: [Rust hızlı başlangıç](https://tinyhumans.gitbook.io/openhuman/developing/quickstart), [gömme rehberi](../gitbooks/developing/embed/README.md) ve [geliştirici dokümanları](https://tinyhumans.gitbook.io/openhuman/developing).---diff --git a/docs/README.ur-pk.md b/docs/README.ur-pk.mdindex b125cdf4ec..df362d0e42 100644--- a/docs/README.ur-pk.md+++ b/docs/README.ur-pk.md@@ -139,7 +139,7 @@ macOS اور Linux کی اسکرپٹ کیا کرے گی، یہ پہلے دیکھ<h3>ڈیولپرز کے لیے بنایا گیا</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust کوئیک اسٹارٹ</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">ایمبیڈنگ گائیڈ</a> · <a href="../crates/openhuman-embed/examples">مثالیں</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust کوئیک اسٹارٹ</a> · <a href="../gitbooks/developing/embed/README.md">ایمبیڈنگ گائیڈ</a> · <a href="../crates/openhuman-embed/examples">مثالیں</a></p><p>اسے Rust لائبریری کے طور پر استعمال کریں: ایجنٹ کو کسی بھی عام فنکشن کی طرح کال کریں، یا ایک چھوٹے سرور سے پورا بیڑا چلائیں۔</p>@@ -333,7 +333,7 @@ println!("{}", reply.reply);<div dir="rtl" lang="ur">-اگلا قدم: [Rust کوئیک اسٹارٹ](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)، [ایمبیڈنگ گائیڈ](https://tinyhumans.gitbook.io/openhuman/developing/embedding) اور [ڈیولپر دستاویزات](https://tinyhumans.gitbook.io/openhuman/developing)۔+اگلا قدم: [Rust کوئیک اسٹارٹ](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)، [ایمبیڈنگ گائیڈ](../gitbooks/developing/embed/README.md) اور [ڈیولپر دستاویزات](https://tinyhumans.gitbook.io/openhuman/developing)۔---diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.mdindex 66c0f693af..2a21b11d62 100644--- a/docs/README.zh-CN.md+++ b/docs/README.zh-CN.md@@ -117,7 +117,7 @@ irm https://raw.githubusercontent.com/tinyhumansai/openhuman/main/scripts/instal<h3>为开发者而建</h3>-<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust 快速入门</a> · <a href="https://tinyhumans.gitbook.io/openhuman/developing/embedding">嵌入指南</a> · <a href="../crates/openhuman-embed/examples">示例</a></p>+<p><a href="https://tinyhumans.gitbook.io/openhuman/developing/quickstart">Rust 快速入门</a> · <a href="../gitbooks/developing/embed/README.md">嵌入指南</a> · <a href="../crates/openhuman-embed/examples">示例</a></p><p>把它当作 Rust 库来用:像调用普通函数一样调用智能体,或者在一台小服务器上运行整个集群。</p>@@ -288,7 +288,7 @@ let reply = agent.run("Summarize what you can see in this directory.").await?;println!("{}", reply.reply);```-接下来看:[Rust 快速入门](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)、[嵌入指南](https://tinyhumans.gitbook.io/openhuman/developing/embedding)和[开发者文档](https://tinyhumans.gitbook.io/openhuman/developing)。+接下来看:[Rust 快速入门](https://tinyhumans.gitbook.io/openhuman/developing/quickstart)、[嵌入指南](../gitbooks/developing/embed/README.md)和[开发者文档](https://tinyhumans.gitbook.io/openhuman/developing)。---diff --git a/docs/benchmarks/medulla-embed-linux.json b/docs/benchmarks/medulla-embed-linux.jsonindex d7f84503fa..f57c74ffbc 100644--- a/docs/benchmarks/medulla-embed-linux.json+++ b/docs/benchmarks/medulla-embed-linux.json@@ -1,236 +1,236 @@{- "source_commit": "bbd3d83d80fcaaf3b6284c5b7881d080dcd53a34",+ "source_commit": "b783b39e78ce7ff1a04e0ab8c764746fc970aa00","date": "2026-10-10","host": "Intel Core i7-14700F; x86_64 Ubuntu Linux 7.0.0-31-generic","request_recording": false,"runs": [{- "after_turns_rss_kib": 227952,+ "after_turns_rss_kib": 276692,"agents": 50,- "before_boot_rss_kib": 14488,- "boot_ms": 256.195196,- "cold_turn_ms": 16.275062,- "fleet_elapsed_ms": 447.54206,+ "before_boot_rss_kib": 14744,+ "boot_ms": 262.564262,+ "cold_turn_ms": 59.251718000000004,+ "fleet_elapsed_ms": 1509.882622,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.78296875,- "registered_rss_kib": 36464,- "runtime_rss_kib": 34264,+ "marginal_after_turns_mib": 4.70171875,+ "registered_rss_kib": 37952,+ "runtime_rss_kib": 35964,"tool_scope": ["shell"],- "turn_p50_ms": 330.948465,- "turn_p95_ms": 398.109413,- "turn_p99_ms": 402.916892,+ "turn_p50_ms": 1243.407862,+ "turn_p95_ms": 1462.1273370000001,+ "turn_p99_ms": 1487.141623,"worker_threads": 2,- "cgroup_memory_peak": "203931648",+ "cgroup_memory_peak": "247562240","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000","cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"},{- "after_turns_rss_kib": 226972,+ "after_turns_rss_kib": 279496,"agents": 50,- "before_boot_rss_kib": 14396,- "boot_ms": 256.484423,- "cold_turn_ms": 18.921321000000002,- "fleet_elapsed_ms": 420.257983,+ "before_boot_rss_kib": 14852,+ "boot_ms": 260.539379,+ "cold_turn_ms": 51.243393,+ "fleet_elapsed_ms": 1753.860216,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.75734375,- "registered_rss_kib": 36856,- "runtime_rss_kib": 34596,+ "marginal_after_turns_mib": 4.743671875,+ "registered_rss_kib": 38688,+ "runtime_rss_kib": 36620,"tool_scope": ["shell"],- "turn_p50_ms": 326.425821,- "turn_p95_ms": 359.84249600000004,- "turn_p99_ms": 396.121414,+ "turn_p50_ms": 1438.1386830000001,+ "turn_p95_ms": 1731.4588660000002,+ "turn_p99_ms": 1750.0709909999998,"worker_threads": 2,- "cgroup_memory_peak": "202309632",+ "cgroup_memory_peak": "257216512","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000","cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"},{- "after_turns_rss_kib": 222156,+ "after_turns_rss_kib": 275208,"agents": 50,- "before_boot_rss_kib": 14532,- "boot_ms": 258.358991,- "cold_turn_ms": 18.654450999999998,- "fleet_elapsed_ms": 410.89376500000003,+ "before_boot_rss_kib": 14644,+ "boot_ms": 259.527472,+ "cold_turn_ms": 57.718647999999995,+ "fleet_elapsed_ms": 1526.67821,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.665390625,- "registered_rss_kib": 36640,- "runtime_rss_kib": 34488,+ "marginal_after_turns_mib": 4.673984375,+ "registered_rss_kib": 38000,+ "runtime_rss_kib": 35900,"tool_scope": ["shell"],- "turn_p50_ms": 273.595824,- "turn_p95_ms": 326.54888900000003,- "turn_p99_ms": 383.942,+ "turn_p50_ms": 1235.450996,+ "turn_p95_ms": 1430.5981100000001,+ "turn_p99_ms": 1476.318741,"worker_threads": 2,- "cgroup_memory_peak": "198098944",+ "cgroup_memory_peak": "248852480","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000","cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"},{- "after_turns_rss_kib": 380152,+ "after_turns_rss_kib": 443016,"agents": 100,- "before_boot_rss_kib": 14696,- "boot_ms": 261.058476,- "cold_turn_ms": 23.715644,- "fleet_elapsed_ms": 843.2798409999999,+ "before_boot_rss_kib": 15048,+ "boot_ms": 259.398238,+ "cold_turn_ms": 54.594975,+ "fleet_elapsed_ms": 3871.8118969999996,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.37453125,- "registered_rss_kib": 38836,- "runtime_rss_kib": 34600,+ "marginal_after_turns_mib": 3.9723046875,+ "registered_rss_kib": 40296,+ "runtime_rss_kib": 36252,"tool_scope": ["shell"],- "turn_p50_ms": 630.060869,- "turn_p95_ms": 781.8404089999999,- "turn_p99_ms": 807.385043,+ "turn_p50_ms": 3356.607077,+ "turn_p95_ms": 3677.217686,+ "turn_p99_ms": 3753.63024,"worker_threads": 2,- "cgroup_memory_peak": "368861184",+ "cgroup_memory_peak": "427536384","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 302"},{- "after_turns_rss_kib": 381448,+ "after_turns_rss_kib": 452564,"agents": 100,- "before_boot_rss_kib": 14532,- "boot_ms": 260.519274,- "cold_turn_ms": 22.652142,- "fleet_elapsed_ms": 1063.297785,+ "before_boot_rss_kib": 14940,+ "boot_ms": 260.501723,+ "cold_turn_ms": 76.418385,+ "fleet_elapsed_ms": 3537.497514,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.389453125,- "registered_rss_kib": 38588,- "runtime_rss_kib": 34368,+ "marginal_after_turns_mib": 4.0640234375,+ "registered_rss_kib": 40600,+ "runtime_rss_kib": 36408,"tool_scope": ["shell"],- "turn_p50_ms": 780.051866,- "turn_p95_ms": 929.080972,- "turn_p99_ms": 964.185504,+ "turn_p50_ms": 2926.264162,+ "turn_p95_ms": 3369.911277,+ "turn_p99_ms": 3479.3718,"worker_threads": 2,- "cgroup_memory_peak": "370405376",+ "cgroup_memory_peak": "438190080","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 302"},{- "after_turns_rss_kib": 381500,+ "after_turns_rss_kib": 447872,"agents": 100,- "before_boot_rss_kib": 14408,- "boot_ms": 258.39308300000005,- "cold_turn_ms": 19.710221999999998,- "fleet_elapsed_ms": 953.5413149999999,+ "before_boot_rss_kib": 14640,+ "boot_ms": 261.176896,+ "cold_turn_ms": 66.686791,+ "fleet_elapsed_ms": 3478.3309299999996,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 3.3948828125,- "registered_rss_kib": 38116,- "runtime_rss_kib": 33864,+ "marginal_after_turns_mib": 4.0276953125,+ "registered_rss_kib": 39496,+ "runtime_rss_kib": 35436,"tool_scope": ["shell"],- "turn_p50_ms": 713.8235229999999,- "turn_p95_ms": 839.781121,- "turn_p99_ms": 865.269359,+ "turn_p50_ms": 2995.865202,+ "turn_p95_ms": 3322.377072,+ "turn_p99_ms": 3370.5552860000003,"worker_threads": 2,- "cgroup_memory_peak": "370077696",+ "cgroup_memory_peak": "441462784","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 247"},{- "after_turns_rss_kib": 1511184,+ "after_turns_rss_kib": 1754084,"agents": 500,- "before_boot_rss_kib": 14236,- "boot_ms": 258.86011599999995,- "cold_turn_ms": 22.475146000000002,- "fleet_elapsed_ms": 5451.315839,+ "before_boot_rss_kib": 14848,+ "boot_ms": 259.876961,+ "cold_turn_ms": 87.352638,+ "fleet_elapsed_ms": 20784.037358999998,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 2.88403125,- "registered_rss_kib": 55136,- "runtime_rss_kib": 34560,+ "marginal_after_turns_mib": 3.3552890625,+ "registered_rss_kib": 56720,+ "runtime_rss_kib": 36176,"tool_scope": ["shell"],- "turn_p50_ms": 4820.459523,- "turn_p95_ms": 5284.533808,- "turn_p99_ms": 5339.48242,+ "turn_p50_ms": 17427.23177,+ "turn_p95_ms": 19450.306773,+ "turn_p99_ms": 20044.679603,"worker_threads": 2,- "cgroup_memory_peak": "1625919488",+ "cgroup_memory_peak": "1841565696","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 1502"},{- "after_turns_rss_kib": 1540228,+ "after_turns_rss_kib": 1870448,"agents": 500,- "before_boot_rss_kib": 14452,- "boot_ms": 258.009249,- "cold_turn_ms": 14.884082,- "fleet_elapsed_ms": 4672.801607,+ "before_boot_rss_kib": 14316,+ "boot_ms": 260.802439,+ "cold_turn_ms": 49.858090000000004,+ "fleet_elapsed_ms": 16917.273937,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 2.941359375,- "registered_rss_kib": 54784,- "runtime_rss_kib": 34252,+ "marginal_after_turns_mib": 3.58465625,+ "registered_rss_kib": 55664,+ "runtime_rss_kib": 35104,"tool_scope": ["shell"],- "turn_p50_ms": 4113.175878,- "turn_p95_ms": 4447.625557,- "turn_p99_ms": 4513.371248,+ "turn_p50_ms": 13937.793855,+ "turn_p95_ms": 16386.101451,+ "turn_p99_ms": 16622.537773,"worker_threads": 2,- "cgroup_memory_peak": "1648812032",+ "cgroup_memory_peak": "1994653696","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 802"},{- "after_turns_rss_kib": 1542084,+ "after_turns_rss_kib": 1746616,"agents": 500,- "before_boot_rss_kib": 14336,- "boot_ms": 257.69439500000004,- "cold_turn_ms": 16.925666,- "fleet_elapsed_ms": 5055.745514,+ "before_boot_rss_kib": 14848,+ "boot_ms": 260.099823,+ "cold_turn_ms": 54.545508,+ "fleet_elapsed_ms": 21441.206899,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 2.94503125,- "registered_rss_kib": 54832,- "runtime_rss_kib": 34228,+ "marginal_after_turns_mib": 3.3411796875,+ "registered_rss_kib": 56552,+ "runtime_rss_kib": 35932,"tool_scope": ["shell"],- "turn_p50_ms": 4430.5079940000005,- "turn_p95_ms": 4828.56837,- "turn_p99_ms": 4880.706669,+ "turn_p50_ms": 17510.694305,+ "turn_p95_ms": 20275.004016,+ "turn_p99_ms": 20673.577479,"worker_threads": 2,- "cgroup_memory_peak": "1650745344",+ "cgroup_memory_peak": "1845829632","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000",- "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"+ "cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 1459"}],"no_swap_500_agents": {- "after_turns_rss_kib": 1537772,+ "after_turns_rss_kib": 1848268,"agents": 500,- "before_boot_rss_kib": 14476,- "boot_ms": 259.344405,- "cold_turn_ms": 17.940296,- "fleet_elapsed_ms": 5070.406826,+ "before_boot_rss_kib": 14452,+ "boot_ms": 261.838417,+ "cold_turn_ms": 77.930197,+ "fleet_elapsed_ms": 19090.431395,"inference": "loopback-http-mock",- "marginal_after_turns_mib": 2.9364765625,- "registered_rss_kib": 54900,- "runtime_rss_kib": 34296,+ "marginal_after_turns_mib": 3.541109375,+ "registered_rss_kib": 55800,+ "runtime_rss_kib": 35220,"tool_scope": ["shell"],- "turn_p50_ms": 4353.5878170000005,- "turn_p95_ms": 4753.196036,- "turn_p99_ms": 4844.317583000001,+ "turn_p50_ms": 15202.780968000001,+ "turn_p95_ms": 17822.328674,+ "turn_p99_ms": 18165.555849,"worker_threads": 2,- "cgroup_memory_peak": "1647300608",+ "cgroup_memory_peak": "1976066048","cgroup_memory_max": "2147483648","cgroup_cpu_max": "200000 100000","cgroup_memory_events": "low 0\nhigh 0\nmax 0\noom 0\noom_kill 0\noom_group_kill 0\nsock_throttled 0"diff --git a/docs/gitbooks/en/developing/embed/api-index.json b/docs/gitbooks/en/developing/embed/api-index.jsonindex 76919ff831..2fa0d37e1a 100644--- a/docs/gitbooks/en/developing/embed/api-index.json+++ b/docs/gitbooks/en/developing/embed/api-index.json@@ -76,6 +76,7 @@"ModelDefaults","OpenError","PendingApproval",+ "PermissionFuture","PermissionLevel","PickListenPortError","ProfileError",@@ -126,6 +127,7 @@"TrustedAccess","TrustedAutomationSource","Turn",+ "TurnCancellation","TurnContext","TurnOutcome","TurnRequest",@@ -136,6 +138,8 @@"absolute","agent_progress","artifacts",+ "budget",+ "cancellation","channels","chat_surface","complete",@@ -143,20 +147,25 @@"cron","embeddings","events",+ "fanout","identity","install_backend_transport","installed_backend_transport","memory","modules",+ "observe","process","profiles","providers",+ "repository",+ "routing","run_from_args","schema_for_rpc_method","seams","session_store","skill_registry",- "stream"+ "stream",+ "structured"],"builder_setters": [{@@ -435,7 +444,7 @@"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,diff --git a/docs/gitbooks/en/developing/embed/api-index.md b/docs/gitbooks/en/developing/embed/api-index.mdindex 3e386b0c6d..9df96592b9 100644--- a/docs/gitbooks/en/developing/embed/api-index.md+++ b/docs/gitbooks/en/developing/embed/api-index.md@@ -79,6 +79,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -129,6 +130,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -139,6 +141,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -146,20 +150,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -187,7 +196,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,diff --git a/docs/gitbooks/en/developing/embed/capability-matrix.md b/docs/gitbooks/en/developing/embed/capability-matrix.mdindex aba183fbf7..c621982188 100644--- a/docs/gitbooks/en/developing/embed/capability-matrix.md+++ b/docs/gitbooks/en/developing/embed/capability-matrix.md@@ -25,7 +25,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |diff --git a/docs/gitbooks/en/developing/embed/cookbook.md b/docs/gitbooks/en/developing/embed/cookbook.mdindex 6b7caefc55..3462bef8af 100644--- a/docs/gitbooks/en/developing/embed/cookbook.md+++ b/docs/gitbooks/en/developing/embed/cookbook.md@@ -76,6 +76,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.diff --git a/docs/gitbooks/en/developing/performance.md b/docs/gitbooks/en/developing/performance.mdindex 37f5a3d825..0d4f8af81f 100644--- a/docs/gitbooks/en/developing/performance.md+++ b/docs/gitbooks/en/developing/performance.md@@ -9,7 +9,7 @@ icon: gaugeOpenHuman's Rust core runs in-process as a library, not as one OS process per agent. Most of the density numbers on this page come from that one decision. A fixed bootstrap cost (allocator warm-up, code paging, registries, detectors) is paid once per process and shared by every agent inside it.-Everything below was measured on Apple Silicon macOS with a `--release` build and a deterministic mock inference provider (the `rss-bench` feature), not real network calls. Treat the absolute numbers as numbers for that machine. The ratios (density, marginal cost, binary delta) are the parts worth generalizing. The scripts to reproduce them are listed at the end.+The original measurements below were made on Apple Silicon macOS with a `--release` build and a deterministic mock inference provider (the `rss-bench` feature), not real network calls. Treat the absolute numbers as numbers for that machine. The ratios (density, marginal cost, binary delta) are the parts worth generalizing. The scripts to reproduce them are listed at the end.## Fleet: how many agents fit in one process@@ -97,6 +97,68 @@ scripts/kernel-floor.sh flows## Measurement conditions-These numbers were gathered on macOS. It has no local cgroup memory limit and no `/proc/<pid>/smaps_rollup`, so there is no true PSS (proportional shared memory) reading. RSS overcounts shared pages, and the error grows with agent count. The fleet and instances numbers project from measured marginal cost. They are not a live test of surviving an OOM kill at N agents on a 2 GB / 2 vCPU Linux box. Every scenario also replaces network inference with a mock provider at fixed latency, so turn timings measure orchestration overhead, not real model latency. Validation under Linux cgroups has not been done yet.+These numbers were gathered on macOS. It has no local cgroup memory limit and no `/proc/<pid>/smaps_rollup`, so there is no true PSS (proportional shared memory) reading. RSS overcounts shared pages, and the error grows with agent count. The fleet and instances numbers project from measured marginal cost. They are not a live test of surviving an OOM kill at N agents on a 2 GB / 2 vCPU Linux box. Every scenario also replaces network inference with a mock provider at fixed latency, so turn timings measure orchestration overhead, not real model latency. The Linux cgroup measurements in the following section use a different host and harness.For token cost instead of process footprint, see [Smart token compression](../features/token-compression.md). It is the other half of "cheap": it controls how much of what the harness assembles reaches the model.++## Linux runtime-owned agents (Medulla integration)++Measured on 2026-10-10 at OpenHuman commit `b783b39e78`, using the release+`openhuman-embed` example `linux_fleet` with default features disabled. This+exercises one `Runtime` and N `AgentSpec`s, with two Tokio workers, ephemeral+session storage, and a loopback HTTP chat-completions mock. Each agent+advertises the builtin `shell` tool; the mock returns text without executing it.+Conversation memory, local model runtimes, and session dual writes are off.+The host is x86_64 Ubuntu, Linux 7.0.0-31-generic, on an Intel Core i7-14700F.+Other builds were running on the host, so these are shared-host measurements.++Each run starts in a fresh cgroup with `memory.max = 2147483648` and+`cpu.max = 200000 100000` (2 GiB and a two-CPU quota). Three fresh processes+were measured at each size; the table gives medians. RSS is sampled after every+agent completes one concurrent turn, with all agent handles retained. Marginal+RSS is `(RSS after turns - RSS after Runtime::build) / N`, without allocator+trimming. The cgroup peak includes the HTTP mock and the Python measurement+wrapper. Mock request recording is disabled, so retained HTTP request history+is excluded. RSS and cgroup accounting differ because shared file pages may be+charged outside the new cgroup.++| Concurrent agents | Process RSS after turns | Marginal RSS/agent | Cgroup peak | Fleet wall time | Turn p95 |+| --- | --- | --- | --- | --- | --- |+| 50 | 270.21 MiB | 4.702 MiB | 237.32 MiB | 1,527 ms | 1,462 ms |+| 100 | 437.38 MiB | 4.028 MiB | 417.89 MiB | 3,537 ms | 3,370 ms |+| 500 | 1,712.97 MiB | 3.355 MiB | 1,760.32 MiB | 20,784 ms | 19,450 ms |++The 500-agent median is within twice the earlier macOS/mock 1.77 MiB+figure (3.54 MiB); the 50- and 100-agent medians miss that target. The+500-agent runs ranged from 3.341 to 3.585 MiB per agent. These are different+hosts and harness entry points, so the table is a capacity measurement rather+than a controlled comparison of the platforms. This run also incorporates the+upstream embed lifecycle-event and dynamic-agent APIs; results are higher than+the earlier prerequisite-branch measurements recorded before that base update.++Runtime boot took 259–263 ms. The first turn in each fresh process took+49.9–87.4 ms, before launching the concurrent fleet. Both are within twice the+earlier 476 ms bootstrap and 102 ms first-turn figures. “First turn” includes+session/model/tool initialization, but excludes compiling and loading the+executable; the OS page cache was warm.++A separate 500-agent run with **swap disabled** (`MemorySwapMax=0`) completed+in 19,090 ms, with 3.541 MiB marginal RSS per agent and a+1,884.52 MiB cgroup peak. Its marginal RSS narrowly exceeds the 3.54 MiB+target. Every run recorded zero `max`, `oom`, and `oom_kill` memory events.+This does not establish capacity for real providers, tool subprocesses, MCP+servers, or 1,000 simultaneously active turns. Measure those workloads before+sizing a production fleet.++To reproduce from the OpenHuman repository root:++```sh+cargo build -p openhuman-embed --locked --release --no-default-features --example linux_fleet+systemd-run --user --scope -p MemoryMax=2G -p MemorySwapMax=0 -p CPUQuota=200% --quiet \+ python3 crates/openhuman-embed/examples/linux_fleet_cgroup.py 500+```++Use `50` or `100` for the other sizes and repeat each command in a fresh scope.+The JSON output records process RSS, bootstrap/turn timings, cgroup limits,+peak memory, and OOM counters. The raw runs are checked in as+[`docs/benchmarks/medulla-embed-linux.json`](../../../benchmarks/medulla-embed-linux.json).diff --git a/gitbooks/developing/embed/api-index.json b/gitbooks/developing/embed/api-index.jsonindex 76919ff831..2fa0d37e1a 100644--- a/gitbooks/developing/embed/api-index.json+++ b/gitbooks/developing/embed/api-index.json@@ -76,6 +76,7 @@"ModelDefaults","OpenError","PendingApproval",+ "PermissionFuture","PermissionLevel","PickListenPortError","ProfileError",@@ -126,6 +127,7 @@"TrustedAccess","TrustedAutomationSource","Turn",+ "TurnCancellation","TurnContext","TurnOutcome","TurnRequest",@@ -136,6 +138,8 @@"absolute","agent_progress","artifacts",+ "budget",+ "cancellation","channels","chat_surface","complete",@@ -143,20 +147,25 @@"cron","embeddings","events",+ "fanout","identity","install_backend_transport","installed_backend_transport","memory","modules",+ "observe","process","profiles","providers",+ "repository",+ "routing","run_from_args","schema_for_rpc_method","seams","session_store","skill_registry",- "stream"+ "stream",+ "structured"],"builder_setters": [{@@ -435,7 +444,7 @@"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,diff --git a/gitbooks/developing/embed/api-index.md b/gitbooks/developing/embed/api-index.mdindex 3e386b0c6d..9df96592b9 100644--- a/gitbooks/developing/embed/api-index.md+++ b/gitbooks/developing/embed/api-index.md@@ -79,6 +79,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -129,6 +130,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -139,6 +141,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -146,20 +150,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -187,7 +196,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,diff --git a/gitbooks/developing/embed/capability-matrix.md b/gitbooks/developing/embed/capability-matrix.mdindex aba183fbf7..c621982188 100644--- a/gitbooks/developing/embed/capability-matrix.md+++ b/gitbooks/developing/embed/capability-matrix.md@@ -25,7 +25,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |diff --git a/gitbooks/developing/embed/cookbook.md b/gitbooks/developing/embed/cookbook.mdindex 6b7caefc55..3462bef8af 100644--- a/gitbooks/developing/embed/cookbook.md+++ b/gitbooks/developing/embed/cookbook.md@@ -76,6 +76,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.diff --git a/gitbooks/developing/performance.md b/gitbooks/developing/performance.mdindex 557e2bf995..1303d625f9 100644--- a/gitbooks/developing/performance.md+++ b/gitbooks/developing/performance.md@@ -9,7 +9,7 @@ icon: gaugeOpenHuman's Rust core runs in-process as a library, not as one OS process per agent. Most of the density numbers on this page come from that one decision. A fixed bootstrap cost (allocator warm-up, code paging, registries, detectors) is paid once per process and shared by every agent inside it.-Everything below was measured on Apple Silicon macOS with a `--release` build and a deterministic mock inference provider (the `rss-bench` feature), not real network calls. Treat the absolute numbers as numbers for that machine. The ratios (density, marginal cost, binary delta) are the parts worth generalizing. The scripts to reproduce them are listed at the end.+The original measurements below were made on Apple Silicon macOS with a `--release` build and a deterministic mock inference provider (the `rss-bench` feature), not real network calls. Treat the absolute numbers as numbers for that machine. The ratios (density, marginal cost, binary delta) are the parts worth generalizing. The scripts to reproduce them are listed at the end.## Fleet: how many agents fit in one process@@ -17,9 +17,9 @@ Everything below was measured on Apple Silicon macOS with a `--release` build an| N agents | Marginal KiB/agent | Settled MiB | Idle CPU ms/10s | Threads | FDs || ---: | ---: | ---: | ---: | ---: | ---: |-| 50 | 221.65 MiB | 3.757 MiB | 192.94 MiB | 420 ms | 360 ms |-| 100 | 372.51 MiB | 3.389 MiB | 352.93 MiB | 954 ms | 840 ms |-| 500 | 1,504.13 MiB | 2.941 MiB | 1,572.43 MiB | 5,056 ms | 4,829 ms |+| 50 | 1,985 | 223 | 3 | 71 | 420 |+| 100 | 1,866 | 356 | 3 | 123 | 820 |+| 500 | 1,770 | 1,393 | 3 | 211 | 3,220 |500 agents fit in one process at roughly 1.77 MiB marginal cost each. Idle CPU stays flat as N grows, which matters because an agent that is not mid-turn should not spend cycles. Thread count grows by about 0.35 per agent. Watch that line before pushing past 500 in production.@@ -97,13 +97,13 @@ scripts/kernel-floor.sh flows## Measurement conditions-These numbers were gathered on macOS. It has no local cgroup memory limit and no `/proc/<pid>/smaps_rollup`, so there is no true PSS (proportional shared memory) reading. RSS overcounts shared pages, and the error grows with agent count. The fleet and instances numbers project from measured marginal cost. They are not a live test of surviving an OOM kill at N agents on a 2 GB / 2 vCPU Linux box. Every scenario also replaces network inference with a mock provider at fixed latency, so turn timings measure orchestration overhead, not real model latency. Validation under Linux cgroups has not been done yet.+These numbers were gathered on macOS. It has no local cgroup memory limit and no `/proc/<pid>/smaps_rollup`, so there is no true PSS (proportional shared memory) reading. RSS overcounts shared pages, and the error grows with agent count. The fleet and instances numbers project from measured marginal cost. They are not a live test of surviving an OOM kill at N agents on a 2 GB / 2 vCPU Linux box. Every scenario also replaces network inference with a mock provider at fixed latency, so turn timings measure orchestration overhead, not real model latency. The Linux cgroup measurements in the following section use a different host and harness.For token cost instead of process footprint, see [Smart token compression](../features/token-compression.md). It is the other half of "cheap": it controls how much of what the harness assembles reaches the model.## Linux runtime-owned agents (Medulla integration)-Measured on 2026-10-10 at OpenHuman commit `e2224a22a3`, using the release+Measured on 2026-10-10 at OpenHuman commit `b783b39e78`, using the release`openhuman-embed` example `linux_fleet` with default features disabled. Thisexercises one `Runtime` and N `AgentSpec`s, with two Tokio workers, ephemeralsession storage, and a loopback HTTP chat-completions mock. Each agent@@ -124,25 +124,28 @@ charged outside the new cgroup.| Concurrent agents | Process RSS after turns | Marginal RSS/agent | Cgroup peak | Fleet wall time | Turn p95 || --- | --- | --- | --- | --- | --- |-| 50 | 221.65 MiB | 3.757 MiB | 192.94 MiB | 420 ms | 360 ms |-| 100 | 372.51 MiB | 3.389 MiB | 352.93 MiB | 954 ms | 840 ms |-| 500 | 1,504.13 MiB | 2.941 MiB | 1,572.43 MiB | 5,056 ms | 4,829 ms |--The 100- and 500-agent results are within twice the earlier macOS/mock-1.77 MiB figure (3.54 MiB). The 50-agent result misses that target slightly:-its three runs used 3.665–3.783 MiB per agent. These are different hosts and-harness entry points, so the table is a capacity measurement rather than a-controlled comparison of the platforms.--Runtime boot took 256–262 ms. The first turn in each fresh process took-14.9–23.8 ms, before launching the concurrent fleet. Both are within twice the+| 50 | 270.21 MiB | 4.702 MiB | 237.32 MiB | 1,527 ms | 1,462 ms |+| 100 | 437.38 MiB | 4.028 MiB | 417.89 MiB | 3,537 ms | 3,370 ms |+| 500 | 1,712.97 MiB | 3.355 MiB | 1,760.32 MiB | 20,784 ms | 19,450 ms |++The 500-agent median is within twice the earlier macOS/mock 1.77 MiB+figure (3.54 MiB); the 50- and 100-agent medians miss that target. The+500-agent runs ranged from 3.341 to 3.585 MiB per agent. These are different+hosts and harness entry points, so the table is a capacity measurement rather+than a controlled comparison of the platforms. This run also incorporates the+upstream embed lifecycle-event and dynamic-agent APIs; results are higher than+the earlier prerequisite-branch measurements recorded before that base update.++Runtime boot took 259–263 ms. The first turn in each fresh process took+49.9–87.4 ms, before launching the concurrent fleet. Both are within twice theearlier 476 ms bootstrap and 102 ms first-turn figures. “First turn” includessession/model/tool initialization, but excludes compiling and loading theexecutable; the OS page cache was warm.A separate 500-agent run with **swap disabled** (`MemorySwapMax=0`) completed-in 5,070 ms, with 2.936 MiB marginal RSS per agent and a 1,570.99 MiB cgroup-peak. Every run recorded zero `max`, `oom`, and `oom_kill` memory events.+in 19,090 ms, with 3.541 MiB marginal RSS per agent and a+1,884.52 MiB cgroup peak. Its marginal RSS narrowly exceeds the 3.54 MiB+target. Every run recorded zero `max`, `oom`, and `oom_kill` memory events.This does not establish capacity for real providers, tool subprocesses, MCPservers, or 1,000 simultaneously active turns. Measure those workloads beforesizing a production fleet.diff --git a/llms-full.txt b/llms-full.txtindex 1658cc4d62..760b0e639c 100644--- a/llms-full.txt+++ b/llms-full.txt@@ -2441,6 +2441,85 @@ The [cookbook](https://github.com/tinyhumansai/openhuman/blob/main/gitbooks/deveHosts supply transport, credentials and application resources. Runtime settings establish shared defaults; agents narrow provider, access, prompt and tool behavior. Use ProfileRuntime when users require separate credentials and workspaces.+## Cancelling one turn++Acquire `Turn::cancellation_handle()` before sending a turn. The handle is+cloneable and `cancel().await` waits for the turn to stop and for tracked+commands to be reaped. The agent remains available for later turns:++++Cancellation is scoped to this turn, including while waiting for inference.+Turns with a cancellation handle use owned interpreter subprocesses rather+than the Node/Python pool, which has no acknowledged per-job abort API. This+trades warm-worker reuse for awaited cleanup; ordinary turns retain pooling.+The `meter` callback fires once on cancellation or a dropped send future,+with `None` when dispatch has not supplied usage yet.++Before send, cancellation prevents dispatch; after completion it is a no-op.+On Unix, the built-in shell, Node, Python and npm commands kill their process+group, including descendants. Other platforms stop the direct command. Host+tools that spawn independent tasks or processes must provide their own cleanup;+MCP server lifecycles remain owned by the agent. Keep polling `send()` while+awaiting cancellation, for example in a spawned task.++## Scoped worker hooks++Hooks can be supplied at three levels: `RuntimeBuilder::tool_hook` /+`post_turn_hook` for all agents, `AgentSpec::tool_hook` / `post_turn_hook`+for one agent, and `Turn::tool_hook` / `post_turn_hook` for one dispatch.+Tool callbacks run in that order. Named agent updates replace only that agent’s callback; per-turn callbacks are additional.+`ToolHookContext` carries the agent/session identity when known, and `cwd`+follows the execution workspace descriptor (including `Turn::cwd`), falling+back to the embedding context's configured action root.+The agent and turn hooks are never installed in the global registry, so+concurrent workers and later turns do not pick up one another's callbacks.+Post-turn callbacks run asynchronously with an owned session snapshot.+Independently spawned tasks that build sessions must explicitly inherit+`openhuman_core::agent::hooks::HookScope` to carry scoped hooks.++Gateway attribution headers can be attached to `Route::header(name, value)`+and used with `Turn::route`, or with `Provider::routed(route)` on an agent.+They follow only that route's endpoint and are never saved to configuration,+sent to background providers, or included as values in `Route`'s `Debug`.++### Inline permission and usage policy++`AgentSpec::can_use_tool` and `Turn::can_use_tool` await a host callback before+executing each tool. The callback can wait for an approval UI and return+`ToolHookDecision::Proceed`, `Deny`, or `ProceedWith`. It owns that wait;+returning `Ask` denies execution. These callbacks add to existing tool policies,+and a turn callback cannot override an agent denial.++`AgentSpec::stop_hook` and `Turn::stop_hook` receive cumulative usage after each+completed model call. Return `StopDecision::Continue` to observe usage, or+`Stop` to prevent subsequent calls. Completed tool rounds may still execute;+this is an after-call budget boundary, so hosts must refuse an already exhausted+budget before sending a turn. Provider-reported charges remain authoritative,+including known zero; missing charges remain unknown unless pricing is known.+A policy stop uses a deterministic partial summary rather than spending on+final-answer repair calls.++### Per-turn tools and subprocess environment++`Turn::tools` replaces this turn's host tool belt, including attached sources.+An empty belt revokes host tools; the next turn returns to the agent's belt.+Builtin tools still follow the agent definition. This supplies dynamic tools for+in-process hosts; statically declared MCP servers retain their creation-time+configuration.++`Turn::tool_env` supplies the base environment of owned builtin subprocesses.+Variables absent from it are not inherited from the daemon. The builtin command+builders retain their own security/runtime additions, including Git restrictions,+managed interpreter paths and scratch directories. Scoped turns bypass Node and+Python pools, which cannot acknowledge per-job cancellation or swap a job's+process environment. A host tool that spawns a separate Tokio task must explicitly+carry the command environment and cleanup scopes into that task.++Standalone exact source pins and generated Cargo patches: [consumer setup](CONSUMERS.md).+Ordered fallbacks and required exploration: [routing](ROUTING.md).+Host telemetry and the existing exporter: [observers](OBSERVERS.md).+<!-- Source: gitbooks/developing/embedding.md --># Embedding OpenHuman@@ -2529,6 +2608,14 @@ Lean runtime without background services.Run: `cargo run -p openhuman-embed --example lean_headless`+## Linux agent fleet memory and latency++Measure retained runtime-owned agents using loopback inference and two worker threads.++[Source](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs) · offline on Linux; use a fresh constrained cgroup for release measurements.++Run: `cargo run -p openhuman-embed --example linux_fleet`+## Connect an actual MCP protocol stub over loopbackConnect an actual MCP protocol stub over loopback.@@ -2661,7 +2748,7 @@ This matrix comes from the default-feature compiled capability-report example. R| `skills` | Yes || `storage-file` | No || `storage-mongodb` | No |-| `storage-sqlite` | No |+| `storage-sqlite` | Yes || `tinymemes` | Yes || `voice` | No || `web3` | No |@@ -2799,6 +2886,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`ModelDefaults`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`OpenError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PendingApproval`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`PermissionFuture`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PermissionLevel`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`PickListenPortError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`ProfileError`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2849,6 +2937,7 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`TrustedAccess`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TrustedAutomationSource`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`Turn`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`TurnCancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnContext`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnOutcome`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`TurnRequest`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2859,6 +2948,8 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`absolute`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`agent_progress`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`artifacts`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`budget`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`cancellation`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`channels`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`chat_surface`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`complete`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)@@ -2866,20 +2957,25 @@ Generate the complete local Rust API reference with `cargo doc -p openhuman-embe- [`cron`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`embeddings`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`events`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`fanout`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`identity`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`install_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`installed_backend_transport`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`memory`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`modules`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`observe`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`process`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`profiles`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`providers`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`repository`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`routing`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`run_from_args`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`schema_for_rpc_method`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`seams`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`session_store`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`skill_registry`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)- [`stream`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)+- [`structured`](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/src/lib.rs)The compiled capability report describes this build:@@ -2907,7 +3003,7 @@ The compiled capability report describes this build:"skills": true,"storage-file": false,"storage-mongodb": false,- "storage-sqlite": false,+ "storage-sqlite": true,"tinymemes": true,"voice": false,"web3": false,@@ -3003,6 +3099,7 @@ The compiled capability report describes this build:- [A per-agent post-turn hook observes completed turns](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/hooks.rs): A per-agent post-turn hook observes completed turns. (offline; optional live via OPENHUMAN_EXAMPLE_LIVE=1 and BASE_URL/API_KEY/MODEL.)- [Host tools and HostOnly keep the advertised tool catalog exact](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/host_tools.rs): Host tools and HostOnly keep the advertised tool catalog exact. (offline with loopback stubs; no live path.)- [Lean runtime without background services](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/lean_headless.rs): Lean runtime without background services. (offline with loopback stubs; optional live via OPENHUMAN_EXAMPLE_LIVE.)+- [Linux agent fleet memory and latency](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/linux_fleet.rs): Measure retained runtime-owned agents using loopback inference and two worker threads. (offline on Linux; use a fresh constrained cgroup for release measurements.)- [Connect an actual MCP protocol stub over loopback](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/mcp.rs): Connect an actual MCP protocol stub over loopback. (offline with loopback stubs; no live path.; feature: mcp)- [Tenant scoped memory facade with an in-memory engine](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/memory.rs): Tenant scoped memory facade with an in-memory engine. (offline with loopback stubs; no live path.)- [SaaS profiles isolate conversation history](https://github.com/tinyhumansai/openhuman/blob/main/crates/openhuman-embed/examples/profiles.rs): SaaS profiles isolate conversation history. (offline with loopback stubs; no live path.)