Skip to content

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

docs: document the tinyflows module and its component flag

Steven Enamakel598bdf297437
diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.md
index 7b88864764..dea5d57a59 100644
--- a/crates/openhuman-core/src/modules/README.md
+++ b/crates/openhuman-core/src/modules/README.md
@@ -4,7 +4,7 @@ This folder is the host for loadable native modules. A module is a first-party
`cdylib` that speaks the tinybus module ABI and ships separately from the core
binary: `tinycomputer`, `tinysearch`, `tinydocs`, `tinywallet`, `tinyjuice`,
`tinyvoice`, `tinymcp`, `tinyconnectors`, `tinybox`,
-`tinychannels` and `tinyhosts`. The core downloads a module from a pinned
+`tinychannels`, `tinyflows` and `tinyhosts`. The core downloads a module from a pinned
GitHub release, checks it against a digest compiled into this crate, lets
tinybus admit it, attaches it to a private in-process broker, and then calls
it like any other bus service. Domains reach a module through the per-module
@@ -307,6 +307,7 @@ download, its `dlopen`, or its resident memory.
| [`profile_claim.rs`](profile_claim.rs) | `tinycomputer` | Host adapter over `BrowserClaimProfile` / `BrowserReleaseProfile`: sends the configured persistent profile folder with the wait (5 s for a task, 1 s for a session) and applies the outcome, a claimed folder or a fresh profile. Chrome's lock detection, the wait and the claim bookkeeping live in the module. |
| [`browser_task_report.rs`](browser_task_report.rs) | `tinycomputer` | What is kept when a task stops: a content-free log summary, and with tracing on the full report under `<workspace>/state/computer/tasks/`. |
| [`site_memory_host.rs`](site_memory_host.rs) | `tinycomputer` | Host side of `SiteMemoryHost`: stores the per-site memory the module keeps (plans and elements learned by finished tasks) in `<workspace>/state/computer/sites/<site>.json`, sweeps files unchanged for 30 days, refuses saves while learning is off, and bumps a forget epoch so a task running when its site was forgotten cannot write it back. The module applies the reuse rules and calls Load/Save from `StartTask` onward; never reaches the agent's memory or prompts. |
+| [`tinyflows.rs`](tinyflows.rs) | `tinyflows` | The scheduler module (contract `tinyflows_bus::schedule` v3): `proxy`/`run_proxy` load it lazily and return a proxy for its `Schedule` object (a second interface on a second object path, which a `ModuleClient` cannot reach), and `serve`/`unserve` export the host objects it calls back (`ScheduleHost` and the `ScheduleDocuments` port, `cron::bus_host` and `cron::documents_port`) on the module runtime under the bus name `ai.tinyhumans.openhuman.CronHost`. `[components] tinyflows = false` refuses with `COMPONENT_DISABLED:tinyflows`; unit tests attach the `static-link` build of `tinyflows-module` (`fixture::attach`). Cron is not behind a Cargo gate, so a build without `modules` answers that scheduled jobs are unavailable. |
| [`connectors.rs`](connectors.rs) | `tinyconnectors` | `proxy`, `call`, `call_stateless`, `call_bare`, `reconcile_route_if_loaded`. Builds the route configuration (signed-in backend or the user's own Composio key) and reconciles it on every call so sign-out reaches the module. |
| [`search/mod.rs`](search/mod.rs) | `tinysearch` | `module_config` from the host's resolved search policy, and `configured_tool_specs` computed synchronously from that same configuration. |
| [`search/proxy.rs`](search/proxy.rs) | `tinysearch` | Lazy load, private reinitialization on configuration change, and serialized `list_tools` / `execute_tool`; `refresh_loaded` after settings saves and credential changes. |
diff --git a/crates/openhuman-core/src/modules/registry/README.md b/crates/openhuman-core/src/modules/registry/README.md
index 826a4ce963..ebfaf7d85a 100644
--- a/crates/openhuman-core/src/modules/registry/README.md
+++ b/crates/openhuman-core/src/modules/registry/README.md
@@ -21,6 +21,7 @@ values for a family of related modules:
- [`records_computer.rs`](./records_computer.rs): `TINYCOMPUTER` (desktop and browser control).
- [`records_docs_wallet.rs`](./records_docs_wallet.rs): `TINYDOCS`, `TINYWALLET`.
- [`records_extra.rs`](./records_extra.rs): `TINYBOX`, `TINYCHANNELS`, `TINYHOSTS`.
+- [`records_flows.rs`](./records_flows.rs): `TINYFLOWS` (scheduler runtime, cron store and schedule maths; authoring).
- [`records_mcp_connectors.rs`](./records_mcp_connectors.rs): `TINYCONNECTORS`, `TINYMCP`.
- `records_juice.rs`: `TINYJUICE`.
- [`records_search.rs`](./records_search.rs): `TINYSEARCH`.
diff --git a/docs/gitbooks/en/developing/components.md b/docs/gitbooks/en/developing/components.md
index 9aad18c4cf..0019d28459 100644
--- a/docs/gitbooks/en/developing/components.md
+++ b/docs/gitbooks/en/developing/components.md
@@ -12,6 +12,7 @@ icon: toggle-on
```toml
[components]
flows = true # tinyflows: saved workflows
+tinyflows = true # tinyflows module: scheduled jobs (cron) runtime, store and schedule maths
memes = true # tinymemes
documents = true # tinydocs
search = true # tinysearch
@@ -42,6 +43,10 @@ A flag change takes effect on the next core start. There is no hot toggling.
Each component's domain wires itself to its switch (tools, services and RPC) in its own change; until then a switch removes only the families, services and tool groups listed in the core's component set.
+## Tinyflows
+
+`tinyflows = false` stops the cron scheduler service and makes every `cron.*` RPC answer `COMPONENT_DISABLED:tinyflows`; the `tinyflows` module is never downloaded or loaded, so no job runs and none can be stored. It is separate from `flows`, which only stops schedule-triggered flows while agent, shell and system jobs keep running.
+
## Not toggleable
The kernel dependencies (tinyagents, tinytools, tinyinference, tinybus) are always on. `[modules] enabled` remains the global kill switch for loadable native modules.