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 upstream/main into tinyagents-uplift-bump-4
Steven Enamakel9e06ae807482
diff --cc crates/openhuman-core/src/agent/orchestration/README.mdindex 282c17fee3,e642f4d4e0..d7a41bbd5e--- a/crates/openhuman-core/src/agent/orchestration/README.md+++ b/crates/openhuman-core/src/agent/orchestration/README.md@@@ -35,9 -35,8 +35,9 @@@ RPC/tool formatting, and OpenHuman's wo- Mirroring detached sub-agent lifecycle into a TinyAgents task store, batchingfinished background results back into chat, and settling run-ledger rowsfrom the global bus regardless of the parent turn's lifecycle- (`running_subagents*.rs`, `background_completions.rs`,- `completion_notice.rs`, `background_delivery.rs`,- `run_ledger_finalize.rs`). The delivery turn runs+ (`running_subagents*.rs`, [`background_completions.rs`](./background_completions.rs),++ [`completion_notice.rs`](./completion_notice.rs),+ [`background_delivery.rs`](./background_delivery.rs), [`run_ledger_finalize.rs`](./run_ledger_finalize.rs)). The delivery turn runson the originating thread's cached chat session via`web_chat::run_system_turn_on_thread`, never on a throwaway host.- A shared root `ParentExecutionContext` builder for surfaces that spawn real@@@ -85,22 -84,12 +85,22 @@@steering, boot reconcile). The status type, wait, ledger helpers, roster andsession resolution live in `tinyagents_orchestration::subagent`(`DetachedSubagentStatus`, `wait_detached`, `SubagentIdentity`, ...).- `background_completions.rs` and- `background_delivery.rs` queue and idle-gated, debounced, batched delivery- of finished background runs back into chat; `run_ledger_finalize.rs` is the+ `background_completions.rs` is the host adapter over the harness+ `tinyagents_tasks::CompletionRouter` (one durable `JsonlCompletionStore` per+ workspace at `.openhuman/background_completions.jsonl`, parent key = chat+ thread id): the router owns the queue, dedupe, tombstones (collected inline,+ stopped, cancelled thread), attempt counting and give-up, so a completion that+ was never delivered is redelivered after a restart+ (`background_delivery::recover_on_boot`, wired next to the orphaned-task+ reconcile in `core/runtime/bootstrap.rs`). `completion_notice.rs` is the+ `<background_agent_*>` wording (a `CompletionFormatter`) and the+ `[BACKGROUND_DELIVERY_FAILED]` give-up notice. `background_delivery.rs` keeps+ the host policy: idle-gated, debounced (3s), batched delivery of finished+ background runs back into chat, the system turn, and the give-up writer fed by+ `mark_failed`. `run_ledger_finalize.rs` is theglobal-bus subscriber that settles ledger rows for runs that outlive theirspawning turn.- - `fleet_tools.rs`: decides which fleet-control tools (`wait_subagent`,+ - [`fleet_tools.rs`](./fleet_tools.rs): decides which fleet-control tools (`wait_subagent`,`steer_subagent`, `wait_loop`, `close_subagent`) a given parent agent'sdefinition actually exposes, so the delegation prompts and the`[active_subagents]` roster text never name a tool the model cannot call