Skip to content

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

refactor(core): update agent id names and tool references

Steven Enamakel1a903a2792f5
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors/registry.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors/registry.rs
index 805cd25250..5198e1cfb4 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors/registry.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors/registry.rs
@@ -14,7 +14,7 @@ impl OpenHumanSessionHost {
}
/// The agent definition id this session is running
- /// (`"welcome"`, `"orchestrator"`, `"planner"`, …).
+ /// (`"welcome"`, `"orchestrator"`, `"workflow_builder"`, …).
///
/// Exposed so callers that build sessions via
/// [`OpenHumanSessionHost::from_config_for_agent`] can stamp the resolved id onto
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
index 053c85d82c..bedf8df677 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
@@ -38,7 +38,7 @@ pub(crate) fn subagent_prompt_protocol(
/// Matches TinyAgents' spawn-tool list, the host's `delegate` and
/// `continue_subagent` tools, and every synthesised per-archetype `delegate_*` tool
/// ([`crate::tools::orchestrator_tools::collect_orchestrator_tools`]
-/// emits `delegate_code_executor`, `delegate_planner`, …).
+/// emits tools for each configured delegation target).
///
/// The shared static names stay aligned with TinyAgents; registry lookup is
/// needed only for host-defined, unprefixed `delegate_name` overrides.
@@ -299,7 +299,7 @@ pub(super) fn load_prompt_source(
// file write — so we re-use that scaffolding by reading from
// `<workspace>/<filename>` after the parent agent has
// bootstrapped its workspace files. For sub-agent
- // archetype prompts (e.g. `archetypes/critic.md`),
+ // archetype prompts (e.g. `archetypes/<agent_id>.md`),
// we look up by basename in the workspace, then accept
// missing files as an empty body (the runner will fall
// back to a generic role hint).
diff --git a/crates/openhuman-core/src/flows/registration.rs b/crates/openhuman-core/src/flows/registration.rs
index df6e60aeb4..d01ece7ba3 100644
--- a/crates/openhuman-core/src/flows/registration.rs
+++ b/crates/openhuman-core/src/flows/registration.rs
@@ -89,7 +89,7 @@ pub(crate) fn tools(config: Arc<Config>, security: &Arc<SecurityPolicy>) -> Vec<
// invariant.
Box::new(GetToolOutputSampleTool::new(config.clone())),
// Ground an `agent` node's `agent_ref` in real registered agent-kind ids
- // (code_executor / critic / …) — the agent analogue of
+ // (workflow_builder / image_agent / …) — the agent analogue of
// search_tool_catalog. Read-only.
Box::new(ListAgentDefinitionsTool::new(host.clone())),
// Steer toolkit choice toward what's already connected + surface which
diff --git a/crates/openhuman-core/src/threads/ops/transcript_tests.rs b/crates/openhuman-core/src/threads/ops/transcript_tests.rs
index 3f433fd151..ca4618aee1 100644
--- a/crates/openhuman-core/src/threads/ops/transcript_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/transcript_tests.rs
@@ -264,7 +264,7 @@ async fn changing_the_chat_agent_does_not_strand_an_existing_threads_turns() {
// A thread with no recorded key falls back to the current rule.
let other = tempfile::tempdir().unwrap();
let unrecorded_before = ctx_with_chat_agent(other.path(), None, None);
- let unrecorded_after = ctx_with_chat_agent(other.path(), None, Some("planner"));
+ let unrecorded_after = ctx_with_chat_agent(other.path(), None, Some("summarizer"));
write_thread(&unrecorded_before).await;
let page = transcript_get(&unrecorded_after, request())
.await