The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor: remove deprecated `include_profile`, `include_memory_md`, `curated_snapshot`, and `learned
Steven Enamakelea0536e49ba6
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests.rsindex 3cf55d1ede..bd0ed9608a 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests.rs@@ -59,14 +59,10 @@ fn ctx_with_identity(identity: Option<UserIdentity>) -> PromptContext<'static> {tools: EMPTY_TOOLS,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: EMPTY_INTEGRATIONS,connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: identity,personality_roster: vec![],agents_md_global: None,@@ -91,14 +87,10 @@ fn memory_framing_ctx<'a>(tools: prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: true,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -120,9 +112,6 @@ fn ctx_with_learned(learned: LearnedContextData) -> PromptContext<'static> {tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -144,14 +133,10 @@ fn agents_md_ctx(global: Option<String>, local: Option<String>) -> PromptContexttools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: global,diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rsindex c18bd731e9..97503d8a60 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs@@ -11,14 +11,10 @@ fn prompt_builder_assembles_sections() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "instr",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -41,14 +37,10 @@ fn grounding_contract_appended_to_every_build_path() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "instr",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -133,14 +125,10 @@ fn identity_section_creates_missing_workspace_files() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -214,14 +202,10 @@ fn datetime_section_is_static_grounding_rule_without_volatile_timestamp() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "instr",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -285,14 +269,10 @@ fn datetime_section_appends_resolve_time_rule_only_when_tool_present() {tools: &with_prompt_tools,workflows: &[],dispatcher_instructions: "instr",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -442,14 +422,10 @@ fn tools_section_pformat_renders_signature_not_schema() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -500,14 +476,10 @@ fn tools_section_renders_invalid_schema_tool_without_arguments() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -569,14 +541,10 @@ fn tools_section_code_formats_render_function_signatures() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "## Tool Use Protocol\n\n(block)",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: format,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -619,14 +587,10 @@ fn tools_section_uses_pformat_signature_for_text_dispatchers() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: format,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -665,14 +629,10 @@ fn tools_section_json_with_an_embedded_catalogue_lists_tools_once() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: &block,- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::Json,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -718,9 +678,6 @@ fn user_memory_section_renders_namespaces_with_headings() {tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rsindex a4faa5c9a1..7abe0a8a8b 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_subagent_render_tests.rs@@ -19,9 +19,6 @@ fn user_memory_section_returns_empty_when_no_summaries() {tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -147,8 +144,6 @@ fn render_subagent_system_prompt_honors_identity_safety_and_skills_flags() {SubagentRenderOptions {include_identity: true,include_safety_preamble: true,- include_profile: false,- include_memory_md: false,},ToolCallFormat::Json,&[],@@ -221,8 +216,6 @@ fn only(identity: bool, profile: bool, memory: bool) -> SubagentRenderOptions {SubagentRenderOptions {include_identity: identity,include_safety_preamble: false,- include_profile: profile,- include_memory_md: memory,}}diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rsindex 76fa68e7b4..6df83a5e7e 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_tools_sections_tests.rs@@ -129,14 +129,10 @@ fn deferred_browser_prompt_has_only_discovery_hint_in_native_and_text_modes() {tools: &tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: format,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -163,14 +159,10 @@ fn tools_section_empty_for_native() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::Native,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -196,14 +188,10 @@ fn tools_section_nonempty_for_pformat() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,@@ -231,14 +219,10 @@ fn tools_section_native_with_dispatcher_instructions_returns_instructions() {tools: &prompt_tools,workflows: &[],dispatcher_instructions: "## Tool Use Protocol\n\nUse native tool calling.",- learned: LearnedContextData::default(),visible_tool_names: &NO_FILTER,tool_call_format: ToolCallFormat::Native,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rsindex 31a527b722..956a4af357 100644--- a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs@@ -59,14 +59,10 @@ fn render(def: &AgentDefinition, definitions: &[AgentDefinition]) -> String {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rsindex 3dd59d61ab..b9e6b8492f 100644--- a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs@@ -12,14 +12,10 @@ fn build_returns_nonempty_body() {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rsindex c143b81d67..c019d9f7e6 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs@@ -196,14 +196,10 @@ fn every_builtin_has_a_prompt_body() {tools: &empty_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &empty_visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &empty_integrations,connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rsindex 6eb3e5eb4f..f688e7d1db 100644--- a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs@@ -15,14 +15,10 @@ fn ctx_with_identity(identity: Option<UserIdentity>) -> PromptContext<'static> {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: identity,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex cef737c0c2..dfef20ab61 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs@@ -135,14 +135,10 @@ fn ctx_with<'a>(integrations: &'a [ConnectedIntegration]) -> PromptContext<'a> {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: EMPTY_VISIBLE.get_or_init(HashSet::new),tool_call_format: ToolCallFormat::PFormat,connected_integrations: integrations,connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rsindex 54f3175d1c..3e594c45cd 100644--- a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs@@ -12,14 +12,10 @@ fn build_returns_grounding_contract() {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rsindex 51e9f18033..218f87ebe8 100644--- a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs@@ -12,14 +12,10 @@ fn build_returns_task_manager_contract() {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rsindex 3929a6db64..aed9e2e13b 100644--- a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs@@ -12,14 +12,10 @@ fn build_returns_nonempty_body() {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/agent/session_host/turn/context.rs b/crates/openhuman-core/src/agent/session_host/turn/context.rsindex 4fc9420f82..0619aa63af 100644--- a/crates/openhuman-core/src/agent/session_host/turn/context.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/context.rs@@ -63,9 +63,6 @@ impl OpenHumanSessionHost {),connected_integrations: &self.connected_integrations,connected_identities_md: crate::agent::prompts::render_connected_identities(),- include_profile: !self.omit_profile,- include_memory_md: !self.omit_memory_md,- curated_snapshot: None,user_identity: crate::security::credentials::identity::peek_credential_user_identity(),personality_roster: vec![], // TODO: build_personality_roster(&workspace_dir)agents_md_global: agents_md.global,diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rsindex 85bf7d911a..fd31ddb80d 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs@@ -129,10 +129,8 @@ pub struct OpenHumanContextComposer {/// seam an opaque agent id, so the wiring site supplies it explicitly via/// [`Self::with_omissions`]; hardcoding it would inject a file a specialist/// definition deliberately excludes.- include_profile: bool,/// Whether the user's MEMORY.md layer is injected. See/// [`Self::include_profile`].- include_memory_md: bool,/// The section chain. Built once so per-turn composition is just a render.builder: SystemPromptBuilder,}@@ -152,9 +150,6 @@ impl OpenHumanContextComposer {model_name,tool_call_format: ToolCallFormat::default(),connected_integrations: Vec::new(),- learned: LearnedContextData::default(),- include_profile: true,- include_memory_md: true,builder: SystemPromptBuilder::with_defaults(),}}@@ -253,12 +248,9 @@ impl ContextComposer for OpenHumanContextComposer {// crate hands this seam a bare agent id, so the wiring site supplies// them via `with_omissions`; the default is the main-agent// behaviour (both included).- include_profile: self.include_profile,- include_memory_md: self.include_memory_md,// No turn-scoped curated-memory snapshot at this seam; the user// files sections fall back to the workspace files, which is the// documented `None` behaviour.- curated_snapshot: None,user_identity: crate::security::credentials::identity::peek_credential_user_identity(),// TODO(phase4): the master agent's personality roster is built// from the profiles domain (`crate::profiles`); thediff --git a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rsindex 9dd6f944d6..b9d5c6e8f8 100644--- a/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs+++ b/crates/openhuman-core/src/agent/triage/evaluator/prompt.rs@@ -26,14 +26,10 @@ pub(crate) fn extract_inline_prompt(def: &AgentDefinition) -> Option<String> {tools: &empty_tools,workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: &empty_visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &empty_integrations,connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,diff --git a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rsindex 7620cb0351..41c5b4bf63 100644--- a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs+++ b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs@@ -12,14 +12,10 @@ fn ctx() -> PromptContext<'static> {tools: &[],workflows: &[],dispatcher_instructions: "",- learned: LearnedContextData::default(),visible_tool_names: visible,tool_call_format: ToolCallFormat::PFormat,connected_integrations: &[],connected_identities_md: String::new(),- include_profile: false,- include_memory_md: false,- curated_snapshot: None,user_identity: None,personality_roster: vec![],agents_md_global: None,