Skip to content

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

chore: consolidate imports and simplify conditional formatting\n\nConsolidated the `PromptContext` import into a single line in the orchestrator prompt module, reformatted the sub-agent tool assertion loop in the loader tests for readability, and simplified the conditional expression in the identity section prompt logic. These changes are purely stylistic and structural with no impact on behaviour.\n\nAuto-committed-on: macbook\n

Steven Enamakel96bbdcc00717
diff --git a/src/openhuman/agent/prompts/sections.rs b/src/openhuman/agent/prompts/sections.rs
index 9d933bac26..e66a8825b6 100644
--- a/src/openhuman/agent/prompts/sections.rs
+++ b/src/openhuman/agent/prompts/sections.rs
@@ -234,11 +234,7 @@ impl PromptSection for IdentitySection {
// not-agent-writable protection.
let is_orchestrator = !ctx.visible_tool_names.is_empty();
let all_files: &[&str] = &["SOUL.md", "IDENTITY.md", "ROLE.md"];
- let skip_in_prompt: &[&str] = if is_orchestrator {
- &[]
- } else {
- &["ROLE.md"]
- };
+ let skip_in_prompt: &[&str] = if is_orchestrator { &[] } else { &["ROLE.md"] };
for file in all_files {
// Always sync to disk so builtin updates ship.
sync_workspace_file(ctx.workspace_dir, file);
@@ -258,7 +254,6 @@ impl PromptSection for IdentitySection {
inject_workspace_file(&mut prompt, ctx.workspace_dir, file);
}
-
// PROFILE.md / MEMORY.md injection lives in the dedicated
// `UserFilesSection` (below) so agents that strip the identity
// preamble (`omit_identity = true`) — welcome, orchestrator, the
diff --git a/src/openhuman/agent/registry/agents/loader.rs b/src/openhuman/agent/registry/agents/loader.rs
index 98d5daf735..f2133b2d2b 100644
--- a/src/openhuman/agent/registry/agents/loader.rs
+++ b/src/openhuman/agent/registry/agents/loader.rs
@@ -804,7 +804,11 @@ mod tests {
// always async and its result is delivered back on an idle
// system turn, so there is nothing to collect and nothing to
// block on.
- for required in ["spawn_async_subagent", "list_subagents", "continue_subagent"] {
+ for required in [
+ "spawn_async_subagent",
+ "list_subagents",
+ "continue_subagent",
+ ] {
assert!(
tools.iter().any(|t| t == required),
"orchestrator must have sub-agent tool `{required}`"
diff --git a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
index 7c28566805..ca80a781dd 100644
--- a/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
+++ b/src/openhuman/agent/registry/agents/orchestrator/prompt.rs
@@ -13,8 +13,7 @@
use crate::openhuman::agent::context::prompt::{
render_datetime, render_identity, render_tools, render_user_files, render_workspace,
- ConnectedIntegration,
- PromptContext, ToolCallFormat,
+ ConnectedIntegration, PromptContext, ToolCallFormat,
};
use crate::openhuman::skills::ops_types::Workflow;
use crate::openhuman::tools::orchestrator_tools::sanitise_slug;