Skip to content

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

chore(examples): bound linux fleet smoke run in debug builds

Steven Enamakel35fc00589201
diff --git a/crates/openhuman-embed/examples/linux_fleet.rs b/crates/openhuman-embed/examples/linux_fleet.rs
index e643514941..2723287e27 100644
--- a/crates/openhuman-embed/examples/linux_fleet.rs
+++ b/crates/openhuman-embed/examples/linux_fleet.rs
@@ -30,9 +30,12 @@ fn rss_kib() -> anyhow::Result<u64> {
// ANCHOR: linux-fleet
fn main() -> anyhow::Result<()> {
+ // Keep the dev-profile documentation/CI smoke bounded; release runs retain
+ // the 100-agent measurement unless the caller supplies an explicit count.
+ let default_count = if cfg!(debug_assertions) { "2" } else { "100" };
let count: usize = std::env::args()
.nth(1)
- .unwrap_or_else(|| "100".into())
+ .unwrap_or_else(|| default_count.into())
.parse()?;
anyhow::ensure!(count > 0, "agent count must be positive");
openhuman_embed::process::tokio_runtime_builder()