Skip to content

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

refactor(core): reorganise agent and tool modules

Steven Enamakel65fbe266a76e
diff --git a/crates/openhuman-core/src/agent/harness/mod.rs b/crates/openhuman-core/src/agent/harness/mod.rs
index a146af9ee5..748fe29b8b 100644
--- a/crates/openhuman-core/src/agent/harness/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/mod.rs
@@ -21,7 +21,6 @@
//! `crate::agent::tinyagents`); there is no in-house interrupt fence.
pub mod agent_graph;
-pub mod archivist;
pub mod artifact_offload;
pub(crate) mod builtin_definitions;
pub mod definition;
diff --git a/crates/openhuman-core/src/agent/mod.rs b/crates/openhuman-core/src/agent/mod.rs
index 2cd180193f..4b1e2f3d22 100644
--- a/crates/openhuman-core/src/agent/mod.rs
+++ b/crates/openhuman-core/src/agent/mod.rs
@@ -25,13 +25,11 @@ pub mod context_breakdown;
pub(crate) mod cost;
pub mod debug;
pub mod error;
-pub mod experience;
pub mod goals;
pub mod harness;
pub mod harness_init;
pub mod hooks;
pub mod host_runtime;
-pub mod learning;
pub mod library;
pub(crate) mod message_convert;
pub mod messages;
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
index 967ac10c9a..5499eb2fad 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
@@ -27,14 +27,11 @@
//! the sole input to the host bundle factory for per-turn handles; no adapter
//! discovers its state through a task-local.
-pub mod agent_memory;
pub mod budget_gate;
mod bundle;
pub mod context_composer;
pub mod definition_registry;
pub mod delegation;
-pub mod experience_store;
-pub mod learning_sink;
pub mod model_resolver;
pub mod progress_sink;
pub mod run_context;
@@ -42,7 +39,6 @@ pub mod security_gate;
pub(crate) mod steering;
pub mod tool_outcome_classifier;
-pub use agent_memory::OpenHumanAgentMemory;
pub use budget_gate::OpenHumanBudgetGate;
pub use bundle::{
OpenHumanHostBase, OpenHumanHostBundle, OpenHumanHostBundleFactory, OpenHumanHostBundleInputs,
@@ -50,8 +46,6 @@ pub use bundle::{
};
pub use context_composer::OpenHumanContextComposer;
pub use definition_registry::OpenHumanDefinitionRegistry;
-pub use experience_store::OpenHumanExperienceStore;
-pub use learning_sink::OpenHumanLearningSink;
pub use model_resolver::OpenHumanModelResolver;
pub use progress_sink::OpenHumanProgressSink;
pub(crate) use run_context::direct_subagent_child;
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware.rs b/crates/openhuman-core/src/agent/tinyagents/middleware.rs
index da4a1bf614..d7c384cea3 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware.rs
@@ -30,7 +30,6 @@ mod cost_budget;
mod credential_scrub;
mod embedder_hooks;
mod loop_guards;
-mod memory_protocol;
mod packed_tool_route;
mod repeated_failure;
mod research_budget;
@@ -46,7 +45,6 @@ pub(crate) use cost_budget::CostBudgetMiddleware;
pub(crate) use credential_scrub::credential_scrub_middleware;
pub(crate) use embedder_hooks::EmbedderToolHooksMiddleware;
pub(crate) use loop_guards::is_repeat_call_exempt;
-pub use memory_protocol::memory_protocol_middleware;
pub(crate) use packed_tool_route::PackedToolRouteMiddleware;
pub(crate) use repeated_failure::RepeatedToolFailureMiddleware;
pub(crate) use research_budget::ResearchBudgetMiddleware;
diff --git a/crates/openhuman-core/src/agent/tinyagents/mod.rs b/crates/openhuman-core/src/agent/tinyagents/mod.rs
index 63edf3d7f5..2b9e559132 100644
--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs
@@ -48,7 +48,6 @@ mod policy_denial;
pub(crate) mod reaper;
pub(crate) mod reasoning;
pub(crate) mod replay;
-pub(crate) mod retriever;
mod routes;
mod steering_forwarder;
pub(crate) mod stop_hooks;
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index 885256813a..3fddd687db 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -27,23 +27,19 @@
//! tools into the catalog.
mod delegate;
mod plan_exit;
-pub mod remember_preference;
// Pure `skill_runtime` client (spawn + await a workflow run) — compiled out
// with the `skills` gate so the tool list OMITS these rather than degrading
// them to a disabled-error.
#[cfg(feature = "skills")]
mod run_workflow;
-pub mod save_preference;
mod todo;
pub use delegate::DelegateTool;
pub(crate) use delegate::DelegateToolDispatch;
pub use plan_exit::{PlanExitTool, PLAN_EXIT_MARKER};
-pub use remember_preference::RememberPreferenceTool;
#[cfg(feature = "skills")]
pub use run_workflow::{
AwaitWorkflowTool, RunWorkflowTool, AWAIT_WORKFLOW_TOOL_NAME, RUN_WORKFLOW_TOOL_NAME,
};
-pub use save_preference::SavePreferenceTool;
pub use todo::TodoTool;
pub(crate) use todo::TodoToolDispatch;
diff --git a/crates/openhuman-core/src/core/mod.rs b/crates/openhuman-core/src/core/mod.rs
index 0145d3cf02..1fc874025b 100644
--- a/crates/openhuman-core/src/core/mod.rs
+++ b/crates/openhuman-core/src/core/mod.rs
@@ -12,7 +12,6 @@ pub mod auth;
pub mod bus;
pub mod bus_testing;
pub mod cli;
-pub mod cli_capability;
pub mod dispatch;
pub mod envelope;
pub mod event_bind_tokens;
@@ -25,7 +24,6 @@ pub mod invoke;
pub mod legacy_aliases;
pub mod log_redaction;
pub mod logging;
-pub mod memory_cli;
pub mod observability;
pub mod outcome;
pub mod params;
diff --git a/crates/openhuman-core/src/integrations/composio/ops/mod.rs b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
index 70d5c59d14..76e7ed61d5 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
@@ -31,7 +31,6 @@ mod connector_runs;
mod direct_mode;
mod error_utils;
mod execute;
-mod memory_cleanup;
mod pass_budget;
mod pass_failure;
mod providers_ops;
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rs
index feb58001e4..696ded9df9 100644
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@ -49,8 +49,6 @@ pub mod desktop;
#[cfg(feature = "documents")]
pub mod documents;
pub mod host;
-pub mod memory;
-mod memory_host;
pub mod ops;
pub mod registry;
pub mod runtime;
diff --git a/crates/openhuman-core/src/tools/impl/system/mod.rs b/crates/openhuman-core/src/tools/impl/system/mod.rs
index 5a9b56e90f..fb894c0021 100644
--- a/crates/openhuman-core/src/tools/impl/system/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/system/mod.rs
@@ -13,7 +13,6 @@ mod python_exec;
mod retrieve_tool_output;
mod schedule;
mod shell;
-mod tool_stats;
mod update_apply;
mod update_check;
diff --git a/crates/openhuman-core/src/tools/mod.rs b/crates/openhuman-core/src/tools/mod.rs
index a101fdf790..88323cfd20 100644
--- a/crates/openhuman-core/src/tools/mod.rs
+++ b/crates/openhuman-core/src/tools/mod.rs
@@ -1,5 +1,4 @@
pub mod agent_policy;
-mod capability;
pub mod host_extensions;
pub mod ops;
pub mod orchestrator_tools;
@@ -36,9 +35,7 @@ pub use crate::integrations::task_sources::tools::*;
pub use crate::integrations::tools::*;
#[cfg(feature = "mcp")]
pub use crate::mcp::registry::tools::*;
-pub use crate::memory::agent::tools::*;
-pub use crate::memory::tools::goals::*;
-pub use crate::memory::tools::*;
+pub use crate::memory::tools::{MemoryTool, MEMORY_TOOL_NAME};
pub use crate::platform::cost::tools::*;
pub use crate::platform::doctor::tools::*;
pub use crate::platform::health::tools::*;