Skip to content

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

chore: files changed crates/openhuman-cli/src/bin/library_profile/harness.rs,crates/openhuman-cli/sr

Steven Enamakel541b5abe7538
diff --git a/crates/openhuman-cli/src/bin/library_profile/harness.rs b/crates/openhuman-cli/src/bin/library_profile/harness.rs
index 3d8b10936b..e16402946b 100644
--- a/crates/openhuman-cli/src/bin/library_profile/harness.rs
+++ b/crates/openhuman-cli/src/bin/library_profile/harness.rs
@@ -114,7 +114,7 @@ pub struct ProfileResult {
pub budget: Option<FleetBudget>,
#[serde(skip_serializing_if = "Option::is_none")]
pub checkpoints: Option<Vec<Checkpoint>>,
- /// (`subagent-storm`) K parallel `agent_memory` subagents fanned out in the turn.
+ /// (`subagent-storm`) K parallel `vision_agent` subagents fanned out in the turn.
#[serde(skip_serializing_if = "Option::is_none")]
pub subagents: Option<usize>,
/// (`skill-run`) process-tree RSS including interpreter child processes.
diff --git a/crates/openhuman-cli/src/bin/library_profile/mock.rs b/crates/openhuman-cli/src/bin/library_profile/mock.rs
index 43daa15af8..7036399613 100644
--- a/crates/openhuman-cli/src/bin/library_profile/mock.rs
+++ b/crates/openhuman-cli/src/bin/library_profile/mock.rs
@@ -158,7 +158,7 @@ impl LatencyKnobs {
}
/// Orchestration mock: the first (orchestrator) turn emits a
-/// `spawn_parallel_agents` tool call fanning out to **K** `agent_memory` workers;
+/// `spawn_parallel_agents` tool call fanning out to **K** `vision_agent` workers;
/// each worker turn returns its finding; the final merge turn returns plain
/// text once all K findings are present.
///
@@ -200,7 +200,7 @@ impl SubagentMock {
(1..=self.width).all(|i| joined.contains(&finding_text(i)))
}
- /// True when this call is a real `agent_memory` worker turn: exactly one task
+ /// True when this call is a real `vision_agent` worker turn: exactly one task
/// marker is present and the executing agent is not the orchestrator (its
/// Tool Policy Boundary header names it, and its merge turn also carries
/// every marker). The memory agent's system
@@ -209,7 +209,7 @@ impl SubagentMock {
self.worker_index(joined).is_some() && !joined.contains("Agent: orchestrator")
}
- /// Build the fan-out tool call delegating to K parallel `agent_memory` workers. Only
+ /// Build the fan-out tool call delegating to K parallel `vision_agent` workers. Only
/// valid on an **orchestrator** turn — other agents have no
/// `spawn_parallel_agents` tool, so they `delegate_orchestrator` first.
fn spawn_call(&self) -> ChatResponse {
@@ -217,7 +217,7 @@ impl SubagentMock {
let tasks: Vec<serde_json::Value> = (1..=self.width)
.map(|i| {
serde_json::json!({
- "agent_id": "agent_memory",
+ "agent_id": "vision_agent",
// The nonce keeps each fan-out's tasks byte-distinct so the
// parallel-graph result cache can't short-circuit a re-spawn.
"prompt": format!("{} [spawn {nonce}]: inspect subsystem {i}", subagent_marker(i)),
@@ -239,7 +239,7 @@ impl SubagentMock {
}
/// A non-orchestrator parent's first turn: hand the task to the orchestrator (which
- /// owns `spawn_parallel_agents` and allows the `agent_memory` subagent).
+ /// owns `spawn_parallel_agents` and allows the `vision_agent` subagent).
fn delegate_orchestrator_call(&self) -> ChatResponse {
ChatResponse {
text: Some("Delegating to the orchestrator for a parallel research fan-out.".into()),
@@ -259,11 +259,11 @@ impl SubagentMock {
/// Classify the turn by the *executing agent* (from the Tool Policy Boundary
/// header) and script the delegation chain: orchestrator →
- /// `spawn_parallel_agents(K)` → K agent_memory workers → orchestrator merge.
+ /// `spawn_parallel_agents(K)` → K vision_agent workers → orchestrator merge.
/// No latency/recording here — the async `chat` wrappers handle sleeping +
/// latency capture around this.
fn reply(&self, joined: &str) -> ChatResponse {
- // agent_memory worker: return its finding.
+ // vision_agent worker: return its finding.
if self.is_worker_turn(joined) {
let i = self.worker_index(joined).expect("worker turn has a marker");
return response(&finding_text(i));
diff --git a/crates/openhuman-cli/src/bin/library_profile/scenarios/subagent_storm.rs b/crates/openhuman-cli/src/bin/library_profile/scenarios/subagent_storm.rs
index b529edc897..438c3843b6 100644
--- a/crates/openhuman-cli/src/bin/library_profile/scenarios/subagent_storm.rs
+++ b/crates/openhuman-cli/src/bin/library_profile/scenarios/subagent_storm.rs
@@ -1,6 +1,6 @@
//! `subagent-storm`: fuzz the *width* of delegation inside ONE core instance.
//!
-//! One orchestrator turn fans out to **K** parallel `agent_memory` subagents (all
+//! One orchestrator turn fans out to **K** parallel `vision_agent` subagents (all
//! in-process tokio tasks, not child processes) via `spawn_parallel_agents`.
//! K comes from `OPENHUMAN_PROFILE_SUBAGENTS` (default 8; tested up to 32), and
//! each worker carries per-subagent mock latency drawn from the shared
@@ -14,9 +14,9 @@
//! machinery is effectively one-shot per process. Once a fan-out's run ledger is
//! finalized, a second `spawn_parallel_agents` returns an empty result and the
//! orchestrator just re-calls the tool without re-running the workers. Worse,
-//! merely *constructing* an orchestrator/agent_memory agent beforehand perturbs
+//! merely *constructing* an orchestrator/vision_agent agent beforehand perturbs
//! the fan-out the same way. The only shape that reliably executes all K real
-//! agent_memory subagents is a single fan-out as the process's first agent
+//! vision_agent subagents is a single fan-out as the process's first agent
//! activity.
//!
//! So this scenario measures exactly that: one cold width-K fan-out. `retained_delta_kib`
@@ -30,10 +30,10 @@
//!
//! Reported fields: `subagents = K`, `marginal_rss_kib_per_agent` (retained/K,
//! upper bound), `checkpoints` (baseline → storm-turn-done), and
-//! `turn_latency_ms` (percentiles across the K agent_memory child executions).
-//! The workload asserts all K agent_memory subagents actually executed.
+//! `turn_latency_ms` (percentiles across the K vision_agent child executions).
+//! The workload asserts all K vision_agent subagents actually executed.
//!
-//! The worker is `agent_memory`: a read-only worker-tier agent with a small
+//! The worker is `vision_agent`: a read-only worker-tier agent with a small
//! memory tool surface, no spawn tools, and in the orchestrator's `[subagents] allowlist` —
//! the closest surviving fit for the retired `researcher` archetype this
//! scenario used to fan out to.
@@ -49,10 +49,10 @@ use crate::mock::{subagent_marker, SubagentMock};
const DEFAULT_SUBAGENTS: usize = 8;
/// The orchestrator's top-level task. The mock ignores the wording and always
-/// fans out to K agent_memory workers.
+/// fans out to K vision_agent workers.
const STORM_PROMPT: &str = "Research every subsystem in parallel and merge the findings.";
-/// Positive identity anchor for an agent_memory *worker* turn — its own
+/// Positive identity anchor for an vision_agent *worker* turn — its own
/// system prompt (`memory/agent/agent/prompt.md`) names it. Distinguishes a real worker
/// from the orchestrator turns that also echo every task marker in the fan-out
/// tool call / result.
@@ -106,8 +106,8 @@ pub async fn run() -> Result<ProfileResult> {
eprintln!("[library-profile] subagent-storm: width={width} — single cold width-K fan-out");
// We drive the `orchestrator` agent directly: it owns `spawn_parallel_agents`
- // and allows the `agent_memory` subagent. One orchestrator turn fans out to
- // K real agent_memory subagents via the parallel graph. This fan-out MUST be
+ // and allows the `vision_agent` subagent. One orchestrator turn fans out to
+ // K real vision_agent subagents via the parallel graph. This fan-out MUST be
// the process's first agent activity — see the module docs for why prewarming
// is not possible here.
let config = fixture.config.clone();
@@ -118,9 +118,9 @@ pub async fn run() -> Result<ProfileResult> {
let reply = agent.run_single(STORM_PROMPT).await?;
rec.checkpoint("storm-turn-done")?;
anyhow::ensure!(!reply.trim().is_empty(), "empty storm-turn response");
- // Every one of the K agent_memory subagents must have actually executed as
+ // Every one of the K vision_agent subagents must have actually executed as
// its own worker turn: for each i there must be a prompt that carries the
- // agent_memory identity anchor AND that worker's task marker — not
+ // vision_agent identity anchor AND that worker's task marker — not
// merely an orchestrator turn echoing every marker in the fan-out call.
let prompts = mock_for_workload.prompts.lock().expect("mock prompt lock");
for i in 1..=width {
@@ -128,7 +128,7 @@ pub async fn run() -> Result<ProfileResult> {
prompts
.iter()
.any(|p| p.contains(WORKER_IDENTITY) && p.contains(&subagent_marker(i))),
- "agent_memory subagent {i}/{width} never executed as its own worker turn"
+ "vision_agent subagent {i}/{width} never executed as its own worker turn"
);
}
Ok(())
diff --git a/docs/library-benchmarking.md b/docs/library-benchmarking.md
index 9e3c08a068..2329ebbc54 100644
--- a/docs/library-benchmarking.md
+++ b/docs/library-benchmarking.md
@@ -123,7 +123,7 @@ behavior, not linked code size.
| --- | --- |
| `OPENHUMAN_PROFILE_TURNS` | Turn count for `long-agent` (default 25). |
| `OPENHUMAN_PROFILE_PREWARM_SUBAGENTS=1` | Run one warm-up turn before measuring (`subagents`), isolating first-use cost from steady state. |
-| `OPENHUMAN_PROFILE_DISABLE_MEMORY_WRITES=1` | Disable `memory.auto_save` and episodic capture, isolating orchestration from persistence. |
+| `OPENHUMAN_PROFILE_DISABLE_MEMORY_WRITES=1` | Disable conversation memory (`[memory.conversations]`) and the `context.md` brief (`[memory.context]`), isolating orchestration from persistence. |
| `OPENHUMAN_PROFILE_FORCE_UTC=1` | Skip `iana_time_zone`/CoreFoundation timezone resolution. |
| `OPENHUMAN_PROFILE_HOLD_SECS` / `HOLD_BEFORE_SECS` | Pause the process at settled/baseline state for external inspection (`vmmap`, `heap`, `malloc_history`, Instruments). |
| `OPENHUMAN_PROFILE_DHAT_OUT` | Output path for dhat JSON (set by `library-heap.sh`). |
diff --git a/gitbooks/developing/architecture/tauri-shell.md b/gitbooks/developing/architecture/tauri-shell.md
index 302b43a72b..ff4bb08a4d 100644
--- a/gitbooks/developing/architecture/tauri-shell.md
+++ b/gitbooks/developing/architecture/tauri-shell.md
@@ -242,7 +242,6 @@ From **`workspace_paths.rs`** (closes `#1402`). These commands accept workspace-
| `open_workspace_path` | Open an existing workspace file or directory with the OS default app. |
| `reveal_workspace_path` | Reveal an existing workspace file or directory in the OS file manager. |
| `preview_workspace_text` | Read a capped UTF-8 text preview from an existing workspace file. |
-| `resolve_workspace_absolute_path` | Resolve a workspace-relative path to its validated absolute path. |
### Push-to-talk (PTT) hotkey + overlay