Skip to content

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

Enable team recall by default with pooled memory

Steven Enamakel1a0cbcf1116e
diff --git a/crates/openhuman-core/src/config/schema/memory.rs b/crates/openhuman-core/src/config/schema/memory.rs
index c7b380690c..98fd129e8b 100644
--- a/crates/openhuman-core/src/config/schema/memory.rs
+++ b/crates/openhuman-core/src/config/schema/memory.rs
@@ -18,7 +18,7 @@
//! learnings_limit = 8
//! brain_limit = 6
//! history_limit = 6
-//! team_limit = 0 # other agents' turns; 0 leaves the section out
+//! team_limit = 3 # other agents' turns; 0 leaves the section out
//! build_beliefs_every = 10 # turns between belief builds; 0 turns them off
//! pre_turn_timeout_ms = 5000
//! date_hint = false # a model call works out which days a turn is about
@@ -298,8 +298,9 @@ pub struct MemoryRecallConfig {
pub brain_limit: u32,
/// This agent's earlier turns.
pub history_limit: u32,
- /// Other agents' turns under the same root; `0`, the default, leaves the
- /// section out (with pooled chats there is no such section either way).
+ /// Other agents' turns under the same root; `0` leaves the section out.
+ /// With pooled chats, this reads the shared conversation node while
+ /// excluding this agent's own turns.
pub team_limit: u32,
/// Turns between belief builds of an agent's conversations; `0` turns
/// them off.
@@ -326,7 +327,7 @@ impl Default for MemoryRecallConfig {
learnings_limit: 8,
brain_limit: 6,
history_limit: 6,
- team_limit: 0,
+ team_limit: 3,
build_beliefs_every: 10,
pre_turn_timeout_ms: DEFAULT_PRE_TURN_TIMEOUT_MS,
date_hint: false,
diff --git a/crates/openhuman-core/src/config/schema/memory_tests.rs b/crates/openhuman-core/src/config/schema/memory_tests.rs
index 502cf3a471..f23693c769 100644
--- a/crates/openhuman-core/src/config/schema/memory_tests.rs
+++ b/crates/openhuman-core/src/config/schema/memory_tests.rs
@@ -17,7 +17,10 @@ fn defaults_select_tinyhumans_with_logging_and_recall_on() {
assert_eq!(config.recall.build_delay_secs, DEFAULT_BUILD_DELAY_SECS);
assert_eq!(config.agent_id, None);
assert_eq!(config.root, None);
- assert_eq!(config.recall.team_limit, 0, "no team section by default");
+ assert_eq!(
+ config.recall.team_limit, 3,
+ "three other-agent turns per pack"
+ );
assert!(
config.split_github_by_repo,
"one scope per repository by default"
diff --git a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
index d7f43d9401..93d6fbeee5 100644
--- a/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
+++ b/crates/openhuman-core/src/memory/lifecycle/mod_tests.rs
@@ -9,11 +9,8 @@ fn the_policy_mirrors_the_recall_config() {
let default = policy(&recall);
assert_eq!(
default,
- RecallPolicy {
- team_limit: 0,
- ..RecallPolicy::default()
- },
- "the defaults agree with TinyMemory's, except that OpenHuman leaves the team section out"
+ RecallPolicy::default(),
+ "the defaults agree with TinyMemory's"
);
recall.build_beliefs_every = 0;
diff --git a/vendor/tinymemory b/vendor/tinymemory
index 6d031061e3..7973cac089 160000
--- a/vendor/tinymemory
+++ b/vendor/tinymemory
@@ -1 +1 @@
-Subproject commit 6d031061e3e94a1bf4f8a45d62a55d701f7444be
+Subproject commit 7973cac089afaad1068f14e4ded6f4a1724f79e3