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/mod.rs,crates/openhuman-core/src/agent/prompts/

Steven Enamakel1f7a8e2c8ed4
diff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rs
index 4dc99f0016..1374b34b68 100644
--- a/crates/openhuman-core/src/agent/mod.rs
+++ b/crates/openhuman-core/src/agent/mod.rs
@@ -58,8 +58,8 @@ pub mod progress_sink;
pub(crate) mod progress_tracing;
/// Prompt plumbing — types, section builders, and
/// [`SystemPromptBuilder`](prompts::SystemPromptBuilder). Moved from
-/// `openhuman::agent::context::prompt` so prompt rendering lives next to the
-/// agents that consume it. `openhuman::agent::context::prompt` is retained as
+/// `crate::agent::context::prompt` so prompt rendering lives next to the
+/// agents that consume it. `crate::agent::context::prompt` is retained as
/// a thin re-export shim for now.
pub mod prompts;
pub mod registry;
diff --git a/crates/openhuman-core/src/agent/prompts/types.rs b/crates/openhuman-core/src/agent/prompts/types.rs
index 6be9851374..481e63f8f5 100644
--- a/crates/openhuman-core/src/agent/prompts/types.rs
+++ b/crates/openhuman-core/src/agent/prompts/types.rs
@@ -323,7 +323,7 @@ impl UserIdentity {
/// Frozen `MEMORY.md` + `USER.md` bodies for prompt injection.
///
-/// Lives in the prompt layer (not `openhuman::curated_memory`) so agent
+/// Lives in the prompt layer (not `crate::curated_memory`) so agent
/// prompt plumbing compiles in builds where the curated-memory domain
/// module is not present.
#[derive(Debug, Clone)]
diff --git a/crates/openhuman-core/src/api/product.rs b/crates/openhuman-core/src/api/product.rs
index 3f02265e3c..60b4357102 100644
--- a/crates/openhuman-core/src/api/product.rs
+++ b/crates/openhuman-core/src/api/product.rs
@@ -153,8 +153,8 @@ pub fn product_identity_headers() -> HeaderMap {
/// process-wide product identity.
///
/// The identity is process state, so a module-local lock cannot prevent
-/// cross-module races: `api::product`, `api::rest`, `openhuman::medulla` and
-/// `openhuman::integrations` tests all touch it from parallel test threads, and
+/// cross-module races: `api::product`, `api::rest`, `crate::medulla` and
+/// `crate::integrations` tests all touch it from parallel test threads, and
/// a test asserting the `openhuman` default would flake against a test that has
/// installed an override. Every test that touches the identity must take THIS
/// lock and restore the default before releasing it.
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index bdae215b5a..72a296518e 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -1334,11 +1334,11 @@ pub fn schema_for_rpc_method(method: &str) -> Option<ControllerSchema> {
/// | HTTP JSON-RPC | `core::jsonrpc` |
/// | dynamic dispatch fallback | `core::dispatch::try_registry_dispatch` |
/// | CLI | `core::cli` |
-/// | MCP read and write tools | `openhuman::mcp::server::tools::params` |
+/// | MCP read and write tools | `crate::mcp::server::tools::params` |
///
/// The one call site that does not validate for itself is
-/// `openhuman::mcp::server::write_dispatch`, whose sole caller
-/// (`openhuman::mcp::server::tools::dispatch`) validates immediately before it.
+/// `crate::mcp::server::write_dispatch`, whose sole caller
+/// (`crate::mcp::server::tools::dispatch`) validates immediately before it.
/// That is not a gap today, but it is the place a refactor could open one.
///
/// # Relationship to handler-side parameter checks (#6073)
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index 24625fa347..cbc8fdb4a5 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -222,7 +222,7 @@ fn voice_and_audio_controllers_registered_when_feature_on() {
/// With the `voice` feature off, both domains are compiled out: their
/// controllers never enter the registry, so voice/audio RPC methods are
/// unknown-method and absent from `/schema`. This is the compile-time
-/// stub-facade correctness gate (see `openhuman::voice::stub`).
+/// stub-facade correctness gate (see `crate::voice::stub`).
#[test]
#[cfg(not(feature = "voice"))]
fn voice_and_audio_controllers_absent_when_feature_off() {
@@ -279,7 +279,7 @@ fn skill_controllers_registered_when_feature_on() {
/// With the `skills` feature off, all three domains are compiled out: their
/// controllers never enter the registry, so skills RPC methods are
/// unknown-method and absent from `/schema`. This is the compile-time
-/// stub-facade correctness gate (see `openhuman::skills::stub`).
+/// stub-facade correctness gate (see `crate::skills::stub`).
///
/// Note this does NOT cover `skills::types` / `skills::ops_types`: those stay
/// compiled in both directions (the type carve-out — `tools::traits` re-exports
@@ -327,7 +327,7 @@ fn wallet_web3_x402_controllers_registered_when_feature_on() {
/// controllers never enter the registry (wallet/web3/x402 RPC methods are
/// unknown-method and absent from `/schema`) and the web3 agent tools are
/// gone. This is the compile-time stub-facade correctness gate (see
-/// `openhuman::web3::{self,wallet,x402}::stub`).
+/// `crate::web3::{self,wallet,x402}::stub`).
#[test]
#[cfg(not(feature = "web3"))]
fn wallet_web3_x402_controllers_absent_when_feature_off() {
diff --git a/crates/openhuman-core/src/core/observability.rs b/crates/openhuman-core/src/core/observability.rs
index 57f2b2278f..965be2078b 100644
--- a/crates/openhuman-core/src/core/observability.rs
+++ b/crates/openhuman-core/src/core/observability.rs
@@ -31,7 +31,7 @@ pub type Tag<'a> = (&'a str, &'a str);
/// - **504** Gateway Timeout
///
/// Single source of truth for both the call-site classifier
-/// (`openhuman::inference::provider::ops::should_report_provider_http_failure`) and the
+/// (`crate::inference::provider::ops::should_report_provider_http_failure`) and the
/// `before_send` filter (`is_transient_provider_http_failure`). Update here
/// and both sites pick it up — keeps the two layers from drifting.
pub const TRANSIENT_PROVIDER_HTTP_STATUSES: &[u16] = &[408, 429, 502, 503, 504, 520];
@@ -167,7 +167,7 @@ pub enum ExpectedErrorKind {
/// /Users/<user>/Documents/<vault>`, observed on
/// `[email protected]`) and preempts the symmetric
/// `hosted path is not a directory:` shape from
- /// `openhuman::http_host::path_utils` once it starts surfacing.
+ /// `crate::http_host::path_utils` once it starts surfacing.
/// See [`is_filesystem_user_path_invalid_message`] for the polarity
/// contract — the safety-guard variant in `skills::ops_install`
/// (`{path} is not a directory — refusing to remove`) is
@@ -1638,7 +1638,7 @@ fn is_upstream_edge_block_message(lower: &str) -> bool {
/// 5xx is intentionally **not** classified here — server-side failures from
/// our backend are real bugs that should reach Sentry. The transient
/// 502/503/504 deduplication is handled by the threshold logic in callers
-/// (see e.g. `openhuman::platform::socket::ws_loop::FAIL_ESCALATE_THRESHOLD`).
+/// (see e.g. `crate::platform::socket::ws_loop::FAIL_ESCALATE_THRESHOLD`).
fn is_backend_user_error_message(lower: &str) -> bool {
let Some(rest) = lower.split_once("backend returned ").map(|(_, r)| r) else {
return false;
@@ -2719,7 +2719,7 @@ pub(crate) fn report_warning_message(
/// that the reliable-provider layer already handles via retry + fallback.
///
/// The primary suppression lives at the call site
-/// (`openhuman::inference::provider::ops::should_report_provider_http_failure`),
+/// (`crate::inference::provider::ops::should_report_provider_http_failure`),
/// which short-circuits transient codes before `report_error` ever fires.
/// This helper is intended for use inside the `sentry::ClientOptions`
/// `before_send` hook as defense-in-depth — it catches any future call
@@ -2850,7 +2850,7 @@ fn all_provider_attempts_are_transient(message: &str) -> bool {
/// Returns true when a Sentry event's message/exception text contains the
/// canonical max-tool-iterations cap phrase (see
-/// `openhuman::agent::error::MAX_ITERATIONS_ERROR_PREFIX`).
+/// `crate::agent::error::MAX_ITERATIONS_ERROR_PREFIX`).
///
/// Defense-in-depth filter for the Sentry `before_send` hook: the primary
/// suppression lives at the call sites in `agent::harness::session::
@@ -2931,7 +2931,7 @@ pub fn is_session_expired_event(event: &sentry::protocol::Event<'_>) -> bool {
/// RPC failures whose message body has been collapsed to just the bare
/// HTTP method + path (`"GET /auth/me"`) with no underlying transport error.
///
-/// Pairs with the primary fix at `openhuman::security::credentials::ops::auth_get_me`,
+/// Pairs with the primary fix at `crate::security::credentials::ops::auth_get_me`,
/// which replaced `e.to_string()` with `format!("{e:#}")` so the full
/// `anyhow` context chain reaches the rpc dispatcher. Before that
/// fix, every transient network failure under this RPC — reqwest timeout,
@@ -3255,7 +3255,7 @@ pub fn is_budget_event(event: &sentry::protocol::Event<'_>) -> bool {
/// digits `402`) is not swallowed and keeps reaching Sentry.
///
/// Single source of truth shared by the message-level cron halt
-/// (`openhuman::cron::scheduler`'s `is_insufficient_credits_failure`, which
+/// (`crate::cron::scheduler`'s `is_insufficient_credits_failure`, which
/// stops retrying a permanent 402 and skips its `report_error`) and the
/// event-level `before_send` filter [`is_insufficient_credits_event`] — the
/// same split as [`is_session_expired_message`] ↔ [`is_session_expired_event`].
diff --git a/crates/openhuman-core/src/flows/mod.rs b/crates/openhuman-core/src/flows/mod.rs
index 34401658a2..ef0dd635ff 100644
--- a/crates/openhuman-core/src/flows/mod.rs
+++ b/crates/openhuman-core/src/flows/mod.rs
@@ -47,7 +47,7 @@ mod schemas;
#[cfg(feature = "skills")]
pub mod skills;
mod store;
-/// The tinyflows engine seam (formerly `openhuman::tinyflows`).
+/// The tinyflows engine seam (formerly `crate::tinyflows`).
pub mod tinyflows;
pub mod tools;
diff --git a/crates/openhuman-core/src/integrations/client_part_01.rs b/crates/openhuman-core/src/integrations/client_part_01.rs
index 7cc62abbad..203ea5e709 100644
--- a/crates/openhuman-core/src/integrations/client_part_01.rs
+++ b/crates/openhuman-core/src/integrations/client_part_01.rs
@@ -67,7 +67,7 @@ fn reject_backend_webhook_path(method: &str, path: &str) -> anyhow::Result<()> {
/// that JWT is expired / revoked / rotated server-side — see the identical
/// envelope pinned in `inference/provider/config_rejection.rs` and the socket
/// reconnect loop's `"Invalid token"` handling in
-/// `openhuman::platform::socket::ws_loop`. A *third-party* integration's auth failure
+/// `crate::platform::socket::ws_loop`. A *third-party* integration's auth failure
/// never reaches this arm:
///
/// - **Composio backend mode** (the default that routes through this client):
diff --git a/crates/openhuman-core/src/medulla/mod.rs b/crates/openhuman-core/src/medulla/mod.rs
index 34c503a594..adbdc89f33 100644
--- a/crates/openhuman-core/src/medulla/mod.rs
+++ b/crates/openhuman-core/src/medulla/mod.rs
@@ -15,8 +15,8 @@
//!
//! | Module | Role | Transport |
//! |---|---|---|
-//! | `openhuman::medulla` (here) | OpenHuman as a Medulla **client** | outbound HTTP/SSE to the backend |
-//! | `openhuman::platform::socket::medulla` | OpenHuman as a Medulla **worker** | inbound Socket.IO from a remote operator |
+//! | `crate::medulla` (here) | OpenHuman as a Medulla **client** | outbound HTTP/SSE to the backend |
+//! | `crate::platform::socket::medulla` | OpenHuman as a Medulla **worker** | inbound Socket.IO from a remote operator |
//!
//! A single binary can be both at once.
//!
diff --git a/crates/openhuman-core/src/memory/source_scope.rs b/crates/openhuman-core/src/memory/source_scope.rs
index e99caf690e..88ce9aa1b7 100644
--- a/crates/openhuman-core/src/memory/source_scope.rs
+++ b/crates/openhuman-core/src/memory/source_scope.rs
@@ -41,7 +41,7 @@
//!
//!
//! ```ignore
-//! use openhuman::openhuman::memory::source_scope::{with_source_scope, current_source_scope};
+//! use openhuman_core::memory::source_scope::{with_source_scope, current_source_scope};
//!
//! with_source_scope(Some(vec!["slack:#eng".into()]), async {
//! assert!(current_source_scope().unwrap().contains("slack:#eng"));
diff --git a/crates/openhuman-core/src/tools/impl/network/gitbooks.rs b/crates/openhuman-core/src/tools/impl/network/gitbooks.rs
index 8c5e626be4..83e053c5de 100644
--- a/crates/openhuman-core/src/tools/impl/network/gitbooks.rs
+++ b/crates/openhuman-core/src/tools/impl/network/gitbooks.rs
@@ -1,5 +1,5 @@
//! `gitbooks` — answer questions about OpenHuman by talking to the
-//! GitBook MCP server through the shared `openhuman::mcp::http_client` path.
+//! GitBook MCP server through the shared `crate::mcp::http_client` path.
use crate::mcp::http_client::{redact_endpoint, McpHttpClient};
use crate::tools::traits::{PermissionLevel, Tool, ToolResult};