Skip to content

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

feat(skills): add bundled skills discovery

Steven Enamakelb751983f95e9
diff --git a/crates/openhuman-core/src/platform/about_app/ops.rs b/crates/openhuman-core/src/platform/about_app/ops.rs
index 0f4ece111c..409cc42bec 100644
--- a/crates/openhuman-core/src/platform/about_app/ops.rs
+++ b/crates/openhuman-core/src/platform/about_app/ops.rs
@@ -11,6 +11,7 @@ use crate::core::runtime::ComponentSet;
pub fn component_for_domain(domain: &str) -> Option<&'static str> {
Some(match domain {
"flows" | "workflow_runs" => "flows",
+ "skills" => "skills",
"memory" => "memory",
"channels" => "channels",
"voice" => "voice",
diff --git a/crates/openhuman-core/src/skills/bundled/mod.rs b/crates/openhuman-core/src/skills/bundled/mod.rs
index 784856e508..d32824ada2 100644
--- a/crates/openhuman-core/src/skills/bundled/mod.rs
+++ b/crates/openhuman-core/src/skills/bundled/mod.rs
@@ -49,6 +49,10 @@ pub fn install(workspace_dir: &Path) -> InstallReport {
/// Boot entry point used by runtime composition.
pub fn install_bundled_skills(workspace_dir: &Path) {
+ if !crate::skills::skills_component_enabled() {
+ tracing::debug!("[skills][bundled] install skipped ([components] skills off)");
+ return;
+ }
let _ = install(workspace_dir);
}
diff --git a/crates/openhuman-core/src/skills/mod.rs b/crates/openhuman-core/src/skills/mod.rs
index 4a8aca415c..cdcd1f5ad0 100644
--- a/crates/openhuman-core/src/skills/mod.rs
+++ b/crates/openhuman-core/src/skills/mod.rs
@@ -27,6 +27,13 @@ pub mod ops_types;
// outright: it has always-compiled callers in `crates/openhuman-core/src/core/` and is not part of
// the `skills` gate at all.
pub mod catalog;
+
+/// Whether the ambient context has the `skills` component on. No ambient
+/// context (a bare library call) counts as on.
+#[must_use]
+pub fn skills_component_enabled() -> bool {
+ crate::core::runtime::CoreContext::current().is_none_or(|ctx| ctx.components().skills)
+}
pub mod runtime;
pub mod webhooks;
diff --git a/crates/openhuman-core/src/skills/ops_discover/api.rs b/crates/openhuman-core/src/skills/ops_discover/api.rs
index 83c7fb553b..7709fd1e7b 100644
--- a/crates/openhuman-core/src/skills/ops_discover/api.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/api.rs
@@ -90,6 +90,10 @@ pub fn discovery_home_dir() -> Option<PathBuf> {
// keep until v0.66 (review after 2027-01-11): this is the cached, ambient-user
// discovery entry point; discover_workflows alone omits those host semantics.
pub fn load_workflow_metadata(workspace_dir: &Path) -> Vec<Workflow> {
+ if !crate::skills::skills_component_enabled() {
+ log::debug!("[skills][discover] load_workflow_metadata -> [] ([components] skills off)");
+ return Vec::new();
+ }
let trusted = is_workspace_trusted(workspace_dir);
let home = discovery_home_dir();
let key = (