Skip to content

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

Merge remote-tracking branch 'upstream/main' into readme-pitch

Steven Enamakelbe905d92527f
diff --cc crates/openhuman-embed/README.md
index b44c1388c0,37c3aba1a7..70f435a986
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@@ -389,25 -389,64 +389,64 @@@ agent to another. See [`src/agent/READM
## Key types and entry points
-- `Runtime` and `RuntimeBuilder` (`src/runtime/`): build once per process,
+- `Runtime` and `RuntimeBuilder` ([`src/runtime/`](src/runtime/)): build once per process,
then call `Runtime::agent`. `Runtime::core()` gives non-turn access
(config, auth) without exposing a way to start a turn.
-- `AgentSpec` (`src/agent/spec.rs`): the pure-data description of an agent.
+- `AgentSpec` ([`src/agent/spec.rs`](src/agent/spec.rs)): the pure-data description of an agent.
Ids must match `^[a-z0-9][a-z0-9_-]{0,63}$`.
-- `Agent` (`src/agent/mod.rs`): a cheap clone handle. `run`, `turn`,
+- `Agent` ([`src/agent/mod.rs`](src/agent/mod.rs)): a cheap clone handle. `run`, `turn`,
`attach_tools`, and path accessors (`action_dir`, `home_dir`,
`skills_dir`, `transcripts_dir`).
-- `Turn` and `TurnOutcome` (`src/turn.rs`): configure, then `send`.
-- `Access` (`src/harness/access.rs`): the autonomy tier and turn origin,
+- `Turn` and `TurnOutcome` ([`src/turn.rs`](src/turn.rs)): configure, then `send`.
+- `Access` ([`src/harness/access.rs`](src/harness/access.rs)): the autonomy tier and turn origin,
always set together. Presets are `readonly`, `supervised` (the default)
and `full`.
-- `Provider` (`src/harness/provider.rs`): `openai_compatible(base_url, key)`
+- `Provider` ([`src/harness/provider.rs`](src/harness/provider.rs)): `openai_compatible(base_url, key)`
plus `model`, or `inherit()` for the machine's configured inference.
-- `Workspace` (`src/harness/workspace.rs`): `Ephemeral` (default), `Dir`,
+- `Workspace` ([`src/harness/workspace.rs`](src/harness/workspace.rs)): `Ephemeral` (default), `Dir`,
`Stateless`, or `Inherit`.
-- `Harness` (`src/harness/mod.rs`): one runtime, one agent.
-- `Core` (`src/lib.rs`): the typed facade over a caller-built runtime.
+- `Harness` ([`src/harness/mod.rs`](src/harness/mod.rs)): one runtime, one agent.
+- `Core` ([`src/lib.rs`](src/lib.rs)): the typed facade over a caller-built runtime.
+ ## One model call, no runtime: `Completer`
+
+ A host that needs *a completion*, not an agent — a code reviewer asking for a
+ JSON verdict, a classifier, an extractor — uses `complete::Completer`. It needs
+ no `Runtime`, so none of the one-per-process and worker-stack constraints above
+ apply, and any number of calls can run concurrently.
+
+ ```rust,no_run
+ # async fn demo() -> Result<(), openhuman_embed::CoreError> {
+ use openhuman_embed::complete::{ChatMessage, CompletionRequest, Completer, ResponseFormat};
+ use openhuman_embed::Route;
+
+ let completer = Completer::new(Route::openai_compatible("https://openrouter.ai/api/v1", "sk-…"))
+ .header("X-Title", "my-app");
+ let response = completer
+ .complete(
+ CompletionRequest::new("openai/gpt-5-mini", vec![ChatMessage::user("Is 7 prime?")])
+ .response_format(ResponseFormat::JsonObject)
+ .max_tokens(64)
+ .provider_options(serde_json::json!({"usage": {"include": true}})),
+ )
+ .await?;
+ println!("{:?} {:?} {:?}", response.structured, response.finish_reason, response.usage);
+ # Ok(())
+ # }
+ ```
+
+ It differs from an agent turn on purpose: no prompt-injection guard (callers
+ pass untrusted text *as data*), no tools (a request declaring tools is
+ refused), no session or orchestrator prompt, and no model fallback — the
+ requested model is sent verbatim and `answered_model` reports what the
+ provider says actually ran. `finish_reason`, token usage (cached and reasoning
+ included) and the gateway-reported cost come back on the response; a
+ `CompletionObserver` sees every call, success or failure, for trace export.
+
+ `openhuman_embed::embeddings` re-exports the embedding models (OpenAI, Voyage,
+ Cohere, Ollama, mock) for hosts that keep their own vector index, with the
+ signature format unchanged so stored vectors stay in their partition.
+
## Feature flags
Every feature is a pass-through to the same-named feature on