Skip to content

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

docs: remove outdated handoff documentation and simplify context window comment

Steven Enamakel8d1f4b1b41cd
diff --git a/crates/openhuman-core/src/agent/subagent_host/README.md b/crates/openhuman-core/src/agent/subagent_host/README.md
index 7422aebe6d..623d170431 100644
--- a/crates/openhuman-core/src/agent/subagent_host/README.md
+++ b/crates/openhuman-core/src/agent/subagent_host/README.md
@@ -22,9 +22,7 @@ terminal persistence; this crate does not duplicate that state machine.
| `types.rs` | `SubagentRunOptions`, `SubagentRunOutcome`, `SubagentRunError`, `SubagentMode`, `SubagentCheckpointData`, `SubagentUsage` |
| `ops/` | `run_subagent`, the typed and fork execution modes, and the TinyAgents graph route |
| `lifecycle.rs` | `run_subagent`, `run_subagent_with_parent`, `continue_subagent`, checkpoint load/save, `OpenHumanSubagentHost` |
-| `handoff.rs` | Oversized tool-result cache and hygiene, shared with `extract_tool.rs` |
-| `extract_tool.rs` | The `extract_from_result` tool for direct provider extraction over a cached handoff |
-| `tool_prep.rs` | Tool filtering, prompt loading, and the text-mode protocol block |
+| `tool_prep.rs` | Tool filtering, prompt loading, and the prompt protocol block |
| `autonomous.rs` | Iteration-cap policy for autonomous (non-interactive) sub-agent runs |
`SubagentRunOptions::run_context` carries the child's `OpenHumanRunContext`
@@ -32,15 +30,6 @@ explicitly; recursive execution passes this value rather than snapshotting
task-local scopes after a `tokio::spawn`, since task-local state does not
survive that boundary on its own.
-## Handoff
-
-A sub-agent's tool result can be large enough that returning it verbatim
-would blow the parent's context. `HandoffMiddleware` (in TinyAgents)
-intercepts an oversized result through `apply_handoff` and stores it in a
-per-spawn `ResultHandoffCache`; the parent gets a small reference back, and
-`extract_from_result` lets a later turn pull a specific piece of the cached
-result out on demand instead of resending the whole thing.
-
## Where next
- `crate::agent::harness::definition` for `AgentDefinition`, `AgentTier`,
diff --git a/crates/openhuman-core/src/inference/model_context.rs b/crates/openhuman-core/src/inference/model_context.rs
index 79f5687cb5..c7f782976e 100644
--- a/crates/openhuman-core/src/inference/model_context.rs
+++ b/crates/openhuman-core/src/inference/model_context.rs
@@ -15,9 +15,8 @@ const TIER_STANDARD_CONTEXT: u64 = 128_000;
const TIER_LOCAL_CONTEXT: u64 = 8_192;
/// DeepSeek v4 Flash window (~1M tokens) — the managed default model
-/// (`MODEL_MANAGED_DEFAULT`) and the backing of the retired flash tiers.
-/// `extract_from_result` relies on this window to single-shot whole oversized
-/// payloads instead of chunking, so it must reflect the real model's capacity.
+/// (`MODEL_MANAGED_DEFAULT`) and the backing of the retired flash tiers. It
+/// must reflect the real model's capacity.
const TIER_FLASH_CONTEXT: u64 = 1_000_000;
/// Resolve the context window (in tokens) for a model id or OpenHuman tier alias.