Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Read a group's memory snapshot as context in the mock model

Fei2411eaed4a78fd93
diff --git a/ds-bot/dev/mock-llm.mjs b/ds-bot/dev/mock-llm.mjs
index d148d8be..833be49f 100644
--- a/ds-bot/dev/mock-llm.mjs
+++ b/ds-bot/dev/mock-llm.mjs
@@ -114,10 +114,10 @@ function isSummary(body) {
function decide(body) {
const system = systemText(body.system) + '\n' + (body.messages ?? []).filter(m => m.role === 'system').map(m => textOf(m.content)).join('\n')
const tools = new Set((body.tools ?? []).map(entry => entry.name))
- // Clock snapshots are context, not a new scripted user command.
+ // Clock snapshots and a group's memory snapshot are context, not a new scripted user command.
const messages = (body.messages ?? []).filter(m => m.role !== 'system').map(message => {
if (message.role !== 'user') return message
- const isClock = value => value.startsWith('Current time: ') || value.startsWith('Time sampled while preparing turn ')
+ const isClock = value => value.startsWith('Current time: ') || value.startsWith('Time sampled while preparing turn ') || value.startsWith('## Group memory, shared by the members of this group chat')
const content = typeof message.content === 'string' ? (isClock(message.content) ? '' : message.content)
: message.content.filter(block => block.type !== 'text' || !isClock(block.text))
return { ...message, content }