Working Memory Journal
AG2 Beta — cross-session memory via WorkingMemoryAggregate + WorkingMemoryPolicy
Reset
Session 1 — share a few things
aggregate=WorkingMemoryAggregate, trigger=on_end
Tell the journal a couple of things about today.
"Started an espresso setup…"
"Reading Pragmatic Programmer…"
"Booked Lisbon tickets…"
Send
/memory/working.md
written by WorkingMemoryAggregate after every turn
(empty — send a message in session 1)
Step 2 — when you're ready, end session 1. The agent in session 2 is a fresh instance and only sees the working-memory file.
End session 1 →
Session 2 — fresh Agent, same store
assembly=[WorkingMemoryPolicy()]
Ends-session-1 first. Then ask the new agent something only session 1 told it.
"What was I working on?"
"Travel plans?"
"Which book?"
Send
System prompt sent to session 2
Captured by a spy middleware on every LLM call
No LLM call in session 2 yet.