Skip to content

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

feat(agent): add workspace file sync support to prompt builder\n\nImport the `sync_workspace_file` helper and the `Path` type to enable the system prompt builder to synchronize workspace files when assembling prompts, supporting future integration with file-based context management.\n\nAuto-committed-on: macbook\n

Steven Enamakeld00c1b574728
diff --git a/src/openhuman/agent/prompts/builder.rs b/src/openhuman/agent/prompts/builder.rs
index 2bf31c0a3d..09c7d4fa9e 100644
--- a/src/openhuman/agent/prompts/builder.rs
+++ b/src/openhuman/agent/prompts/builder.rs
@@ -1,9 +1,11 @@
//! [`SystemPromptBuilder`] — assembles ordered [`PromptSection`]s into a
//! final system-prompt string.
+use super::render_helpers::sync_workspace_file;
use super::sections::*;
use super::types::*;
use anyhow::Result;
+use std::path::Path;
/// Global style rules appended to every assembled system prompt, regardless
/// of which sections the agent opts in/out of. Kept tiny and byte-stable so