Skip to content

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

docs(agent_registry): clarify how agent.toml is parsed

Steven Enamakel2b820bd76c3c
diff --git a/crates/openhuman-core/src/agent_registry/README.md b/crates/openhuman-core/src/agent_registry/README.md
index 136ea46a4e..3a13606634 100644
--- a/crates/openhuman-core/src/agent_registry/README.md
+++ b/crates/openhuman-core/src/agent_registry/README.md
@@ -60,8 +60,9 @@ 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
+through `tinyagents_definition::parse_str` 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.
Every archetype uses the shared sub-agent turn graph.
diff --git a/crates/openhuman-core/src/agent_registry/agents/loader.rs b/crates/openhuman-core/src/agent_registry/agents/loader.rs
index c12a2458fc..ddc8d28682 100644
--- a/crates/openhuman-core/src/agent_registry/agents/loader.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/loader.rs
@@ -4,7 +4,7 @@
//!
//! * `agent.toml` — id, when_to_use, model, tool allowlist, sandbox,
//! iteration cap, and the `omit_*` flags. Parsed
-//! directly into [`AgentDefinition`] via serde.
+//! parsed into [`AgentDefinition`] through the portable definition loader.
//! * `prompt.rs` — a Rust module exporting `pub fn build(ctx: &PromptContext)
//! -> anyhow::Result<String>` that returns the sub-agent's system
//! prompt body. Dynamic: may branch on available tools, user profile,