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
refactor(cli): route binary deps through openhuman-rpc
Steven Enamakelf7c90a815287
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.tomlindex 24c80d722b..dfdc6b5e8b 100644--- a/crates/openhuman-cli/Cargo.toml+++ b/crates/openhuman-cli/Cargo.toml@@ -1,9 +1,13 @@-# The `openhuman-core` binary, the developer/benchmark bins, and every root-# `tests/*.rs` / `examples/*.rs` target. They used to live in the core package;-# they moved here because a core that carries no backend client cannot host the-# binary that must talk to the hosted backend — `main.rs` installs the-# `openhuman-tinyhumans` transport before dispatching, and the mock-backend-# integration suites boot the same way through `tests/support/tinyhumans_boot.rs`.+# The `openhuman-core` binary, the ops bins (`openhuman-fleet`, the MCP test+# stub), and every root `tests/*.rs` / `examples/*.rs` target.+#+# The binary is a host like the desktop app and the TUI: its normal+# dependencies name `openhuman-rpc` and no other openhuman crate (chain: core+# -> embed -> tinyhumans -> rpc -> app/cli/tui; enforced by+# `scripts/ci/check-crate-chain.mjs`). `main.rs` is `openhuman_rpc::host::cli`.+# The integration tests still reach into the core directly, so the core, embed+# and tinyhumans are DEV-dependencies here: they build into the test and+# example targets and never into the shipped binary.## Auto-discovery is off because Cargo only scans beside this manifest; the# repository layout gate (`scripts/ci/check-openhuman-rust-layout.mjs`)@@ -45,50 +49,6 @@ path = "src/bin/fleet.rs"# (no `http-server`) this target is skipped rather than failing to link.required-features = ["http-server", "bin-tools"]-# Embedded-RSS benchmark harness (#5046). Gated behind the default-OFF-# `rss-bench` feature so no benchmark code enters the shipped build. Build with-# `cargo build --release --features rss-bench --bin rss-bench`.-#-# It survives the engine removal because it never measured the engine: it builds-# an `Agent` roster over its own in-file `NoopMemory` and samples RSS, and its-# own doc comment explains that it hand-rolls that store rather than asking the-# factory, because `create_memory(backend = "none")` never returned a no-op-# backend. What the feature used to name the engine crates for was two-# `library-profile` *scenarios* — see that target's comment below; the binary-# itself is still here.-# `tool-search-bench` — the `tool_search` ranker comparison (bm25 / overlap /-# jev) over the real orchestrator registry plus the recorded Composio-# catalogues. Always builds; the `jev` ranker is compiled in with the `jev`-# feature and runs only when a key is in the environment.-[[bin]]-name = "tool-search-bench"-path = "src/bin/tool_search_bench.rs"--# Manual, network-touching A/B of the text tool-call dialects against a local-# Ollama model: prompt tokens and call accuracy per `agent.tool_dispatcher`-# value. Never run by CI; see the file's docs for the invocation.-[[bin]]-name = "tool-dialect-bench"-path = "src/bin/tool_dialect_bench.rs"--[[bin]]-name = "rss-bench"-path = "src/bin/rss_bench.rs"-required-features = ["rss-bench"]--# Stateful library profiling workloads (real sub-agent delegation, flows graphs-# and skill runs under a hermetic mock provider). Local/dev only, and the-# subject of every script in `scripts/profile/`.-#-# Two of its scenarios are gone with the in-process engine: `memory-ingest`-# drained the memory queue and `cold-phases` checkpointed the engine bootstrap-# through `tinymemory_core::store::MemoryClient`. The other six never named an-# engine symbol, which is why this binary survives rather than going with them.-[[bin]]-name = "library-profile"-path = "src/bin/library_profile/main.rs"-required-features = ["rss-bench"]-# ── Integration tests that need a PRODUCT gate ──────────────────────────────## `[features] default` is the contributor set and no longer turns on `voice`,@@ -253,41 +213,39 @@ name = "embed_kernel"path = "../../examples/embed_kernel.rs"[dependencies]-# Direct core access: every test and bin names `openhuman_core::` paths.-# `default-features = false` so the gates below are the only ones on.-openhuman-core = { path = "../openhuman-core", package = "openhuman", default-features = false }-openhuman-tinyhumans = { path = "../openhuman-tinyhumans", default-features = false }+# The only openhuman crate the binary depends on. Every gate below forwards to+# it, and it forwards down the chain to the core.openhuman-rpc = { workspace = true, features = ["server"] }anyhow = "1.0"-async-trait = "0.1"axum = { version = "0.8", default-features = false, features = ["http1", "json", "tokio", "query", "ws", "macros"] }-chrono = { version = "0.4", features = ["serde"] }clap = { version = "4.5", features = ["derive"], optional = true }-dhat = { version = "0.3", optional = true }-dotenvy = "0.15"env_logger = "0.11"-futures = "0.3"libc = "0.2"log = "0.4"reqwest = { version = "0.12", default-features = false, features = ["json", "blocking", "rustls-tls", "stream", "http2", "multipart", "socks"] }-sentry = { version = "0.47.0", default-features = false, optional = true, features = ["backtrace", "contexts", "panic", "tracing", "debug-images", "httpdate"] }-serde = { version = "1", features = ["derive"] }serde_json = "1"-tempfile = "3"-tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }-tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }-tinytools-agent = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools-agent" }-# The Jev ranker `tool-search-bench` measures; gated with the crate's `jev`-# feature so the bin builds without a Jev client.-tinytools-jev = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools-jev", optional = true }-tinyjevclient = { git = "https://github.com/tinyhumansai/tinyjevclient", rev = "84b3983c7e1e14f7515658ceafabb6c4e7967c94", optional = true }tokio = { version = "1", features = ["full"] }-toml = "1.0"-tracing = "0.1"uuid = { version = "1", features = ["v4"] }[dev-dependencies]+# Root tests and examples reach into the core, embed and tinyhumans directly.+# Dev-only, so none of them is an edge of the shipped binary. Same spelling as+# the library crates' own manifests (`default-features = false`; the gates come+# from this crate's features through `openhuman-rpc`), so the dev graphs unify+# and `cargo test -p` reuses one core build.+openhuman-core = { path = "../openhuman-core", package = "openhuman", default-features = false }+openhuman-embed = { workspace = true }+openhuman-tinyhumans = { workspace = true }aes-gcm = "0.10"+async-trait = "0.1"+chrono = { version = "0.4", features = ["serde"] }+futures = "0.3"+serde = { version = "1", features = ["derive"] }+tempfile = "3"+tinyinference-llm = { path = "../../vendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm" }+tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }+toml = "1.0"+tracing = "0.1"# The TinyComputer contract, for the live computer-use e2e (`computer_bali_live_e2e`).tinycomputer-bus = { path = "../../vendor/tinycomputer/crates/tinycomputer-bus" }# sentry's TestTransport for the observability before_send smoke tests;@@ -323,37 +281,48 @@ urlencoding = "2.1"wiremock = "0.6"[features]-# Same contributor set as the core's `default`, forwarded. The product lanes-# pass `--features "$(scripts/ci/product-features.sh)"`; every product gate-# name resolves here so `cargo test --workspace --features ...` keeps working.-default = ["openhuman-core/default", "openhuman-tinyhumans/default", "jev"]-# The Jev-backed `tool_search` ranker; `openhuman-tinyhumans`'s own gate, plus-# the client `tool-search-bench` measures it with.-jev = ["openhuman-tinyhumans/jev", "dep:tinytools-jev", "dep:tinyjevclient"]-http-server = ["openhuman-core/http-server", "openhuman-tinyhumans/http-server"]-inference = ["openhuman-core/inference", "openhuman-tinyhumans/inference"]-documents = ["openhuman-core/documents", "openhuman-tinyhumans/documents"]-hosting = ["openhuman-core/hosting", "openhuman-tinyhumans/hosting"]-modules = ["openhuman-core/modules", "openhuman-tinyhumans/modules"]-voice = ["openhuman-core/voice", "openhuman-tinyhumans/voice"]-web3 = ["openhuman-core/web3", "openhuman-tinyhumans/web3"]-runtime-node = ["openhuman-core/runtime-node", "openhuman-tinyhumans/runtime-node"]-media = ["openhuman-core/media", "openhuman-tinyhumans/media"]-flows = ["openhuman-core/flows", "openhuman-tinyhumans/flows"]-skills = ["openhuman-core/skills", "openhuman-tinyhumans/skills"]-mcp = ["openhuman-core/mcp", "openhuman-tinyhumans/mcp"]-channels = ["openhuman-core/channels", "openhuman-tinyhumans/channels"]-whatsapp-web = ["openhuman-core/whatsapp-web", "openhuman-tinyhumans/whatsapp-web"]-e2e-test-support = ["openhuman-core/e2e-test-support"]-rss-bench = ["openhuman-core/rss-bench"]-file-logging = ["openhuman-core/file-logging", "openhuman-tinyhumans/file-logging"]-scheduler-gate = ["openhuman-core/scheduler-gate", "openhuman-tinyhumans/scheduler-gate"]-# Sentry init in `main.rs` plus the `observability_smoke` test target.-crash-reporting = ["dep:sentry", "openhuman-core/crash-reporting", "openhuman-tinyhumans/crash-reporting"]+# The contributor set: the core's `[features] default` gates (listed, because+# `openhuman-rpc`'s own default carries only its server and client) plus the+# Jev ranker. The product lanes pass `--features+# "$(scripts/ci/product-features.sh)"`; every product gate name resolves here.+default = [+ "media",+ "skills",+ "flows",+ "mcp",+ "channels",+ "http-server",+ "scheduler-gate",+ "file-logging",+ "modules",+ "jev",+]+# Every gate forwards to `openhuman-rpc` alone (chain: rpc -> tinyhumans ->+# embed -> core); `scripts/ci/check-feature-forwarding.mjs` checks the link.+# The Jev-backed `tool_search` ranker.+jev = ["openhuman-rpc/jev"]+http-server = ["openhuman-rpc/http-server"]+inference = ["openhuman-rpc/inference"]+documents = ["openhuman-rpc/documents"]+hosting = ["openhuman-rpc/hosting"]+modules = ["openhuman-rpc/modules"]+voice = ["openhuman-rpc/voice"]+web3 = ["openhuman-rpc/web3"]+runtime-node = ["openhuman-rpc/runtime-node"]+media = ["openhuman-rpc/media"]+flows = ["openhuman-rpc/flows"]+skills = ["openhuman-rpc/skills"]+mcp = ["openhuman-rpc/mcp"]+channels = ["openhuman-rpc/channels"]+whatsapp-web = ["openhuman-rpc/whatsapp-web"]+e2e-test-support = ["openhuman-rpc/e2e-test-support"]+file-logging = ["openhuman-rpc/file-logging"]+scheduler-gate = ["openhuman-rpc/scheduler-gate"]+# Sentry init in `main.rs` (through `embed::process::sentry`) plus the+# `observability_smoke` test target.+crash-reporting = ["openhuman-rpc/crash-reporting"]# CLI argument parsing + logger init for `openhuman-fleet`.bin-tools = ["dep:clap"]-# dhat heap profiling for `library-profile`; perturbs RSS, so opt-in only.-rss-bench-dhat = ["rss-bench", "dep:dhat"][lints.rust]unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }