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(harness_init): add Kompress/torch provisioning step
Steven Enamakel6d9ce404c698
diff --git a/crates/openhuman-core/src/agent/harness_init/mod.rs b/crates/openhuman-core/src/agent/harness_init/mod.rsindex a394e562e8..ffa773061c 100644--- a/crates/openhuman-core/src/agent/harness_init/mod.rs+++ b/crates/openhuman-core/src/agent/harness_init/mod.rs@@ -1,7 +1,8 @@//! `harness_init` — first-class orchestration of one-time, first-run setup.//!//! On a fresh install several provisioning steps (managed Python runtime,-//! spaCy + model, managed Node runtime) used to run lazily on first use, with+//! spaCy + model, Kompress/torch, managed Node runtime) used to run lazily on+//! first use, with//! no user-visible feedback. This domain runs them eagerly at core startup//! (spawned non-blocking after the RPC server is ready), tracks per-step//! progress in an in-memory snapshot, and exposes it over@@ -9,8 +10,9 @@//! frontend initialization screen.//!//! Steps delegate to the existing idempotent provisioning code-//! (`runtime_python`, `memory_tree::nlp`, `runtime_node`) — this module-//! orchestrates and reports, it does not reimplement downloads.+//! (`crate::runtime::python`, `crate::runtime::python_server` for spaCy and+//! Kompress, `crate::runtime::node`) — this module orchestrates and reports,+//! it does not reimplement downloads.pub mod bus;pub mod ops;diff --git a/crates/openhuman-core/src/agent/harness_init/ops.rs b/crates/openhuman-core/src/agent/harness_init/ops.rsindex 535b54f8e7..4ada205b85 100644--- a/crates/openhuman-core/src/agent/harness_init/ops.rs+++ b/crates/openhuman-core/src/agent/harness_init/ops.rs@@ -1,7 +1,8 @@//! Harness-init orchestrator + RPC handlers.//!-//! `run_harness_init` is spawned (non-blocking) from `bootstrap_core_runtime`-//! after the core is RPC-ready, so the frontend can connect and watch progress.+//! `run_harness_init` is spawned (non-blocking) from+//! `core::runtime::services::start_boot_once_jobs` once the runtime enters+//! `serve()`, so the frontend can connect and watch progress.//! It walks the [`registry`] step list, marking each `Done` instantly when its//! cheap `is_done` probe passes, otherwise running it and recording the result.diff --git a/crates/openhuman-core/src/agent/harness_init/registry.rs b/crates/openhuman-core/src/agent/harness_init/registry.rsindex 015d67d634..73b597e927 100644--- a/crates/openhuman-core/src/agent/harness_init/registry.rs+++ b/crates/openhuman-core/src/agent/harness_init/registry.rs@@ -12,9 +12,14 @@//! 2. `spacy` — spaCy venv + `en_core_web_sm` model. Opt-in//! (`memory_tree.spacy_enabled`, default OFF) so a fresh install does not//! provision it — nor spawn the runtime Python server — on launch.-//! 3. `runtime_python_server` — long-running Python backend host. Derived:+//! 3. `kompress` — dedicated torch venv for the TokenJuice ML+//! compressor. Only when `tokenjuice.ml_compression_enabled` and spaCy is+//! off; with spaCy on, the server launch step installs torch into the+//! shared spaCy venv instead.+//! 4. `runtime_python_server` — long-running Python backend host. Derived://! launches only when `enabled_backends` is non-empty.-//! 4. `node_runtime` — managed Node.js (skills / MCP).+//! 5. `node_runtime` — managed Node.js (skills / MCP); absent when the+//! `runtime-node` feature is compiled out.//!//! Voice models (Piper) and Ollama stay lazy/opt-in and are//! intentionally NOT registered here; they can be added later as steps.