Skip to content

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

feat(skills): add ranked skill search tool

Steven Enamakelaaa6072c8f57
diff --git a/src/openhuman/skills/tools.rs b/src/openhuman/skills/tools.rs
index 0102f837e7..046ec5d7db 100644
--- a/src/openhuman/skills/tools.rs
+++ b/src/openhuman/skills/tools.rs
@@ -58,7 +58,7 @@ fn read_workflow_id(args: &serde_json::Value) -> anyhow::Result<String> {
type SkillAllowlist = Option<std::collections::HashSet<String>>;
/// Whether `dir_name` passes the optional per-profile skill allowlist.
-fn skill_allowed(allowlist: &SkillAllowlist, dir_name: &str) -> bool {
+pub(super) fn skill_allowed(allowlist: &SkillAllowlist, dir_name: &str) -> bool {
match allowlist {
None => true,
Some(set) => set.contains(dir_name),
diff --git a/src/openhuman/tools/ops.rs b/src/openhuman/tools/ops.rs
index 74874d1779..6810cb4bbc 100644
--- a/src/openhuman/tools/ops.rs
+++ b/src/openhuman/tools/ops.rs
@@ -540,6 +540,17 @@ pub fn all_tools_with_runtime(
.with_skill_allowlist(skill_allowlist.cloned())
.with_profile_skills_root(profile_skills_root.map(|p| p.to_path_buf())),
),
+ // Ranked lookup over the same corpus `list_workflows` lists, with the
+ // same profile scoping. It exists because that list grows — bundled
+ // skills ship in the binary and a catalogue install is one call away —
+ // and neither the prompt catalogue nor a full `list_workflows` dump
+ // scales with it. See `skills::search`.
+ #[cfg(feature = "skills")]
+ Box::new(
+ crate::openhuman::skills::search::SkillSearchTool::new(config.clone())
+ .with_skill_allowlist(skill_allowlist.cloned())
+ .with_profile_skills_root(profile_skills_root.map(|p| p.to_path_buf())),
+ ),
// Skill registry tools — browse/search/install from remote registries.
// Browse and search are read-only (default-ON); install is a write
// operation (fetches remote content and writes to disk).