Skip to content

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

chore: files changed src/openhuman/agent/registry/agents/orchestrator/prompt.rs,src/openhuman/flows/

Steven Enamakel40425a4ea232
diff --git a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
index e3208a4029..170ae3203d 100644
--- a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
+++ b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
@@ -441,6 +441,47 @@ mod tests {
use crate::openhuman::agent::context::prompt::{LearnedContextData, ToolCallFormat};
use std::collections::HashSet;
+ #[test]
+ fn the_catalogue_is_capped_and_points_at_search_for_the_rest() {
+ // The cost this cap exists to bound is per-turn and frozen for the
+ // session, so it grows silently with an install and nothing else in the
+ // build measures it.
+ let many: Vec<Workflow> = (0..MAX_LISTED_SKILLS + 7)
+ .map(|i| Workflow {
+ dir_name: format!("skill-{i:02}"),
+ description: format!("does thing {i}"),
+ ..Default::default()
+ })
+ .collect();
+ let rendered = render_installed_skills(&many);
+ assert!(rendered.contains("skill-00"));
+ assert!(
+ !rendered.contains("skill-25"),
+ "the catalogue must stop at the cap"
+ );
+ assert!(
+ rendered.contains("7 more installed skill(s)"),
+ "the reader must be told how many are missing: {rendered}"
+ );
+ assert!(
+ rendered.contains("skill_search"),
+ "and how to reach them"
+ );
+ }
+
+ #[test]
+ fn an_uncapped_catalogue_says_nothing_about_hidden_skills() {
+ // The other half: below the cap nothing changes for existing users, so
+ // this is not a trim of a cost that already hurts.
+ let few = vec![Workflow {
+ dir_name: "only-one".into(),
+ description: "does a thing".into(),
+ ..Default::default()
+ }];
+ let rendered = render_installed_skills(&few);
+ assert!(!rendered.contains("more installed skill(s)"));
+ }
+
#[test]
fn render_installed_skills_lists_skills_and_steers_to_run_skill() {
let skills = vec![
diff --git a/src/openhuman/flows/agents/workflow_builder/agent.toml b/src/openhuman/flows/agents/workflow_builder/agent.toml
index 46e081c368..0e3ce1eb8c 100644
--- a/src/openhuman/flows/agents/workflow_builder/agent.toml
+++ b/src/openhuman/flows/agents/workflow_builder/agent.toml
@@ -75,7 +75,14 @@ hint = "reasoning"
# could only ever reach `memory_recall` — leaving the guidance's "keyword
# lookups" half unsatisfiable. `memory_hybrid_search`'s `lexical` mode is
# the real keyword-heavy retrieval this agent needs; both stay READ-ONLY.
+# `read_workflow_resource` fetches a page of the `flow-authoring` builtin skill
+# — the reference manual this agent's prompt points at (expression syntax, node
+# config, graph shape, reading a dry run). That text used to be ~25 KB of the
+# standing prompt, paid on every turn including the ones that wire two nodes
+# together; as a skill it is read when it is needed. READ-ONLY, and scoped by
+# discovery to installed bundles.
named = [
+ "read_workflow_resource",
"propose_workflow",
"revise_workflow",
"edit_workflow",