The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(life-scenarios): make benchmark agent available on both drivers
Steven Enamakel6d8b6cd04141
diff --git a/scripts/life-scenarios/run.mjs b/scripts/life-scenarios/run.mjsindex 9be9fe33d8..a35faac283 100644--- a/scripts/life-scenarios/run.mjs+++ b/scripts/life-scenarios/run.mjs@@ -59,9 +59,15 @@ function parseArgs(argv) {// `desktop` = channel_web_chat + SSE, exactly what the composer does.// `rpc` = inference_agent_chat, the only path with `cwd`/`agent_id`.driver: "desktop",- // Empty = the orchestrator, which is what the app uses. A named agent only- // takes effect on the `rpc` driver.- agentId: "",+ // The suite's benchmark agent (scripts/life-scenarios/agent-life-scenarios.toml):+ // 40 iterations and the named tool belt these multi-step scenarios need.+ // `--agent orchestrator` runs the unmodified shipping agent for comparison,+ // capped at the 15 iterations its own definition declares.+ //+ // This now takes effect on BOTH drivers: the rpc path passes it per call,+ // the desktop path gets it through `[agent] chat_agent_id` in the generated+ // config.+ agentId: "life_scenarios",model: process.env.LIFE_SCENARIO_MODEL || "deepseek/deepseek-v4.1-flash",inferenceUrl:process.env.LIFE_SCENARIO_INFERENCE_URL || "https://openrouter.ai/api/v1",@@ -211,7 +217,7 @@ function mintLocalSessionToken(userId) {* to have, and a benchmark that silently inherits those measures the machine* rather than the harness.*/-async function prepareHome(runDir) {+async function prepareHome(runDir, opts) {const home = path.join(runDir, "home");const oh = path.join(home, ".openhuman");await fsp.mkdir(path.join(oh, "agents"), { recursive: true });@@ -238,6 +244,15 @@ async function prepareHome(runDir) {'level = "supervised"',"workspace_only = false","",+ // The web-chat path (`channel_web_chat`, the desktop driver below) has no+ // per-call `agent_id` the way `inference_agent_chat` does, so this is how+ // it is pointed at the suite's benchmark agent. Without it that path runs+ // `orchestrator`, whose definition caps the turn at 15 iterations — and a+ // definition cap OVERWRITES `[agent] max_tool_iterations` rather than being+ // bounded by it, so no cap setting can substitute for choosing the agent.+ "[agent]",+ `chat_agent_id = "${opts.agentId}"`,+ "","[observability]","analytics_enabled = false","share_usage_data = false",@@ -257,8 +272,9 @@ async function prepareHome(runDir) {// root one, so the composio block has to exist in both.await fsp.writeFile(path.join(oh, "users", "local", "config.toml"), config);- // Only read by `--driver rpc --agent life_scenarios`; the desktop driver- // always runs the orchestrator, as the app does.+ // Read by both drivers now: the rpc path names it per call, the desktop path+ // selects it with `[agent] chat_agent_id` above. `--agent orchestrator` opts+ // back into the unmodified shipping agent.await fsp.copyFile(path.join(HERE, "agent-life-scenarios.toml"),path.join(oh, "agents", "life_scenarios.toml"),@@ -944,7 +960,7 @@ 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);+ const home = await prepareHome(runDir, opts);let composio = null;if (opts.mockComposio) {