How Memento's Planner-Executor architecture works
mainMemento uses a two-stage loop to solve tasks without updating LLM weights:
- Meta-Planner: Uses a high-level model (e.g., GPT-4.1) to decompose a query into executable subtasks. It uses Case-Based Reasoning (CBR) to retrieve relevant past experiences from the Case Memory to guide planning.
- Executor: Uses a reasoning model (e.g., o3) to execute subtasks. It acts as an MCP client, orchestrating tools (web search, code execution, etc.) and writing outcomes back to the system.
- Case Memory: Stores experiences as tuples of
(s_T, a_T, r_T)(state, action, reward) for future experience replay.
This approach reframes continual learning as memory-based online reinforcement learning over a memory-augmented MDP.