Skip to content

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

chore(deps): update tinyagents dependency

Steven Enamakele1f883a0352d
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/coding.md b/crates/openhuman-core/src/tools/toolpacks/guides/coding.md
new file mode 100644
index 0000000000..c72cfc7b1f
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/coding.md
@@ -0,0 +1,12 @@
+Repository and code work, end to end, in the action sandbox (`action_dir`). Clone repos and write build output there; the internal workspace is off limits.
+
+1. **Locate.** `grep` / `glob` / `list` for symbols, error strings or files, then `file_read` the top hits. Use `lsp` for definitions and references when it is enabled. Two rounds of searching, then start editing.
+2. **Edit.** `edit` for a small exact replacement, `apply_patch` for multi-hunk changes, `file_write` only to create a new file. Never rewrite an existing file through a shell heredoc.
+3. **Run.** `shell` for builds and focused tests; `node_exec` / `npm_exec` / `python_exec` run scripts on OpenHuman's managed runtimes rather than whatever is on PATH. `curl` is for a raw HTTP call when `web_fetch` is not enough. Only stdout/stderr come back: a script that prints nothing returned nothing, not success. If you create a virtualenv, use its own `pip`/`python`.
+4. **Verify.** `run_tests` and `run_linter` in the working tree; fix what fails before reporting.
+5. **Review before you finish.** `read_diff`, then check it in this order: security (injection, secrets, unsafe input) → correctness (edge cases, off-by-one, error paths, races) → tests cover the new paths → style matches the surrounding code. Name file and line for each problem.
+6. **Git.** `git_operations` (or `shell` with `git`) for status, diff, branch, commit and push in the working tree. GitHub *state* (issues, PRs, reviews, checks, comments) goes through the connected GitHub integration: `tool_search` for the action. Never shell `gh`.
+
+Shell hygiene: plain commands, pipes and redirects are fine; avoid `$(…)`, backticks and background `&`; run the inner command as its own step instead. No `sudo` or system package installs unless the user granted it: say what is missing and propose an alternative instead of looping on installers.
+
+Report what you changed (paths), how you verified it (commands and results) and anything left undone.
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/docs.md b/crates/openhuman-core/src/tools/toolpacks/guides/docs.md
new file mode 100644
index 0000000000..0e6a0040b5
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/docs.md
@@ -0,0 +1,8 @@
+Questions about OpenHuman itself (features, settings, setup, how something works), answered from the official docs.
+
+1. `gitbooks_search` with the feature's name ("cron", "skills", "MCP") rather than the user's filler words.
+2. If an excerpt answers it, reply in your own words and link the page.
+3. Otherwise `gitbooks_get_page` on the best URL, then answer.
+4. Missed? Reformulate once. Then say the docs do not cover it.
+
+Keep it short: a sentence or two, or a tight numbered list for steps, with the source link. Never invent commands, config keys, env vars or UI paths. Connecting apps and channels lives under **Connections** in the sidebar (Channels, OAuth, MCP and Skills tabs), not under Settings; quote any other UI path only if a doc states it.
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/mcp.md b/crates/openhuman-core/src/tools/toolpacks/guides/mcp.md
new file mode 100644
index 0000000000..44d790a285
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/mcp.md
@@ -0,0 +1,11 @@
+The user's connected MCP servers: finding a server, learning its tools and calling them.
+
+Connected servers' tools are normally reached through `tool_search`: search for the action in plain words and call the tool it returns with that tool's schema. The tools here are the direct fallback:
+
+1. `mcp_registry_status` lists servers and their connection state; pick the connected one that fits. `mcp_registry_installed_list` gives the installed set when you need ids rather than live state.
+2. `mcp_registry_connect` (by `server_id`) only for an installed, enabled server that is disconnected.
+3. `mcp_registry_list_tools` for that server before any call: read the tool names and input schemas.
+4. `mcp_registry_tool_call` with `{server_id, tool_name, arguments}`; build `arguments` from the schema, never from memory. Resolve time windows with `resolve_time` first.
+5. `is_error: true` → report it, fix the arguments and retry once if they were wrong. An empty result is an answer; say so.
+
+`mcp_registry_search` / `mcp_registry_get` browse the catalog. Installing or adding a server is the user's action (Connections → MCP): recommend it, never do it. Cite which server and tool produced the answer.
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/scheduling.md b/crates/openhuman-core/src/tools/toolpacks/guides/scheduling.md
new file mode 100644
index 0000000000..3dcfe279b1
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/scheduling.md
@@ -0,0 +1,11 @@
+Reminders and scheduled jobs in OpenHuman's own scheduler (the `cron` tool). This creates work that runs *later*; it cannot read the user's live calendar or meetings. Those come from a connected calendar integration (`tool_search`).
+
+1. **Ground the time.** Pass the user's phrase to `resolve_time` with their timezone (`current_time` gives it). Never hand-compute timestamps.
+2. **Confirm.** Propose the exact local time or cadence and get an explicit yes before creating anything.
+3. **Create** with `cron` `action:"add"`. `schedule` is a JSON **object**, never a string:
+ - one-shot: `{"kind":"at","at":"<rfc3339 from resolve_time>"}` with `delete_after_run: true`
+ - recurring: `{"kind":"cron","expr":"<5-field cron>","tz":null}`, e.g. `"0 9 * * *"` daily 9 AM, `"*/30 * * * *"` every 30 min
+ - an agent job sets `job_type:"agent"` and a `prompt` that tells the future run exactly what to deliver, plus `delivery: {"mode":"proactive","best_effort":true}`
+4. **Manage** with `cron` `action:"list"`, `"update"`, `"remove"`, `"run"` (run now) and `"runs"` (history).
+
+A finite repetition ("5 times") is a recurring job whose prompt says when to stop; explain how to pause or remove it. Report the new job id and that it is listed under Settings → Cron Jobs. If a call fails, name the failed action and the next step.
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/system.md b/crates/openhuman-core/src/tools/toolpacks/guides/system.md
new file mode 100644
index 0000000000..c33158b4c6
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/system.md
@@ -0,0 +1,13 @@
+OpenHuman's own configuration, health, costs, background service, proxy, credentials and app updates.
+
+**Read first.** Answer from read-only tools before proposing any change: `config_snapshot` and the `config_get_*` readers, `config_get_runtime_flags`, `config_get_data_paths`, `doctor_health` / `doctor_models`, `health_snapshot` / `health_system_info`, `dashboard_model_health`, `security_policy_info`, `service_status`, `daemon_host_prefs_get`, the `cost_*` dashboards, `session_state`, `credential_list`, `oauth_list`.
+
+**Diagnose** in three parts: symptom, current observed state, recommended next action. Quote values exactly as a tool returned them.
+
+**High-impact actions need an explicit yes first**, naming the effect: `service_start`, `service_stop`, `service_restart`, `service_shutdown`, `service_install`, `service_uninstall`, `daemon_host_prefs_set`, `proxy_config` (when it writes) and `update_apply`. `service_shutdown` stops the core this conversation runs on: say so.
+
+**Updates.** `update_check` first; summarise current vs available version, channel and risk; `update_apply` only after the user agrees.
+
+**Connecting an account.** `oauth_connect_url` produces a link for the user to open; never paste tokens or secrets back.
+
+Never claim a setting changed unless a tool result confirms it. When no tool can make the change the user wants, say what you inspected and where in the app the change lives, rather than inventing a config key or a menu path.
diff --git a/crates/openhuman-core/src/tools/toolpacks/guides/web3.md b/crates/openhuman-core/src/tools/toolpacks/guides/web3.md
new file mode 100644
index 0000000000..a6b659253e
--- /dev/null
+++ b/crates/openhuman-core/src/tools/toolpacks/guides/web3.md
@@ -0,0 +1,12 @@
+Wallet, swap, bridge, contract-call and x402 payment actions on the user's own wallet identities. These move real money: **read → quote → confirm → execute**, never fewer steps.
+
+1. **Frame.** Restate in one line: which asset, amount, chain, from, to. Ask once if the chain, asset or recipient is ambiguous.
+2. **Inspect.** `wallet_status` (identities and accounts exist) and `wallet_chain_status` (target chain reachable). There is **no balance tool**: never state a balance you were not told; ask, or let the quote surface an insufficiency. For market context use `stock_crypto_series` / `stock_exchange_rate`.
+3. **Quote.** `web3_swap_quote` (after `web3_swap_routes` if the route is open), `web3_bridge_quote`, `web3_dapp_call`, or `wallet_prepare_transfer` for a plain transfer. Flag an unusual fee, slippage or extra hops as a concern.
+4. **Confirm.** Show the user source (truncated address), destination (full address), asset and amount, fee, slippage, ETA and the quote id, and get an explicit yes in the conversation. `confirmed: true` is a machine gate, not a substitute for asking.
+5. **Execute.** Only on that yes: the matching `web3_swap_execute` / `web3_bridge_execute` / `web3_dapp_execute` with the exact `quote_id` from this turn. Re-quote if the quote is over ~60s old (`current_time`). A plain transfer has **no** execute tool: stop after the prepare and tell the user to complete it in the wallet UI.
+6. **Track.** `wallet_tx_status` / `wallet_tx_receipt` / `wallet_lookup_tx` for a hash a tool returned. Never invent a hash or an explorer link.
+
+`x402_request` pays for an x402-enabled HTTP API (402 Payment Required) in USDC from the wallet and retries with the proof; the wallet needs USDC on that chain. Confirm the price with the user first.
+
+Stop cleanly: a missing identity or chain → point to **Settings → Recovery Phrase** or **Connections**; a failed quote → quote the reason, suggest the smallest adjustment, wait. Never auto-retry a write. Never echo keys, seed phrases, signed payloads or raw RPC errors.
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 1db503a0f5..9d9cf25d5a 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 1db503a0f567eebf177ca9f363c0a447b4e15873
+Subproject commit 9d9cf25d5af5c81fd991173494f9866077d806a9