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
Merge remote-tracking branch 'upstream/main' into embed-dynamic-7306
Steven Enamakelee5cce6cfdea
diff --cc Cargo.lockindex d1956cd9d7,c411456f34..336d609b5d--- a/Cargo.lock+++ b/Cargo.lock@@@ -4668,10 -4670,9 +4670,10 @@@ dependencies ="chrono","dirs 6.0.0","env_logger",+ "futures-core","log","openhuman",- "reqwest",+ "reqwest 0.12.28","sentry","serde","serde_json",diff --cc scripts/ci/check-agent-runtime-boundary.mjsindex 29fb5d9ffb,b9d71f171c..dc8eb952de--- a/scripts/ci/check-agent-runtime-boundary.mjs+++ b/scripts/ci/check-agent-runtime-boundary.mjs@@@ -308,25 -463,63 +493,65 @@@ function add(rule, path, line, text)}// Scan every OpenHuman crate: facades are not restricted to agent/.- for (const path of await filesUnder(openhumanCratesRoot, (path) => path.endsWith(".rs") && /\/src\//.test(path))) {+ for (const path of await filesUnder(+ openhumanCratesRoot,+ (path) => path.endsWith(".rs") && /\/src\//.test(path),+ )) {const rel = relative(repoRoot, path);- for (const { line, text, raw } of codeLines(await readFile(path, "utf8"))) {+ const lines = codeLines(await readFile(path, "utf8"));+ for (const [index, { line, text, raw }] of lines.entries()) {if (!text.trim()) continue;const compact = compactRustPath(text);- if (/\btinyagents_harness::tool_calling\b/.test(compact)) add("openhuman-tool-calling-facade", path, line, raw);- if (/\bcrate::agent::(?:dispatcher|pformat|harness::(?:parse|instructions|tool_filter))\b/.test(compact)) add("openhuman-agent-facade", path, line, raw);- for (const symbol of bridgeSymbols) if (new RegExp(`\\b${escapeRegex(symbol)}\\b`).test(text)) add("openhuman-runtime-bridge", path, line, raw);+ if (/\btinyagents_harness::tool_calling\b/.test(compact))+ add("openhuman-tool-calling-facade", path, line, raw);+ if (+ /\bcrate::agent::(?:dispatcher|pformat|harness::(?:parse|instructions|tool_filter))\b/.test(+ compact,+ )+ )+ add("openhuman-agent-facade", path, line, raw);+ for (const symbol of bridgeSymbols)+ if (new RegExp(`\\b${escapeRegex(symbol)}\\b`).test(text))+ add("openhuman-runtime-bridge", path, line, raw);if (!isTestPath(rel)) {- const isListedTaskLocalFile = /\/(?:fork_context|sandbox_context|spawn_depth_context|task_recency_context|turn_attachments_context|turn_dispatch_guard|turn_subagent_usage|progress_sink|resolved_route|run_cancellation_context|thread_context|turn_origin|turn_workspace)\.rs$/.test(path);- const namesTaskLocalAccessor = taskLocalAccessors.some((name) => new RegExp(`\\b${escapeRegex(name)}\\s*\\(`).test(text) || (/\b(?:pub(?:\([^)]*\))?\s+)?use\b/.test(text) && new RegExp(`\\b${escapeRegex(name)}\\b`).test(text)));- const namesTaskLocalStatic = taskLocalStatics.some((name) => new RegExp(`\\b${escapeRegex(name)}\\b`).test(text));- const usesGenericAccessor = /\b(?:turn_origin|turn_workspace|turn_dispatch_guard)::(?:current|capture|propagate|spawn|spawn_unlabelled|check|record_subagent_elapsed|with_workspace)\b/.test(compact) || (/\/turn_workspace\.rs$/.test(path) && /\bwith_workspace\s*\(/.test(text));- const declaresDeletedModule = deletedTaskLocalModules.some((name) => new RegExp(`\\bmod\\s+${escapeRegex(name)}\\s*;`).test(text));- if ((isListedTaskLocalFile && /\btokio\s*::\s*task_local!/.test(text)) || namesTaskLocalAccessor || namesTaskLocalStatic || usesGenericAccessor || declaresDeletedModule) add("openhuman-task-local", path, line, raw);+ const isListedTaskLocalFile =+ /\/(?:fork_context|sandbox_context|spawn_depth_context|task_recency_context|turn_attachments_context|turn_dispatch_guard|turn_subagent_usage|progress_sink|resolved_route|run_cancellation_context|thread_context|turn_origin|turn_workspace)\.rs$/.test(+ path,+ );+ const namesTaskLocalAccessor = taskLocalAccessors.some(+ (name) =>+ new RegExp(`\\b${escapeRegex(name)}\\s*\\(`).test(text) ||+ (/\b(?:pub(?:\([^)]*\))?\s+)?use\b/.test(text) &&+ new RegExp(`\\b${escapeRegex(name)}\\b`).test(text)),+ );+ const namesTaskLocalStatic = taskLocalStatics.some((name) =>+ new RegExp(`\\b${escapeRegex(name)}\\b`).test(text),+ );+ const usesGenericAccessor =+ /\b(?:turn_origin|turn_workspace|turn_dispatch_guard)::(?:current|capture|propagate|spawn|spawn_unlabelled|check|record_subagent_elapsed|with_workspace)\b/.test(+ compact,+ ) ||+ (/\/turn_workspace\.rs$/.test(path) &&+ /\bwith_workspace\s*\(/.test(text));+ const declaresDeletedModule = deletedTaskLocalModules.some((name) =>+ new RegExp(`\\bmod\\s+${escapeRegex(name)}\\s*;`).test(text),+ );+ if (+ (isListedTaskLocalFile && /\btokio\s*::\s*task_local!/.test(text)) ||+ namesTaskLocalAccessor ||+ namesTaskLocalStatic ||+ usesGenericAccessor ||+ declaresDeletedModule+ )+ add("openhuman-task-local", path, line, raw);}- if (/\bpub(?:\s*\([^)]*\))?\s+use\s+(?:tinyagents(?:_[a-z_]+)?|tinytools(?:_[a-z_]+)?|tinyinference(?:_[a-z_]+)?)\s*::/i.test(text)- && !isEmbedContractExport(rel, lines, index)) add("openhuman-upstream-reexport", path, line, raw);+ if (+ /\bpub(?:\s*\([^)]*\))?\s+use\s+(?:tinyagents(?:_[a-z_]+)?|tinytools(?:_[a-z_]+)?|tinyinference(?:_[a-z_]+)?)\s*::/i.test(+ text,+ )++ && !isEmbedContractExport(rel, lines, index)+ )+ add("openhuman-upstream-reexport", path, line, raw);}}diff --cc vendor/tinyagentsindex a5ec4e49c4,5db9caf3b2..87ec7f3845--- a/vendor/tinyagents+++ b/vendor/tinyagents@@@ -1,1 -1,1 +1,1 @@@- Subproject commit a5ec4e49c428d3a9a4bc4c14952bd629427ba2be-Subproject commit 5db9caf3b2224d8c49cdb29fe57196f9c3d34ca2++Subproject commit 87ec7f3845f98040500d37a0ecaaf84785e5ea3e