Skip to content

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

docs(agent, core, jev): add README documentation for three modules

Steven Enamakel46edfa79b054
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index a3791fc4b4..3db556d220 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -26,6 +26,7 @@ Multi-agent orchestration domain. Owns the LLM tool-calling loop, sub-agent disp
| `debug/` | Renders the exact system prompt a live session would see for a given agent, via `Agent::from_config_for_agent` |
| `experience/` | Local procedural operating experience capture for self-learning ([README](experience/README.md)) |
| `file_state/` | Process-wide read/write stamps so parallel sub-agents and worker threads detect stale file contents before writing |
+| `goals/` | Host adapters around `tinyagents_graph::goals`: workspace-store resolution, domain events, heartbeat dispatch, and the `goal_*` tools ([README](goals/README.md)) |
| `harness/` | Legacy/product prompt and definition helpers used by the session host; generic loop mechanics are imported from TinyAgents ([README](harness/README.md)) |
| `harness_init/` | One-time first-run provisioning (Python/spaCy/Kompress/Node) before the harness can run ([README](harness_init/README.md)) |
| `learning/` | Reflection, tool-outcome tracking, user-profile inference from transcripts ([README](learning/README.md)) |
diff --git a/crates/openhuman-core/src/core/README.md b/crates/openhuman-core/src/core/README.md
index 3010252f4d..a21cccdecc 100644
--- a/crates/openhuman-core/src/core/README.md
+++ b/crates/openhuman-core/src/core/README.md
@@ -1,8 +1,8 @@
# core
Transport, dispatch, the controller registry, the event bus, auth, the CLI,
-and runtime composition. `core/` is not a domain — it holds no business
-logic; every controller it exposes is implemented by a domain module under
+and runtime composition. `core/` is not a domain: it holds no business
+logic. Every controller it exposes is implemented by a domain module under
`crates/openhuman-core/src/<domain>/` and wired in here.
## Responsibilities
diff --git a/crates/openhuman-tinyhumans/src/jev/README.md b/crates/openhuman-tinyhumans/src/jev/README.md
new file mode 100644
index 0000000000..da11796ce4
--- /dev/null
+++ b/crates/openhuman-tinyhumans/src/jev/README.md
@@ -0,0 +1,47 @@
+# jev
+
+Installs Jev as the core's `tool_search` ranker for a TinyHumans-connected
+process. See [`gitbooks/developing/jev.md`](../../../../gitbooks/developing/jev.md)
+for what Jev is, the benchmark numbers, and how it compares to plain BM25
+retrieval.
+
+## Contents
+
+- `mod.rs` — `install_jev_ranker()`, the one entry point. It builds a
+ `TinyHumansJevRanker` and registers it as the process-wide `tool_search`
+ ranker through `openhuman_core::agent::tinyagents::discovery`. Idempotent:
+ calling it again replaces the previous ranker in place.
+- `ranker.rs` — `TinyHumansJevRanker`, the `ToolRanker` implementation. It
+ resolves the current backend credential and base URL on every search
+ (not once at install time, since a desktop process signs in and out while
+ it runs), embeds the tool catalogue through the process's own embedding
+ provider to retrieve a shortlist, and asks one `tinytools_jev::JevRanker`
+ Choice evaluation to pick from it. The built Jev client is cached by
+ credential and base URL fingerprint so a stable session does not rebuild
+ an HTTP client on every search.
+- `evaluator.rs` — `TinyJevEvaluator`, the `tinytools_jev::JevEvaluator` that
+ reaches Jev through the backend's `/agent-integrations/openrouter/systemone`
+ proxy with the same credential every other backend call uses.
+
+## Fallback behavior
+
+A process with no usable backend credential, or no embedding provider that
+can actually embed, does not run a Jev search at all: `current()` /
+`retriever_for` return an error, and the harness's `tool_search` bridge
+falls back to its own BM25 catalogue. This is deliberate. A lexical
+shortlist would cap Jev's decision at BM25's recall, and the bench in
+`docs/plans/jev-tool-search-baseline.md` measured that recall well below
+what embeddings retrieve. So `auto` ranking costs nothing extra when the
+process is signed out or has no embedding provider configured, and Jev
+never makes a decision over a shortlist it distrusts.
+
+## Where to look next
+
+- `vendor/tinyagents/vendor/tinytools/crates/tinytools-jev/` — the generic
+ `JevRanker` / `JevEvaluator` / `JevStrategy` types this module configures.
+- `crates/openhuman-core/src/config/schema/agent.rs` — `ToolSearchConfig`,
+ where a config chooses `ranker = "jev"` (the default), `"bm25"`,
+ `"auto"`, or `"compare"`.
+- `cargo run -p openhuman-cli --bin tool-search-bench` — the ranker
+ comparison harness; see
+ [`../../../openhuman-cli/src/bin/README.md`](../../../openhuman-cli/src/bin/README.md).