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 Enamakel15230a40501b
diff --git a/scripts/ci/README.md b/scripts/ci/README.md
index 577242e51b..1601e874d5 100644
--- a/scripts/ci/README.md
+++ b/scripts/ci/README.md
@@ -6,16 +6,16 @@ authoritative spec; this is an index so a CI failure log points somewhere.
| File | Checks |
| --- | --- |
-| `check-openhuman-rust-layout.mjs` (`pnpm rust:layout`) | Every file under `crates/openhuman-core/src` stays under a 750-line ceiling, warning (without failing) past 725; oversized files are pinned at their exact size in `LEGACY_LIMIT_ENTRIES`, once each, and a pinned file that shrinks must lower or drop its pin; forbids inline `#[cfg(test)] mod` blocks and `tests.rs`/`test.rs` filenames; and asserts every root `tests/*.rs` / `examples/*.rs` has a matching `[[test]]`/`[[example]]` entry in `crates/openhuman-core/Cargo.toml`. |
-| `check-feature-forwarding.mjs` | The Tauri shell (`crates/openhuman-app/Cargo.toml`, which sets `default-features = false`) forwards exactly the gates in `product-features.txt` — no more, no less — and the library chain that re-declares the core's gates (`openhuman-embed` → `openhuman-tinyhumans` → `openhuman-cli`) forwards every one of them, by target and not just by name. Logic lives in `scripts/lib/feature-forwarding.mjs` (openhuman#4919, openhuman#6364). |
-| `product-features.txt` / `product-features.sh` | Source of truth for the shipped desktop product's Cargo feature gates, distinct from `[features] default` (the contributor build). The `.sh` prints them comma-separated for `cargo --features "$(scripts/ci/product-features.sh)"`. |
-| `check-module-pins.mjs` + `module-pin-exemptions.json` | A loadable module's registry pin (`crates/openhuman-core/src/modules/registry.rs`) and its `vendor/*` submodule pin must describe the same release (openhuman#5727). The exemptions file records known, expected drift — not a way to silence the gate. Logic lives in `scripts/lib/module-pins.mjs`. |
-| `check-submodule-monotonic.mjs` | A `vendor/*` submodule pin may never move backwards onto a commit that is an ancestor of what the base branch already has. |
-| `check-toolchain-image.mjs` | The CI image's toolchain, the version-pinned `dtolnay/rust-toolchain@<version>` workflow steps, and `.github/Dockerfile` all match the channel pinned in `rust-toolchain.toml`. |
-| `rust-coverage.sh` | Runs the complete product-feature Rust suite under `cargo-llvm-cov`, including every core integration target and the root Rust support crates. |
-| `assert-coverage-presence.sh` + `coverage-presence-allowlist.txt` | Fails when an eligible Rust source file produced no lcov records at all, meaning the full product suite never compiled it (openhuman#5593). Allowlist entries must document, inline, which gate excludes the file and why that's intended. |
-| `list-feature-gated-rust-tests.mjs` | Prints every file under `crates/openhuman-core/src` that carries tests behind a product feature gate (`voice`, `media`, `web3`, `meet`, `mcp`, `skills`, `flows`, `channels`, `contacts`). `ci-lite.yml`'s `rust-feature-gate-smoke` job diffs the output against a checked-in EXPECTED list so a new gated test file forces the gate-contract test filters to be reviewed (#5022). |
-| `orch-ip-gate.sh` | Blocks the server-side orchestration "brain" (reasoning/wake graph, its prompts, per-agent model-selection metadata) from re-entering this open client repo. |
+| [`check-openhuman-rust-layout.mjs`](check-openhuman-rust-layout.mjs) (`pnpm rust:layout`) | Every file under `crates/openhuman-core/src` stays under a 750-line ceiling, warning (without failing) past 725; oversized files are pinned at their exact size in `LEGACY_LIMIT_ENTRIES`, once each, and a pinned file that shrinks must lower or drop its pin; forbids inline `#[cfg(test)] mod` blocks and `tests.rs`/`test.rs` filenames; and asserts every root `tests/*.rs` / `examples/*.rs` has a matching `[[test]]`/`[[example]]` entry in `crates/openhuman-core/Cargo.toml`. |
+| [`check-feature-forwarding.mjs`](check-feature-forwarding.mjs) | The Tauri shell ([`crates/openhuman-app/Cargo.toml`](../../crates/openhuman-app/Cargo.toml), which sets `default-features = false`) forwards exactly the gates in `product-features.txt`, no more, no less, and the library chain that re-declares the core's gates (`openhuman-embed` → `openhuman-tinyhumans` → `openhuman-cli`) forwards every one of them, by target and not just by name. Logic lives in [`scripts/lib/feature-forwarding.mjs`](../lib/feature-forwarding.mjs) (openhuman#4919, openhuman#6364). |
+| [`product-features.txt`](product-features.txt) / `product-features.sh` | Source of truth for the shipped desktop product's Cargo feature gates, distinct from `[features] default` (the contributor build). The `.sh` prints them comma-separated for `cargo --features "$(scripts/ci/product-features.sh)"`. |
+| [`check-module-pins.mjs`](check-module-pins.mjs) + `module-pin-exemptions.json` | A loadable module's registry pin ([`crates/openhuman-core/src/modules/registry.rs`](../../crates/openhuman-core/src/modules/registry.rs)) and its `vendor/*` submodule pin must describe the same release (openhuman#5727). The exemptions file records known, expected drift, not a way to silence the gate. Logic lives in [`scripts/lib/module-pins.mjs`](../lib/module-pins.mjs). |
+| [`check-submodule-monotonic.mjs`](check-submodule-monotonic.mjs) | A `vendor/*` submodule pin may never move backwards onto a commit that is an ancestor of what the base branch already has. |
+| [`check-toolchain-image.mjs`](check-toolchain-image.mjs) | The CI image's toolchain, the version-pinned `dtolnay/rust-toolchain@<version>` workflow steps, and [`.github/Dockerfile`](../../.github/Dockerfile) all match the channel pinned in [`rust-toolchain.toml`](../../rust-toolchain.toml). |
+| [`rust-coverage.sh`](rust-coverage.sh) | Runs the complete product-feature Rust suite under `cargo-llvm-cov`, including every core integration target and the root Rust support crates. |
+| [`assert-coverage-presence.sh`](assert-coverage-presence.sh) + `coverage-presence-allowlist.txt` | Fails when an eligible Rust source file produced no lcov records at all, meaning the full product suite never compiled it (openhuman#5593). Allowlist entries must document, inline, which gate excludes the file and why that's intended. |
+| [`list-feature-gated-rust-tests.mjs`](list-feature-gated-rust-tests.mjs) | Prints every file under `crates/openhuman-core/src` that carries tests behind a product feature gate (`voice`, `media`, `web3`, `meet`, `mcp`, `skills`, `flows`, `channels`, `contacts`). `ci-lite.yml`'s `rust-feature-gate-smoke` job diffs the output against a checked-in EXPECTED list so a new gated test file forces the gate-contract test filters to be reviewed (#5022). |
+| [`orch-ip-gate.sh`](orch-ip-gate.sh) | Blocks the server-side orchestration "brain" (reasoning/wake graph, its prompts, per-agent model-selection metadata) from re-entering this open client repo. |
The complete Rust and frontend coverage suites feed the PR CI Gate's
changed-line diff-cover check (>= 80%) in `ci-lite.yml`.
@@ -32,4 +32,11 @@ call any of them, and only reaches `product-features.sh` indirectly through
invocation and any required environment.
Long-running CI commands (the coverage lanes) go through
-`scripts/ci-cancel-aware.sh`, which lives directly under `scripts/`, not here.
+[`scripts/ci-cancel-aware.sh`](../ci-cancel-aware.sh), which lives directly under `scripts/`, not here.
+
+## Further reading
+
+- [`scripts/README.md`](../README.md), the map of the rest of `scripts/`.
+- [Testing strategy](../../gitbooks/developing/testing-strategy.md) for how the coverage gate fits the test layers.
+- [Loadable modules](../../gitbooks/developing/loadable-modules.md), which the module-pin gates protect.
+- [`AGENTS.md`](../../AGENTS.md) for the layout and feature-forwarding rules these scripts enforce.
diff --git a/scripts/debug/README.md b/scripts/debug/README.md
index cb9d76811a..3e7ed02240 100644
--- a/scripts/debug/README.md
+++ b/scripts/debug/README.md
@@ -8,6 +8,8 @@ Use `--verbose` on any runner to also stream the raw output.
## Usage
+The runners are [`unit.sh`](./unit.sh), [`e2e.sh`](./e2e.sh), [`rust.sh`](./rust.sh) and [`logs.sh`](./logs.sh), dispatched by [`cli.sh`](./cli.sh).
+
```sh
# Vitest
pnpm debug unit # full suite
@@ -31,7 +33,7 @@ pnpm debug logs last --tail 100
```
Logs land in `target/debug-logs/<kind>-<suffix>-<timestamp>.log`. The directory
-is created on demand and is safe to delete — nothing else writes there.
+is created on demand and is safe to delete, nothing else writes there.
## Browser scenarios (`pnpm debug web`)
@@ -41,8 +43,8 @@ pnpm debug web --script scripts/debug/web-scripts/stop-mid-turn.mjs
pnpm debug web --script my-scenario.mjs --keep # leave the stack up afterwards
```
-`web-ui.mjs` starts the shared mock backend in-process, a fresh
-`openhuman-core serve` (built if missing) on a scratch workspace, and Vite with
+[`web-ui.mjs`](./web-ui.mjs) starts the shared mock backend ([`scripts/mock-api-server.mjs`](../mock-api-server.mjs)) in-process, a fresh
+[`openhuman-core serve`](../../crates/openhuman-cli/README.md) (built if missing) on a scratch workspace, and Vite with
`OPENHUMAN_VITE_NO_WATCH=1` (no file watcher or HMR, so it survives a host whose
inotify watch limit is used up). It opens the SPA in Playwright Chromium through
`/__dev-connect` and signs in through the real GitHub button: the mock answers
@@ -51,19 +53,26 @@ inotify watch limit is used up). It opens the SPA in Playwright Chromium through
A scenario is an ES module whose default export receives
`{ page, context, browser, mock, rpc, urls, logDir, screenshot, log }`.
`mock.set(key, value)` sets a mock behavior (`llmStreamScript` scripts the LLM
-stream, see `scripts/mock-api/routes/llm.mjs`), `rpc(method, params)` calls the
+stream, see [`scripts/mock-api/routes/llm.mjs`](../mock-api/routes/llm.mjs)), `rpc(method, params)` calls the
core, and `screenshot(name)` saves into the run's artifact directory
(`target/debug-logs/web-<ts>/`: `core.log`, `vite.log`, `browser.log`,
screenshots, the scratch workspace). A thrown error saves `failure.png`.
## Why
-- **Filtering** — positional pattern + `-t "<name>"` for Vitest, single spec
+- **Filtering**: positional pattern + `-t "<name>"` for Vitest, single spec
for WDIO; agents don't have to grep the whole tree on every change.
-- **Bounded output** — the default summary fits in agent context. Full output
+- **Bounded output**: the default summary fits in agent context. Full output
is one `pnpm debug logs last` away.
-- **Stable surface** — the runners' flags can churn; this wrapper keeps the
+- **Stable surface**: the runners' flags can churn; this wrapper keeps the
contract small (positional + a couple of flags) so prompts don't break.
-The wrappers don't replace the project test runners — they invoke the
+The wrappers don't replace the project test runners, they invoke the
underlying tools/scripts with log capture.
+
+## Related tools
+
+- [`capture-first-inference.mjs`](./capture-first-inference.mjs) and [`prompt-breakdown.mjs`](./prompt-breakdown.mjs), the inference capture proxy and prompt pricer described in [`AGENTS.md`](../../AGENTS.md).
+- [`web-scripts/`](./web-scripts) holds example scenarios for `pnpm debug web`.
+- [Testing strategy](../../gitbooks/developing/testing-strategy.md), [E2E testing](../../gitbooks/developing/e2e-testing.md) and [Agent observability](../../gitbooks/developing/agent-observability.md).
+- [`scripts/README.md`](../README.md) and [`tests/README.md`](../../tests/README.md).
diff --git a/scripts/rabbit/README.md b/scripts/rabbit/README.md
index 9f4beee0b5..3a568bb3e6 100644
--- a/scripts/rabbit/README.md
+++ b/scripts/rabbit/README.md
@@ -1,9 +1,9 @@
# scripts/rabbit
-Auto-retrigger CodeRabbit reviews on PRs whose rate-limit window has elapsed.
+Auto-retrigger [CodeRabbit](https://coderabbit.ai) reviews on PRs whose rate-limit window has elapsed.
CodeRabbit (Pro) reviews **5 PRs/hr** per developer. When you push a flurry of
-commits across several PRs, CR posts a "Rate limit exceeded — please wait
+commits across several PRs, CR posts a "Rate limit exceeded, please wait
N minutes" comment instead of reviewing. Once the wait elapses you have to
manually comment `@coderabbitai review` on each PR. This script does that pass
for you.
@@ -39,5 +39,11 @@ For each open PR:
## Config
-- `RABBIT_REPO=owner/name` — override target repo (default: `upstream` remote).
+- `RABBIT_REPO=owner/name`, override target repo (default: `upstream` remote).
- Requires `gh` and `node`.
+
+## See also
+
+- [`scripts/shortcuts/review/`](../shortcuts/review/README.md), the PR review workflow this pairs with.
+- [`scripts/README.md`](../README.md) for the rest of the tooling.
+- [`CONTRIBUTING.md`](../../CONTRIBUTING.md) for the PR process.
diff --git a/scripts/shortcuts/README.md b/scripts/shortcuts/README.md
index 11ead1ab43..e28d1d076d 100644
--- a/scripts/shortcuts/README.md
+++ b/scripts/shortcuts/README.md
@@ -1,17 +1,17 @@
# scripts/shortcuts
-Workflow shortcuts — high-level pnpm commands that orchestrate routine
+Workflow shortcuts, high-level pnpm commands that orchestrate routine
contributor tasks (picking up an issue, reviewing a PR, applying fixes,
merging, resetting the workspace). Each lives in its own subdirectory with
its own README and prompt templates.
| Shortcut | pnpm command | What it does |
| -------------- | -------------------- | ---------------------------------------------------------------------------- |
-| `review/` | `pnpm review` | Sync a PR locally and drive review / fix / coverage / merge via an LLM CLI. |
-| `work/` | `pnpm work` | Pick up a GitHub issue, cut a branch, hand off to an LLM CLI. |
-| `ws-reset.sh` | `pnpm reset` | Hard-reset local `main` to `upstream/main` and refresh submodules. |
+| [`review/`](review/README.md) | `pnpm review` | Sync a PR locally and drive review / fix / coverage / merge via an LLM CLI. |
+| [`work/`](work/README.md) | `pnpm work` | Pick up a GitHub issue, cut a branch, hand off to an LLM CLI. |
+| [`ws-reset.sh`](ws-reset.sh) | `pnpm reset` | Hard-reset local `main` to `upstream/main` and refresh submodules. |
-All shortcuts share `review/lib.sh` for repo resolution, PR sync, and the
+All shortcuts share [`review/lib.sh`](review/lib.sh) for repo resolution, PR sync, and the
colored `pass/fail/warn/info` helpers.
## Design
@@ -21,5 +21,11 @@ Each shortcut's agent prompt lives in a Markdown template
`__ISSUE__`, etc.). The shell wrapper handles repo state (git fetch /
checkout / merge), substitutes placeholders via `awk`, and hands the final
prompt to the chosen LLM CLI (`--agent`, default `claude`). This keeps the
-workflow **agent-agnostic** — works with `codex`, `gemini`, `cursor-agent`,
+workflow **agent-agnostic**: works with `codex`, `gemini`, `cursor-agent`,
or any CLI that accepts a single positional prompt argument.
+
+## See also
+
+- [`scripts/README.md`](../README.md) for the rest of the tooling.
+- [`CONTRIBUTING.md`](../../CONTRIBUTING.md) and [`AGENTS.md`](../../AGENTS.md), the conventions the prompt templates point agents at.
+- [`scripts/rabbit/`](../rabbit/README.md) and [`scripts/test-planning/`](../test-planning/README.md), sibling PR and test tooling.
diff --git a/scripts/shortcuts/review/README.md b/scripts/shortcuts/review/README.md
index fa06e75280..5c3b71af23 100644
--- a/scripts/shortcuts/review/README.md
+++ b/scripts/shortcuts/review/README.md
@@ -1,15 +1,15 @@
# scripts/shortcuts/review
-Helpers for working through PRs on this repo. Runnable directly — no zshrc
+Helpers for working through PRs on this repo (part of [`scripts/shortcuts/`](../README.md); the sibling is [`work/`](../work/README.md)). Runnable directly, no zshrc
integration needed.
| Script | What it does |
| ------------ | --------------------------------------------------------------------------------- |
-| `sync.sh` | Fetch PR head, check out as `pr/<num>`, merge `main`, wire push/upstream. |
-| `review.sh` | `sync` + hand off to the `pr-reviewer` agent to review, comment, and approve. |
-| `fix.sh` | `sync` + `pr-reviewer` (apply fixes) + `pr-manager-lite` (commit & push). |
-| `coverage.sh`| `sync` + gather coverage CI context + agent to fix coverage, push, babysit checks.|
-| `merge.sh` | LLM-summarized squash body + filtered Co-authored-by trailers + `gh pr merge`. |
+| [`sync.sh`](./sync.sh) | Fetch PR head, check out as `pr/<num>`, merge `main`, wire push/upstream. |
+| [`review.sh`](./review.sh) | `sync` + hand off to the `pr-reviewer` agent to review, comment, and approve. |
+| [`fix.sh`](./fix.sh) | `sync` + `pr-reviewer` (apply fixes) + `pr-manager-lite` (commit & push). |
+| [`coverage.sh`](./coverage.sh)| `sync` + gather coverage CI context + agent to fix coverage, push, babysit checks.|
+| [`merge.sh`](./merge.sh) | LLM-summarized squash body + filtered Co-authored-by trailers + `gh pr merge`. |
## LLM flags
@@ -55,6 +55,12 @@ scripts/shortcuts/review/merge.sh 123
`Co-authored-by:` entries (default filters copilot / codex / cursor / claude /
anthropic / openai / chatgpt / `[bot]` / `noreply@github` /
`users.noreply.github.com`; matched case-insensitively on name or email).
+- Shared helpers live in [`lib.sh`](./lib.sh) and the agent prompt templates in [`prompts/`](./prompts).
- Requires `git`, `gh`, `jq`. `review` / `fix` / `coverage` also require the
agent CLI (default `claude`); `merge` also requires the summary LLM CLI
(default `gemini`) unless `--summary-llm none`.
+
+## See also
+
+- [`scripts/rabbit/`](../../rabbit/README.md), which retriggers CodeRabbit reviews on rate-limited PRs.
+- [`CONTRIBUTING.md`](../../../CONTRIBUTING.md) for the PR process these scripts automate.
diff --git a/scripts/shortcuts/work/README.md b/scripts/shortcuts/work/README.md
index 4279a960e9..e824f635c9 100644
--- a/scripts/shortcuts/work/README.md
+++ b/scripts/shortcuts/work/README.md
@@ -3,8 +3,8 @@
Automate picking up a GitHub issue: sync `main`, cut a working branch, and
hand the issue off to an LLM CLI to start implementing.
-Mirrors the structure of [`scripts/shortcuts/review`](../review) and reuses
-its `lib.sh` helpers.
+Mirrors the structure of [`scripts/shortcuts/review`](../review/README.md) and reuses
+its [`lib.sh`](../review/lib.sh) helpers. The entry point is [`start.sh`](./start.sh), with prompt templates in [`prompts/`](./prompts).
## Usage
@@ -29,7 +29,7 @@ and `pnpm work start 1234 …` are equivalent.
max 40 chars). If the branch already exists it's checked out and `main`
is merged in.
4. Hands off to the agent CLI with a prompt containing the issue body,
- repo conventions pointers (CLAUDE.md / AGENTS.md), and any trailing
+ repo conventions pointers ([CLAUDE.md](../../../CLAUDE.md) / [AGENTS.md](../../../AGENTS.md)), and any trailing
`extra-prompt`. For `--agent codex`, the handoff uses
`codex exec --dangerously-bypass-approvals-and-sandbox`. For
`--agent cursor` or `--agent cursor-agent`, it uses
@@ -40,8 +40,13 @@ as soon as work starts.
## Config
-- `WORK_REPO=owner/name` — override the target repo.
-- `WORK_BRANCH_PREFIX=issue` — branch is `<prefix>/<num>-<slug>`.
-- `WORK_AUTO_ASSIGN=1` — auto-assign the issue to `@me` when work starts. Set
+- `WORK_REPO=owner/name`, override the target repo.
+- `WORK_BRANCH_PREFIX=issue`, branch is `<prefix>/<num>-<slug>`.
+- `WORK_AUTO_ASSIGN=1`, auto-assign the issue to `@me` when work starts. Set
to `0` to disable.
- Requires `git`, `gh`, `jq`, plus the agent CLI (default `claude`).
+
+## See also
+
+- [`scripts/shortcuts/`](../README.md) for the full shortcut table.
+- [`CONTRIBUTING.md`](../../../CONTRIBUTING.md) for the branch and PR conventions.
diff --git a/scripts/test-planning/README.md b/scripts/test-planning/README.md
index 04a8f2df35..5d32b99e91 100644
--- a/scripts/test-planning/README.md
+++ b/scripts/test-planning/README.md
@@ -33,8 +33,14 @@ pnpm test:plan -- \
## Notes
-- Default repo is `tinyhumansai/openhuman`.
+- Default repo is [`tinyhumansai/openhuman`](https://github.com/tinyhumansai/openhuman).
- Requires `gh auth status` to be healthy.
- Default synthesizer is `codex`; `--llm claude` is also supported.
- The Markdown output is intentionally compressed. The JSONL is the better input
if you want to do a second dedupe or planning pass later.
+
+## See also
+
+- [Testing strategy](../../gitbooks/developing/testing-strategy.md), where the backlog items land.
+- [`docs/TEST-COVERAGE-MATRIX.md`](../../docs/TEST-COVERAGE-MATRIX.md) and [`tests/README.md`](../../tests/README.md).
+- [`scripts/README.md`](../README.md).