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(agents): replace embedded prompt files with tinyflows-copilot constants
Steven Enamakeled90eae3f558
diff --git a/src/openhuman/flows/agents/flow_discovery/prompt.rs b/src/openhuman/flows/agents/flow_discovery/prompt.rsindex 433e6d8a6c..81d8685851 100644--- a/src/openhuman/flows/agents/flow_discovery/prompt.rs+++ b/src/openhuman/flows/agents/flow_discovery/prompt.rs@@ -16,7 +16,7 @@ use crate::openhuman::agent::context::prompt::{};use anyhow::Result;-const ARCHETYPE: &str = include_str!("prompt.md");+const ARCHETYPE: &str = tinyflows_copilot::prompts::FLOW_DISCOVERY;pub fn build(ctx: &PromptContext<'_>) -> Result<String> {let mut out = String::with_capacity(8192);diff --git a/src/openhuman/flows/agents/workflow_builder/mod.rs b/src/openhuman/flows/agents/workflow_builder/mod.rsindex 7a1755804f..4b8fda0e38 100644--- a/src/openhuman/flows/agents/workflow_builder/mod.rs+++ b/src/openhuman/flows/agents/workflow_builder/mod.rs@@ -1,2 +1,18 @@-pub mod builder_prompt;+//! The `workflow_builder` built-in agent: this host's wiring of the tinyflows+//! authoring copilot.+//!+//! The copilot itself — the standing archetype that teaches the graph DSL and+//! the propose-only contract, and the turn brief that opens an authoring turn —+//! lives in `tinyflows-copilot` and names no harness. What is here is the+//! wiring: [`prompt`] assembles that archetype with this host's runtime+//! sections (user files, the agent's tool list, the workspace footer), and+//! `agent.toml` registers the agent with this host's registry.+//!+//! [`builder_prompt`] is the historical path the brief was reached by; it is a+//! re-export now, so `agents::workflow_builder::builder_prompt::BuilderRequest`+//! keeps resolving.+pub mod prompt;++/// The harness-independent turn brief, from `tinyflows-copilot`.+pub use tinyflows_copilot::builder as builder_prompt;diff --git a/src/openhuman/flows/agents/workflow_builder/prompt.rs b/src/openhuman/flows/agents/workflow_builder/prompt.rsindex 745aa29b55..08aa23ca7e 100644--- a/src/openhuman/flows/agents/workflow_builder/prompt.rs+++ b/src/openhuman/flows/agents/workflow_builder/prompt.rs@@ -1,7 +1,7 @@//! System prompt builder for the `workflow_builder` built-in agent (Phase 5a).//!-//! Assembles the workflow-authoring archetype (from the sibling `prompt.md`)-//! plus the shared runtime sections (user files, the agent's tool list, and the+//! Assembles the workflow-authoring archetype (`tinyflows_copilot::prompts::WORKFLOW_BUILDER`+//! — it belongs to the engine, not to this host) plus the shared runtime sections (user files, the agent's tool list, and the//! workspace footer). No `## Safety` block — the agent has `omit_safety_preamble//! = true` in its TOML because every tool in scope is propose-or-read and has no//! real external effect (the "propose, never persist" invariant lives in the@@ -12,7 +12,7 @@ use crate::openhuman::agent::context::prompt::{};use anyhow::Result;-const ARCHETYPE: &str = include_str!("prompt.md");+const ARCHETYPE: &str = tinyflows_copilot::prompts::WORKFLOW_BUILDER;pub fn build(ctx: &PromptContext<'_>) -> Result<String> {let mut out = String::with_capacity(8192);diff --git a/vendor/tinyflows b/vendor/tinyflowsindex 0dc36b7b69..c43ff01e6e 160000--- a/vendor/tinyflows+++ b/vendor/tinyflows@@ -1 +1 @@-Subproject commit 0dc36b7b69832b63c94da1aa585749b6b012a51b+Subproject commit c43ff01e6eda6b2eec4928790db8d0230a3de41b