Skip to content

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

chore: files changed crates/openhuman-core/src/agent/registry/README.md,crates/openhuman-core/src/ag

Steven Enamakelbd606af980ae
diff --git a/crates/openhuman-core/src/agent/registry/README.md b/crates/openhuman-core/src/agent/registry/README.md
index 3765546555..9f6776d87d 100644
--- a/crates/openhuman-core/src/agent/registry/README.md
+++ b/crates/openhuman-core/src/agent/registry/README.md
@@ -60,10 +60,12 @@ the harness runs come from [`agents/`](agents/) below.
Each built-in agent owns a subfolder with an `agent.toml` (id, `when_to_use`,
model, tool scope, sandbox mode, iteration cap, tier, `omit_*` flags, parsed
-directly into `AgentDefinition`), a `prompt.md` holding the static archetype
-body, and a `prompt.rs` that `include_str!`s that body and exposes
-`pub fn build(&PromptContext) -> anyhow::Result<String>`, appending
-runtime-dependent sections (rendered tool list, workspace) to it.
+directly into `AgentDefinition`) and a `prompt.rs` that exposes
+`pub fn build(&PromptContext) -> anyhow::Result<String>`. Most builders include
+their archetype from a sibling `prompt.md`; the two flow builders receive their
+archetype text from TinyFlows Copilot through an explicit prompt context value.
+Builders append runtime-dependent sections such as the rendered tool list and
+workspace to that archetype.
Every archetype uses the shared sub-agent turn graph.
[`agents/loader.rs`](agents/loader.rs) owns the `BUILTINS` slice and
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader.rs b/crates/openhuman-core/src/agent/registry/agents/loader.rs
index 221451b278..f39231ac83 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader.rs
@@ -263,8 +263,9 @@ pub fn validate_tier_hierarchy(defs: &[AgentDefinition]) -> Result<()> {
/// Parse a single [`BuiltinAgent`] triple into a finished [`AgentDefinition`].
fn parse_builtin(b: &BuiltinAgent) -> Result<AgentDefinition> {
// The TOML ships without `system_prompt` — serde falls back to
- // `defaults::empty_inline_prompt` — and the loader injects the
- // rendered sibling `prompt.md` immediately below.
+ // `defaults::empty_inline_prompt` — and the loader installs its dynamic
+ // prompt builder below. Most builders include a sibling `prompt.md`; flow
+ // builders receive their archetype text from TinyFlows Copilot.
let mut def: AgentDefinition = toml::from_str(b.toml)
.with_context(|| format!("parsing built-in agent `{}` TOML", b.id))?;
diff --git a/crates/openhuman-core/src/agent/registry/agents/workflow_builder/agent.toml b/crates/openhuman-core/src/agent/registry/agents/workflow_builder/agent.toml
index c5fd078bc3..7a6a525d0c 100644
--- a/crates/openhuman-core/src/agent/registry/agents/workflow_builder/agent.toml
+++ b/crates/openhuman-core/src/agent/registry/agents/workflow_builder/agent.toml
@@ -16,7 +16,8 @@ omit_identity = true
omit_memory_context = true
# Safety preamble stays OFF: authoring itself (propose/revise/dry-run/reads)
# has zero real external effect, so the general acting guard-rails would be
-# noise there — the "propose, never persist" invariant is taught in prompt.md.
+# noise there — the "propose, never persist" invariant is taught in the
+# TinyFlows Copilot archetype.
# The one real-effect surface, `run_flow` (a confirmed test-run of an already
# saved flow), is gated by the `ApprovalGate` itself, not this preamble: on the
# streaming copilot path (flows-copilot-live-run-approval, PR3) it parks behind
diff --git a/crates/openhuman-core/src/flows/ops/builder.rs b/crates/openhuman-core/src/flows/ops/builder.rs
index ac7fc8af89..c66deb548d 100644
--- a/crates/openhuman-core/src/flows/ops/builder.rs
+++ b/crates/openhuman-core/src/flows/ops/builder.rs
@@ -364,7 +364,7 @@ pub(crate) async fn flows_build_with_extra_hidden_tools(
// "naturally" (no more tool calls, not capped, no run error) yet still
// produce neither a proposal nor a real question — the model ran out of
// steam mid-build and left a status dump ("Done so far: checked
- // connections…") as its final reply. `prompt.md` tells the model to
+ // connections…") as its final reply. The TinyFlows Copilot archetype tells the model to
// always end a building turn in a proposal or a question, but a prompt
// rule can be silently ignored; this is the fail-closed backend backstop
// that makes it a hard invariant regardless of model behavior — the user