Skip to content

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

refactor(config): remove delegate agent configuration

Steven Enamakel2b559e508597
diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rs
index e7680c77eb..9c6c2b349b 100644
--- a/crates/openhuman-core/src/config/mod.rs
+++ b/crates/openhuman-core/src/config/mod.rs
@@ -49,7 +49,7 @@ pub use schema::{
CapabilityProviderTrustState, ChannelsConfig, CompactionSettings, CompactionStrategy,
ComposioConfig, ComposioDirectBaseUrls, ComposioHostCredential, ComputerConfig, Config,
ContextConfig, CostConfig, CronConfig, CurlConfig, DashboardConfig, DecisionModel,
- DelegateAgentConfig, DiagramViewerConfig, DictationActivationMode, DictationConfig,
+ DiagramViewerConfig, DictationActivationMode, DictationConfig,
DiscordConfig, DockerRuntimeConfig, EmailConfig, EmbeddingRouteConfig, GitbooksConfig,
HttpHeader, HttpRequestConfig, IMessageConfig, IntegrationToggle, IntegrationsConfig,
LarkConfig, LegacySearchInputs, LinqConfig, LocalAiConfig, LocalJailConfig, MatrixConfig,
diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rs
index a25fc03160..f4eebba506 100644
--- a/crates/openhuman-core/src/config/schema/agent.rs
+++ b/crates/openhuman-core/src/config/schema/agent.rs
@@ -47,26 +47,6 @@ impl TeamModelConfig {
}
}
-/// Configuration for a delegate sub-agent used by the `delegate` tool.
-#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
-pub struct DelegateAgentConfig {
- /// Model name (inference uses the OpenHuman backend from main config).
- pub model: String,
- /// Optional system prompt for the sub-agent
- #[serde(default)]
- pub system_prompt: Option<String>,
- /// Temperature override
- #[serde(default)]
- pub temperature: Option<f64>,
- /// Max recursion depth for nested delegation
- #[serde(default = "default_max_depth")]
- pub max_depth: u32,
-}
-
-fn default_max_depth() -> u32 {
- 3
-}
-
/// A per-agent contract requiring a structured JSON block in every turn's final
/// reply (issue #4117).
///
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index 17a76ecea4..c91f8e0f44 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -77,10 +77,7 @@ mod tools;
mod update;
mod web_chat_config;
-pub use agent::{
- AgentConfig, DelegateAgentConfig, OrchestratorModelConfig, RequiredOutputContract,
- TeamModelConfig, ToolSearchConfig,
-};
+pub use agent::{AgentConfig, OrchestratorModelConfig, RequiredOutputContract, TeamModelConfig, ToolSearchConfig};
pub use autonomy::AutonomyConfig;
pub use capability_providers::{CapabilityProviderConfig, CapabilityProviderTrustState};
pub use channels::{
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index bb03459d47..18ea7db745 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -367,9 +367,6 @@ pub struct Config {
#[serde(default)]
pub agent_registry: crate::agent_registry::types::AgentRegistryConfig,
- #[serde(default)]
- pub agents: HashMap<String, DelegateAgentConfig>,
-
#[serde(default)]
pub local_ai: LocalAiConfig,
diff --git a/crates/openhuman-core/src/config/schema/types/defaults.rs b/crates/openhuman-core/src/config/schema/types/defaults.rs
index ec74add56c..30f7ea71d7 100644
--- a/crates/openhuman-core/src/config/schema/types/defaults.rs
+++ b/crates/openhuman-core/src/config/schema/types/defaults.rs
@@ -90,7 +90,6 @@ impl Default for Config {
cost: CostConfig::default(),
legacy_memory_sources: Vec::new(),
agent_registry: crate::agent_registry::types::AgentRegistryConfig::default(),
- agents: HashMap::new(),
local_ai: LocalAiConfig::default(),
claude_agent_sdk: ClaudeAgentSdkConfig::default(),
cloud_providers: Vec::new(),