Skip to content

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

chore(agents): update prompts across multiple agents

Steven Enamakele4e0bbcc500c
diff --git a/crates/openhuman-core/src/agent/registry/agents/critic/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/critic/prompt.rs
index 0ced0e17e8..ec93839403 100644
--- a/crates/openhuman-core/src/agent/registry/agents/critic/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/critic/prompt.rs
@@ -4,7 +4,7 @@
//! (from the sibling `prompt.md`) plus the same section helpers the
//! runtime uses for every other agent.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -14,11 +14,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt.rs
index 4fe0ffed93..f4a2ae81db 100644
--- a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt.rs
@@ -3,7 +3,7 @@
//! Returns the final, fully-assembled system prompt — archetype body (from the
//! sibling `prompt.md`) plus the shared section helpers every agent uses.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -13,11 +13,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt.rs
index 103ed864e0..a482489ce2 100644
--- a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt.rs
@@ -6,7 +6,7 @@
//! post-processing in the runner.
use crate::agent::prompts::{
- render_ambient_environment, render_tools, render_user_files, render_workspace, PromptContext,
+ render_ambient_environment, render_tools, render_workspace, PromptContext,
};
use anyhow::Result;
@@ -17,11 +17,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
index 712b36fe21..ea98c8425e 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
@@ -13,7 +13,7 @@
use crate::agent::harness::definition::SubagentEntry;
use crate::agent::harness::AgentDefinitionRegistry;
use crate::agent::prompts::{
- render_datetime, render_identity, render_tools, render_user_files, render_workspace,
+ render_datetime, render_identity, render_tools, render_workspace,
ConnectedIntegration, PromptContext, ToolCallFormat,
};
use crate::skills::ops_types::Workflow;
@@ -104,7 +104,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
// ── Volatile tier: the user's state, changes between sessions ────────
out.push_str(PROMPT_TIER_VOLATILE_MARKER);
out.push('\n');
- push(&mut out, &render_user_files(ctx)?);
push(&mut out, ctx.connected_identities_md.as_str());
push(
&mut out,
diff --git a/crates/openhuman-core/src/agent/registry/agents/planner/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/planner/prompt.rs
index bfff42de1d..7d9ac3b697 100644
--- a/crates/openhuman-core/src/agent/registry/agents/planner/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/planner/prompt.rs
@@ -6,7 +6,7 @@
//! post-processing in the runner.
use crate::agent::prompts::{
- render_datetime, render_tools, render_user_files, render_workspace, PromptContext,
+ render_datetime, render_tools, render_workspace, PromptContext,
};
use anyhow::Result;
@@ -17,11 +17,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt.rs
index 5ddbfd2f02..3531759966 100644
--- a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt.rs
@@ -1,6 +1,6 @@
//! System prompt builder for the `presentation_agent` built-in agent.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -10,11 +10,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/summarizer/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/summarizer/prompt.rs
index 1627cdbc13..f07f472f78 100644
--- a/crates/openhuman-core/src/agent/registry/agents/summarizer/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/summarizer/prompt.rs
@@ -5,7 +5,7 @@
//! in the order it wants — so the output IS what the LLM sees, no
//! post-processing in the runner.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
/// The summarizer archetype: TinyJuice's extraction contract, verbatim.
@@ -22,11 +22,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt.rs
index 11c9ccf64a..4932aeb0f2 100644
--- a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt.rs
@@ -1,7 +1,7 @@
//! System prompt builder for the `task_manager_agent` built-in agent.
use crate::agent::prompts::{
- render_safety, render_tools, render_user_files, render_workspace, PromptContext,
+ render_safety, render_tools, render_workspace, PromptContext,
};
use anyhow::Result;
@@ -12,11 +12,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.rs
index a4e89dd146..4b737d285e 100644
--- a/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/trigger_reactor/prompt.rs
@@ -5,7 +5,7 @@
//! in the order it wants — so the output IS what the LLM sees, no
//! post-processing in the runner.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -15,11 +15,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/trigger_triage/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/trigger_triage/prompt.rs
index 6ca279a227..afaa153e46 100644
--- a/crates/openhuman-core/src/agent/registry/agents/trigger_triage/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/trigger_triage/prompt.rs
@@ -5,7 +5,7 @@
//! in the order it wants — so the output IS what the LLM sees, no
//! post-processing in the runner.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -15,11 +15,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt.rs
index 0d9c6b712e..2fd0e24b94 100644
--- a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt.rs
@@ -3,7 +3,7 @@
//! Returns the final, fully-assembled system prompt — archetype body (from the
//! sibling `prompt.md`) plus the shared section helpers every agent uses.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -13,11 +13,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/agent/registry/agents/vision_agent/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/vision_agent/prompt.rs
index c24a2d6c38..3e50d116a3 100644
--- a/crates/openhuman-core/src/agent/registry/agents/vision_agent/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/vision_agent/prompt.rs
@@ -4,7 +4,7 @@
//! (from the sibling `prompt.md`) plus the same section helpers the
//! runtime uses for every other agent.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = include_str!("prompt.md");
@@ -14,11 +14,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt.rs b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt.rs
index 719255792c..e33f265ee8 100644
--- a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt.rs
+++ b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt.rs
@@ -11,7 +11,7 @@
//! external effect); the "read, then suggest — never act" invariant lives in
//! the archetype body instead.
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = tinyflows_copilot::prompts::FLOW_DISCOVERY;
@@ -21,11 +21,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {
diff --git a/crates/openhuman-core/src/flows/agents/workflow_builder/prompt.rs b/crates/openhuman-core/src/flows/agents/workflow_builder/prompt.rs
index 4e6c88c4d9..28c2808eb5 100644
--- a/crates/openhuman-core/src/flows/agents/workflow_builder/prompt.rs
+++ b/crates/openhuman-core/src/flows/agents/workflow_builder/prompt.rs
@@ -7,7 +7,7 @@
//! real external effect (the "propose, never persist" invariant lives in the
//! archetype body instead).
-use crate::agent::prompts::{render_tools, render_user_files, render_workspace, PromptContext};
+use crate::agent::prompts::{render_tools, render_workspace, PromptContext};
use anyhow::Result;
const ARCHETYPE: &str = tinyflows_copilot::prompts::WORKFLOW_BUILDER;
@@ -17,11 +17,6 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
out.push_str(ARCHETYPE.trim_end());
out.push_str("\n\n");
- let user_files = render_user_files(ctx)?;
- if !user_files.trim().is_empty() {
- out.push_str(user_files.trim_end());
- out.push_str("\n\n");
- }
let tools = render_tools(ctx)?;
if !tools.trim().is_empty() {