Skip to content

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

chore(memory): remove memory diff tool registration

Steven Enamakel0560fa11d0f9
diff --git a/src/core/all.rs b/src/core/all.rs
index ea1fdd5f27..8d1e6c8444 100644
--- a/src/core/all.rs
+++ b/src/core/all.rs
@@ -849,13 +849,6 @@ fn build_registered_controllers() -> Vec<GroupedController> {
Some(Capability::Sources),
crate::openhuman::memory::sources::all_memory_sources_registered_controllers(),
);
- // Memory diff — snapshot-based change tracking for memory sources
- push_cap(
- &mut controllers,
- DomainGroup::Memory,
- Some(Capability::Diff),
- crate::openhuman::memory::diff::all_memory_diff_registered_controllers(),
- );
// Referral and growth tracking
push(
&mut controllers,
@@ -1169,9 +1162,6 @@ pub fn namespace_description(namespace: &str) -> Option<&'static str> {
"memory_sources" => Some(
"User-configured data connectors (Composio, folders, GitHub repos, RSS, web pages) that feed memory.",
),
- "memory_diff" => Some(
- "Snapshot-based change tracking for memory sources — capture state, compute diffs, and surface changes to agents.",
- ),
"referral" => Some("Referral codes, stats, and apply flows via the hosted backend API."),
"run_ledger" => Some(
"Durable agent and workflow run state, child lineage, events, telemetry, and checkpoint references.",
diff --git a/src/openhuman/memory/tools.rs b/src/openhuman/memory/tools.rs
index 5b5962eced..05388e0f92 100644
--- a/src/openhuman/memory/tools.rs
+++ b/src/openhuman/memory/tools.rs
@@ -16,10 +16,6 @@ mod store;
// `raw_store` was `store/tools/`, `search` was `search/tools/`, `tool_memory`
// was `tool_memory/tools/` — and `diff` / `goals` / `people` were each that
// domain's `tools.rs`.
-// Git-backed diff snapshots only exist under `memory-git`; upstream gated this
-// at `diff::tools`, and the move here has to carry that with it.
-#[cfg(feature = "memory-git")]
-pub mod diff;
pub mod goals;
pub mod raw_store;
pub mod search;
@@ -35,8 +31,6 @@ pub use store::MemoryStoreTool;
// The tools that came back from the extracted crate, re-exported flat so
// `openhuman::tools`'s glob keeps every historical name in scope — the
// registration sites in `tools/ops.rs` name them unqualified.
-#[cfg(feature = "memory-git")]
-pub use diff::MemoryDiffTool;
pub use goals::{GoalsAddTool, GoalsDeleteTool, GoalsEditTool, GoalsListTool};
pub use raw_store::{MemoryStoreKindsTool, MemoryStoreRawChunksTool, MemoryStoreRawSearchTool};
pub use search::{MemoryChunkContextTool, MemoryHybridSearchTool, MemoryVectorSearchTool};
diff --git a/src/openhuman/tools/mod.rs b/src/openhuman/tools/mod.rs
index db8fed9f02..82430c569f 100644
--- a/src/openhuman/tools/mod.rs
+++ b/src/openhuman/tools/mod.rs
@@ -39,8 +39,6 @@ pub use crate::openhuman::integrations::tools::*;
#[cfg(feature = "mcp")]
pub use crate::openhuman::mcp::registry::tools::*;
pub use crate::openhuman::memory::agent::tools::*;
-#[cfg(feature = "memory-git")]
-pub use crate::openhuman::memory::tools::diff::*;
pub use crate::openhuman::memory::tools::goals::*;
pub use crate::openhuman::memory::tools::*;
pub use crate::openhuman::platform::cost::tools::*;
diff --git a/src/openhuman/tools/ops.rs b/src/openhuman/tools/ops.rs
index 154d28096e..bbe20fbb03 100644
--- a/src/openhuman/tools/ops.rs
+++ b/src/openhuman/tools/ops.rs
@@ -691,15 +691,6 @@ pub fn all_tools_with_runtime(
memory_hybrid_search, memory_store_raw_search, memory_store_raw_chunks, memory_store_kinds"
);
- // Memory diff — structured "what changed in the agent's world since a
- // checkpoint/last sync". Drives the subconscious tick's first stage and is
- // available to any agent that lists it. Unit struct, no runtime deps.
- // Absent rather than erroring when `memory-git` is off: a registered tool
- // that always fails is worse than no tool, because the model keeps
- // choosing it and reporting the failure back to the user.
- #[cfg(feature = "memory-git")]
- tools.push(Box::new(crate::openhuman::memory::diff::MemoryDiffTool));
-
// Presentation generation (#2778). Native-Rust engine (ppt-rs
// backed) as of the #2780-follow-up rust-engine refactor — no
// managed Python venv, no first-call install latency. Always