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
docs(agent): clarify transcript storage and legacy import
Steven Enamakelbde3fa4231c8
diff --git a/crates/openhuman-embed/src/agent/build_tests.rs b/crates/openhuman-embed/src/agent/build_tests.rsindex 4cdf484118..76bace8723 100644--- a/crates/openhuman-embed/src/agent/build_tests.rs+++ b/crates/openhuman-embed/src/agent/build_tests.rs@@ -67,12 +67,10 @@ fn sub_agents_become_workers_in_a_catalogue_of_the_agents_own() {own.get("orchestrator").is_some(),"built-ins stay reachable");- assert!(- definition- .subagents- .iter()- .any(|entry| matches!(entry, SubagentEntry::AgentId(id) if id == "lead-helper"))- );+ assert!(definition+ .subagents+ .iter()+ .any(|entry| matches!(entry, SubagentEntry::AgentId(id) if id == "lead-helper")));assert!(catalogue.get("lead-helper").is_none());}diff --git a/crates/openhuman-embed/src/agent/definition_tests.rs b/crates/openhuman-embed/src/agent/definition_tests.rsindex e2b1f23173..737c969664 100644--- a/crates/openhuman-embed/src/agent/definition_tests.rs+++ b/crates/openhuman-embed/src/agent/definition_tests.rs@@ -89,13 +89,11 @@ fn tool_rules_reach_the_core_definition() {.into_core("narrow").unwrap();assert_eq!(def.tool_rules, Some(rules));- assert!(- AgentDefinitionSpec::new()- .into_core("open")- .unwrap()- .tool_rules- .is_none()- );+ assert!(AgentDefinitionSpec::new()+ .into_core("open")+ .unwrap()+ .tool_rules+ .is_none());}#[test]@@ -126,12 +124,10 @@ fn template_overrides_are_independent_and_keep_restrictions() {assert_eq!(first.temperature, 0.3);assert_eq!(second.temperature, 0.8);assert_eq!(second.max_iterations, 7);- assert!(- AgentDefinitionSpec::new()- .tools(ToolScopeSpec::Wildcard)- .inherit(template)- .is_err()- );+ assert!(AgentDefinitionSpec::new()+ .tools(ToolScopeSpec::Wildcard)+ .inherit(template)+ .is_err());}#[test]fn base_can_be_named_or_custom_and_unknown_names_are_typed() {diff --git a/crates/openhuman-embed/src/agent/layout.rs b/crates/openhuman-embed/src/agent/layout.rsindex a7d7c8bc0c..9ec22a7981 100644--- a/crates/openhuman-embed/src/agent/layout.rs+++ b/crates/openhuman-embed/src/agent/layout.rs@@ -9,16 +9,16 @@//! workspace///! session_db/sessions.db runtime-wide run ledger//! agents/<id>/{SOUL.md, skills/, workflows/} the agent's home-//! agents/<id>/session_raw/<stem>.jsonl its transcripts+//! agents/<id>/session_raw/<stem>.jsonl legacy transcript import//! agents/<id>/cron/jobs.db its cron jobs//! agents/<id>/action/ its default action_dir//! ```//!//! Its MCP host keeps its store in the agent home too.//!-//! Transcripts an agent wrote to the shared `workspace/session_raw/` before-//! this layout are still read, and are copied into the agent's directory-//! before they are written to again.+//! New transcripts use the runtime's `SessionStoreProvider` (SQLite-backed+//! `WorkspaceStores` by default). Classic `session_raw/*.jsonl` transcripts+//! remain a read-only import source; they are not copied back to this layout.use std::path::{Path, PathBuf};@@ -29,7 +29,7 @@ pub struct AgentLayout {pub home: PathBuf,/// `<workspace>/agents/<id>/skills/`.pub skills: PathBuf,- /// The transcript directory the harness writes for this agent.+ /// The legacy JSONL import directory associated with this agent.pub transcripts: PathBuf,/// The agent's read/write root.pub action_dir: PathBuf,diff --git a/crates/openhuman-embed/src/agent/lifecycle.rs b/crates/openhuman-embed/src/agent/lifecycle.rsindex 6efd5eed3f..28d1d3a5bb 100644--- a/crates/openhuman-embed/src/agent/lifecycle.rs+++ b/crates/openhuman-embed/src/agent/lifecycle.rs@@ -5,7 +5,7 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};use std::sync::{Arc, Mutex};use std::time::Duration;-use tokio::sync::{Notify, watch};+use tokio::sync::{watch, Notify};use crate::CoreError;diff --git a/crates/openhuman-embed/src/agent/mod.rs b/crates/openhuman-embed/src/agent/mod.rsindex 74ecc2bd24..b1bbc7d3db 100644--- a/crates/openhuman-embed/src/agent/mod.rs+++ b/crates/openhuman-embed/src/agent/mod.rs@@ -37,9 +37,9 @@ use openhuman_core::agent_registry::host_definition::AgentDefinition;use openhuman_core::config::Config;use openhuman_core::core::runtime::{CoreContext, CoreRuntime};-use crate::CoreError;use crate::harness::{Access, Provider};use crate::turn::{Turn, TurnOutcome, TurnTarget};+use crate::CoreError;/// Error from instantiating or driving an [`Agent`].#[derive(Debug, thiserror::Error)]@@ -353,9 +353,9 @@ impl Agent {&self.inner.layout.skills}- /// `<workspace>/agents/<id>/session_raw/` — where this agent's transcripts- /// are written. Conversations it wrote earlier into the workspace's shared- /// `session_raw/` stay readable and are copied here when resumed.+ /// `<workspace>/agents/<id>/session_raw/`, the legacy JSONL import+ /// directory associated with this agent. New transcripts use the runtime's+ /// session-store provider and are not necessarily written to this path.pub fn transcripts_dir(&self) -> &Path {&self.inner.layout.transcripts}diff --git a/crates/openhuman-embed/src/agent/spec.rs b/crates/openhuman-embed/src/agent/spec.rsindex 037ed73e65..75baa21c4a 100644--- a/crates/openhuman-embed/src/agent/spec.rs+++ b/crates/openhuman-embed/src/agent/spec.rs@@ -423,11 +423,11 @@ impl AgentSpec {pub fn tools(mut self,f: impl for<'a> Fn(- openhuman_core::agent::TurnContext<'a>,- ) -> openhuman_core::agent::HostTurnTools- + Send- + Sync- + 'static,+ openhuman_core::agent::TurnContext<'a>,+ ) -> openhuman_core::agent::HostTurnTools+ + Send+ + Sync+ + 'static,) -> Self {self.host_tools = Some(std::sync::Arc::new(f));selfdiff --git a/crates/openhuman-embed/src/agent/spec_tests.rs b/crates/openhuman-embed/src/agent/spec_tests.rsindex 5f42183ca8..cc5005f658 100644--- a/crates/openhuman-embed/src/agent/spec_tests.rs+++ b/crates/openhuman-embed/src/agent/spec_tests.rs@@ -1,6 +1,6 @@use super::*;-use crate::AgentError;use crate::agent::build::{check_domains_narrow, check_tool_groups_narrow};+use crate::AgentError;use openhuman_core::tools::toolpacks::GroupMode;#[test]