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(memory): one-shot doctor runner example
Shanuf8d009f42a5d
diff --git a/examples/run_memory_doctor.rs b/examples/run_memory_doctor.rsnew file mode 100644index 0000000000..66943d60ad--- /dev/null+++ b/examples/run_memory_doctor.rs@@ -0,0 +1,20 @@+//! One-shot memory doctor over a real workspace, for operator use:+//! OPENHUMAN_WORKSPACE=<workspace> cargo run --example run_memory_doctor++#[tokio::main(flavor = "multi_thread")]+async fn main() -> anyhow::Result<()> {+ let mut config = openhuman_core::openhuman::config::Config::load_or_init()+ .await+ .unwrap_or_default();+ config.apply_env_overrides();++ openhuman_core::openhuman::memory::host::install_memory_event_sink();+ #[cfg(feature = "modules")]+ openhuman_core::openhuman::modules::memory::set_modules_policy(std::sync::Arc::new(+ config.clone(),+ ));++ let report = openhuman_core::openhuman::memory::tree::health::report::run_doctor(&config).await;+ println!("{}", serde_json::to_string_pretty(&report)?);+ Ok(())+}