Skip to content

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

docs(scripts): add cross-links and further reading to script READMEs

Steven Enamakelb74c8a8d55a2
diff --git a/scripts/bench/README.md b/scripts/bench/README.md
index ffd3a66e54..0fd5c14c85 100644
--- a/scripts/bench/README.md
+++ b/scripts/bench/README.md
@@ -1,15 +1,15 @@
# `scripts/bench/` — agent-scale benchmarks
-Drive a **real `openhuman-core` server process** at concurrency against a
-mocked LLM, sample its CPU and memory from the outside, and report a leak
-verdict.
+Drive a **real [`openhuman-core`](../../crates/openhuman-cli/README.md) server process** at concurrency against a
+mocked LLM ([`mock-llm.mjs`](./mock-llm.mjs)), sample its CPU and memory from the outside, and report a leak
+verdict. The pieces are [`run-agent-scale.sh`](./run-agent-scale.sh), [`driver.mjs`](./driver.mjs), [`sampler.mjs`](./sampler.mjs) and [`analyze.mjs`](./analyze.mjs).
## How this differs from `scripts/profile/`
Both measure resources; they answer different questions, and the difference is
the reason this directory exists rather than another scenario in the old one.
-| | `scripts/profile/` | `scripts/bench/` (here) |
+| | [`scripts/profile/`](../profile/README.md) | `scripts/bench/` (here) |
| -------------- | --------------------------------------- | --------------------------------------------- |
| Core runs as | a library, embedded in the bench binary | a normally-built `openhuman-core serve` process |
| Driven through | direct `Agent` calls | JSON-RPC over HTTP `/rpc` |
@@ -138,6 +138,8 @@ you reproduce this setup by hand:
## Baseline
+See [`FINDINGS.md`](./FINDINGS.md) for the longer write-up of these runs.
+
From a 5-minute run at concurrency 8, tool-depth 1, on one machine — indicative,
not a target, and not yet reproduced across hosts:
@@ -231,6 +233,8 @@ accumulates — so a leak hunt should use at least 1.
## Tests
+The tests are in [`analyze.test.mjs`](./analyze.test.mjs).
+
```bash
node --test scripts/bench/analyze.test.mjs
```
@@ -239,3 +243,10 @@ The analyzer's failure mode is silence: wrong math reports "pass" on a leaking
run and nobody notices. The tests drive it with synthetic series whose correct
verdict is known by construction — a steady leak, a plateau, a flat line,
thread and FD growth, CPU drift — so a regression in the leak math fails loudly.
+
+## Further reading
+
+- [`scripts/profile/`](../profile/README.md), the in-process counterpart.
+- [Performance and footprint](../../gitbooks/developing/performance.md) for the published numbers, and the public [openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks) repo for the cross-harness rig.
+- [`docs/library-benchmarking.md`](../../docs/library-benchmarking.md) for the embedded-library methodology.
+- [`scripts/ci/product-features.sh`](../ci/README.md), which defines the shipped feature set the release build uses.
diff --git a/scripts/dep-audit/README.md b/scripts/dep-audit/README.md
index 5410c45934..d36793262c 100644
--- a/scripts/dep-audit/README.md
+++ b/scripts/dep-audit/README.md
@@ -14,7 +14,7 @@ A full sweep of 24 targets takes about 20 seconds; nothing is compiled, the
tool only runs `cargo metadata` and parses source.
The run avoids side effects on the tree: `cargo metadata` rewrites a
-`Cargo.lock` that is stale relative to its manifest (`crates/openhuman-app`'s
+`Cargo.lock` that is stale relative to its manifest ([`crates/openhuman-app`](../../crates/openhuman-app/README.md)'s
lockfile in particular), or creates one where a target had none, so `run.sh`
records each target's lockfile state (present, with its exact contents, or
absent) before analyzing it and restores that state afterwards — restoring on
@@ -27,10 +27,10 @@ update` / `cargo generate-lockfile`) if you want it refreshed.
| File | Role |
| --- | --- |
-| `run.sh` | Discovers targets, runs `tinyanalyzer` once per target, then calls `report.mjs`. `--help` lists the flags. |
-| `report.mjs` | Folds the per-target JSON into `REPORT.md` and `summary.json`. Re-runnable on its own: `node scripts/dep-audit/report.mjs --reports target/dep-audit`. |
-| `tinyanalyzer.toml` | Shared analyzer config passed to every target (`--config`). Holds the `ignore_unused` list; see below before editing it. |
-| `../../docs/dep-audit/<date>.md` | Committed snapshots from `--snapshot` runs, for diffing against the next run. |
+| [`run.sh`](./run.sh) | Discovers targets, runs `tinyanalyzer` once per target, then calls `report.mjs`. `--help` lists the flags. |
+| [`report.mjs`](./report.mjs) | Folds the per-target JSON into `REPORT.md` and `summary.json`. Re-runnable on its own: `node scripts/dep-audit/report.mjs --reports target/dep-audit`. |
+| [`tinyanalyzer.toml`](./tinyanalyzer.toml) | Shared analyzer config passed to every target (`--config`). Holds the `ignore_unused` list; see below before editing it. |
+| [`../../docs/dep-audit/<date>.md`](../../docs/dep-audit/2026-09-19.md) | Committed snapshots from `--snapshot` runs, for diffing against the next run. |
## Prerequisites
@@ -43,7 +43,7 @@ update` / `cargo generate-lockfile`) if you want it refreshed.
`run.sh` builds the target list itself, so a new submodule is picked up
automatically:
-1. `root` — the OpenHuman workspace (`Cargo.toml` at the repo root).
+1. `root` — the OpenHuman workspace ([`Cargo.toml`](../../Cargo.toml) at the repo root).
2. `openhuman-app` — the Tauri host. It is `exclude`d from the root
workspace and has its own `Cargo.lock`, so it is a separate graph.
3. Every entry of `git submodule status --recursive` that has a `Cargo.toml`,
@@ -177,3 +177,10 @@ listed; cargo unifies it.
carry file, complexity and dead-code findings that this report ignores.
`tinyanalyzer vendor/<name>` opens the interactive dashboard over the same
data.
+
+## Further reading
+
+- [`scripts/README.md`](../README.md) for the rest of the tooling, and [`scripts/ci/`](../ci/README.md) for the merge gates.
+- [`docs/dep-audit/`](../../docs/dep-audit/2026-09-19.md), the committed snapshots.
+- [`AGENTS.md`](../../AGENTS.md) for the `assert-shed.sh` / `dep-sim.py` rule before claiming a dependency reduction.
+- [Building the Rust core](../../gitbooks/developing/building-rust-core.md) and the [`vendor/`](../../vendor) submodules the audit walks.
diff --git a/scripts/profile/README.md b/scripts/profile/README.md
index cbd69fa07a..b44ddaaadc 100644
--- a/scripts/profile/README.md
+++ b/scripts/profile/README.md
@@ -2,14 +2,14 @@
Reproducible benchmarking scripts for the OpenHuman Rust core as an embedded
library (no RPC server), built around the `library-profile` and `rss-bench`
-binaries (see `crates/openhuman-cli/src/bin/library_profile/main.rs`).
+binaries (see [`crates/openhuman-cli/src/bin/library_profile/main.rs`](../../crates/openhuman-cli/src/bin/library_profile/main.rs) and [`rss_bench.rs`](../../crates/openhuman-cli/src/bin/rss_bench.rs)).
-Six driver scripts: `library-bench.sh` (per-scenario RSS/duration),
-`library-cpu.sh` (samply), `library-heap.sh` (dhat), `library-fleet.sh`
-(fleet-scale sweep + budget gate), `library-instances.sh` (multi-process
-instance sweep), and `rss-bench.sh` (embedded-roster RSS, #5046).
+Six driver scripts: [`library-bench.sh`](./library-bench.sh) (per-scenario RSS/duration),
+[`library-cpu.sh`](./library-cpu.sh) (samply), [`library-heap.sh`](./library-heap.sh) (dhat), [`library-fleet.sh`](./library-fleet.sh)
+(fleet-scale sweep + budget gate), [`library-instances.sh`](./library-instances.sh) (multi-process
+instance sweep), and [`rss-bench.sh`](./rss-bench.sh) (embedded-roster RSS, #5046). A seventh, [`library-pool-gate.sh`](./library-pool-gate.sh), is the runtime-pool regression gate.
-Benchmarks run from these scripts, not in CI.
+Benchmarks run from these scripts, not in CI. For the server-process counterpart see [`scripts/bench/`](../bench/README.md).
## Scripts
@@ -136,3 +136,10 @@ All scripts require `jq` for JSON parsing/aggregation; `library-cpu.sh` also
requires `samply` (`cargo install samply`). Build commands use
`GGML_NATIVE=OFF` to work around the Apple Silicon whisper-rs/llama.cpp NEON
fp16 build issue.
+
+## Further reading
+
+- [`docs/library-benchmarking.md`](../../docs/library-benchmarking.md) and [`docs/library-minimal-recipe.md`](../../docs/library-minimal-recipe.md), the methodology behind these scripts.
+- [Performance and footprint](../../gitbooks/developing/performance.md) for the published numbers and [Embedding OpenHuman](../../gitbooks/developing/embedding.md) for the library these scripts measure.
+- [`crates/openhuman-embed/`](../../crates/openhuman-embed/README.md), the facade the scenarios drive.
+- The public [openhuman-benchmarks](https://github.com/tinyhumansai/openhuman-benchmarks) repo.