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 life-scenarios-cache

Steven Enamakel783081459c50
diff --cc scripts/life-scenarios/run.mjs
index 17b86b1ef7,53b7dfc5c0..f0459ce22d
--- a/scripts/life-scenarios/run.mjs
+++ b/scripts/life-scenarios/run.mjs
@@@ -217,7 -215,7 +221,7 @@@ function mintLocalSessionToken(userId)
* to have, and a benchmark that silently inherits those measures the machine
* rather than the harness.
*/
- async function prepareHome(runDir, opts) {
-async function prepareHome(runDir, { searchBase } = {}) {
++async function prepareHome(runDir, opts, { searchBase } = {}) {
const home = path.join(runDir, "home");
const oh = path.join(home, ".openhuman");
await fsp.mkdir(path.join(oh, "agents"), { recursive: true });
@@@ -960,7 -967,19 +983,21 @@@ async function main()
console.log(`run dir : ${runDir}`);
console.log(`driver : ${opts.driver}${opts.agentId ? ` agent=${opts.agentId}` : " agent=orchestrator"}`);
- const home = await prepareHome(runDir, opts);
+ let search = null;
+ if (opts.mockSearch) {
+ search = await startMockSearch({
+ indexPath: DEFAULT_INDEX_PATH,
+ requestsPath: path.join(runDir, "search-requests.json"),
+ port: opts.searchPort,
+ });
+ console.log(
+ `search : mock at ${search.url} (${search.ctx.documents.length} documents)`,
+ );
+ }
+
- const home = await prepareHome(runDir, { searchBase: search ? search.url : "" });
++ const home = await prepareHome(runDir, opts, {
++ searchBase: search ? search.url : "",
++ });
let composio = null;
if (opts.mockComposio) {