Skip to content

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

docs(agent): add READMEs for agent module and harness

Steven Enamakel12a6c1cf6d13
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index 627181ae47..43fae5bcd0 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -271,7 +271,7 @@ Turn execution:
| --- | --- |
| `session_host/` | `OpenHumanSessionHost`: builder, runtime session, driver, hooks, transcript codec, resume and recorded tools ([README](session_host/README.md)) |
| `tinyagents/` | Adapter seam onto the TinyAgents harness: turn runner, model source, middleware stack, `host/` capability adapters, event bridge, journal, replay RPC ([README](tinyagents/README.md)) |
-| `harness/` | Agent definitions and loader, parent/fork context task-locals, sandbox and spawn-depth context, oversized tool-result artifacts, the channel/CLI turn graph ([README](harness/README.md)) |
+| `harness/` | Agent definitions and loader, parent/fork context types, sandbox and spawn-depth context, oversized tool-result artifacts, the channel/CLI turn graph ([README](harness/README.md)) |
| `bus.rs` | The `agent.run_turn` native request handler (`AgentTurnRequest` to `AgentTurnResponse`) |
| `progress.rs` | `AgentProgress`, the event enum every turn streams to its observer |
| [`progress_sink.rs`](./progress_sink.rs) | The `ProgressSink` channel type an in-process embedder hands a turn (carried on `AgentChatEnv`) |
diff --git a/crates/openhuman-core/src/agent/harness/README.md b/crates/openhuman-core/src/agent/harness/README.md
index bb75eb211c..a7f2e0b69c 100644
--- a/crates/openhuman-core/src/agent/harness/README.md
+++ b/crates/openhuman-core/src/agent/harness/README.md
@@ -24,8 +24,8 @@ used here (not defined here) by [`fork_context.rs`](./fork_context.rs).
`../subagent_host/`, which implements the TinyAgents sub-agent lifecycle
traits directly. This module does not export a compatibility runner of its
own.
-- Carry the task-local plumbing that lets a spawned tool see its parent's
- runtime context (`fork_context.rs`). Recursion facts come from TinyAgents’
+- Define the parent snapshot a spawned tool receives on its run context
+ (`fork_context.rs`). Recursion facts come from TinyAgents’
public run context, including depth imported over MCP.
Sandbox mode is carried explicitly by `OpenHumanRunContext` into the typed
tool execution context.
@@ -93,7 +93,7 @@ turn lifecycle are in `../session_host/`; `run_subagent`,
## Used by
- `../session_host/` and `../subagent_host/` build turns from the
- definitions, prompt data, and task-local context this module supplies.
+ definitions, prompt data, and parent context types this module supplies.
- `agent/bus.rs` serves the `agent.run_turn` native request through
`run_channel_turn_via_graph`; channels reach the harness through that bus.
- [`channels/runtime/dispatch/routing.rs`](../../channels/runtime/dispatch/routing.rs) consults
@@ -102,8 +102,8 @@ turn lifecycle are in `../session_host/`; `run_subagent`,
`harness::credentials::scrub_credentials` on every tool result.
- `agent/orchestration/tools/*` (`spawn_subagent`, `spawn_parallel_agents`,
`spawn_async_subagent`, `continue_subagent`, `steer_subagent`, and friends)
- call into `../subagent_host/` and this module's task-local context
- functions.
+ call into `../subagent_host/` and take this module's parent context
+ explicitly.
## Tests