Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(deps): replace monolithic tinyagents with its split workspace crates

Steven Enamakel1d82abfef623
diff --git a/Cargo.toml b/Cargo.toml
index 342dbbafe6..1bdd945597 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -166,22 +166,49 @@ tinyflows-copilot = { path = "vendor/tinyflows/crates/tinyflows-copilot", option
# #4249): every turn drives through the harness; the workflow phase DAG, team
# member runtime, parallel fan-out, and multi-stage delegation run on graphs.
# We wire openhuman's own Provider/Tool, not the removed bundled openai client.
-# The `sqlite` feature is enabled now that openhuman's direct rusqlite pin is
-# aligned to 0.40, avoiding duplicate `links = "sqlite3"` native bindings.
-# Durable graph checkpoints still use `SqlRunLedgerCheckpointer` until the
-# migration re-points those rows to the crate checkpointer.
-# The `repl` feature (embedded Rhai `.ragsh` session runtime powering the
-# `rhai_workflows` language-workflow tool, `src/openhuman/rhai_workflows/`) is
-# NOT enabled here — the default-ON `flows` feature turns it on via
-# `tinyagents/repl` (#4797), so a slim build without `flows` sheds `rhai`.
-# The crate itself can never be dropped: 26+ domains consume tinyagents.
+#
+# tinyagents was split into a workspace of focused crates (tinyhumansai/tinyagents
+# commit 612ea5e "refactor: split tinyagents into focused crates" and follow-on
+# work): there is no longer a single `tinyagents` package. openhuman now depends
+# directly on the members it actually uses — `tinyagents-harness` (agent loop,
+# tools, middleware), `tinyagents-graph` (durable state graphs), `tinyagents-language`
+# (`.rag`), `tinyagents-registry` (capability/model registry), and
+# `tinyagents-session` (durable session history + run ledger, previously gated
+# behind this crate's own `sqlite` feature — it is its own always-on crate now).
+# The `sqlite` feature is enabled on the harness/graph crates now that openhuman's
+# direct rusqlite pin is aligned to 0.40, avoiding duplicate `links = "sqlite3"`
+# native bindings. Durable graph checkpoints still use `SqlRunLedgerCheckpointer`
+# until the migration re-points those rows to the crate checkpointer.
+# The `repl` feature/`rhai` scripting engine no longer exists in the split crates
+# (see the tinyagents-harness module list) — the comment that used to describe
+# `tinyagents/repl` gating `rhai` in for `flows` builds is stale; `rhai` is pulled
+# in by `flows`'s own dependency on the `rhai` crate directly, not through tinyagents.
+# None of these crates can be dropped: 26+ domains consume tinyagents.
# `multimodal` is not optional here: `agent::multimodal` is kernel surface —
# web chat and the agent harness both resolve attachment markers on every turn
# — so the gate is on for every OpenHuman build. It costs the dependency graph
# nothing: `base64`, `flate2` and `sha2` are all already resolved in the kernel
# profile, so turning it on moves neither the package count nor the native
# build count that `scripts/check-kernel-floor.sh` ratchets.
-tinyagents = { version = "2.1", features = ["sqlite", "multimodal"] }
+#
+# A large share of the old crate's re-exported surface (Message, ModelRequest/
+# Response, ToolCall/ToolSchema, Usage, embeddings, hosted-provider plumbing)
+# moved further upstream still, into `tinyinference` (vendored as a submodule
+# of vendor/tinyagents at vendor/tinyagents/vendor/tinyinference) — declared
+# below as its own path dependency for the same "one checkout, one type
+# identity" reason `tinytools` is.
+tinyagents-harness = { path = "vendor/tinyagents/crates/tinyagents-harness", features = [
+ "sqlite",
+ "multimodal",
+ "tools",
+] }
+tinyagents-graph = { path = "vendor/tinyagents/crates/tinyagents-graph", features = [
+ "sqlite",
+] }
+tinyagents-language = { path = "vendor/tinyagents/crates/tinyagents-language" }
+tinyagents-registry = { path = "vendor/tinyagents/crates/tinyagents-registry" }
+tinyagents-session = { path = "vendor/tinyagents/crates/tinyagents-session" }
+tinyinference = { path = "vendor/tinyagents/vendor/tinyinference/crates/tinyinference" }
# TinyTools — the tool vocabulary: the `Tool` trait, `ToolResult`, and the
# permission / scope / timeout classifications this host enforces around a call.
#