RESEARCH — DEC 4, 2026

Is trajectory search all you need for agent memory?

We recently introduced FrontierMemory to evaluate how agents learn from past experience to improve on end tasks, enabling comparison of agent learning across models and techniques. We use FrontierMemory to compare search versus dreaming (i.e. sleep-time compute):

  1. Trajectory search: Agents have access to past trajectories (in local files) and are instructed to search them for relevant experience.
  2. Dreaming: Agents are given memory formed by dreaming across past trajectories (with direct trajectory search removed for a clean comparison).

While simple file-based trajectory search has saturated recall benchmarks since last year, we find that for end-task improvement, dreaming is a significant improvement over raw trajectory search. However, since dreaming and self-improvement are still frontier capabilities, trajectory search is better than "bad dreams" produced by weaker models.

Dreaming improves task performance while also reducing per-task cost

Agents with search alone cost more per task and achieve lower pass rates than agents with memory created through dreaming.

Dreaming with frontier models is up to 1.4x more performant and up to 1.5x cheaper per task than trajectory search alone.

Without memory, the agent must perform additional searches at test-time, rather than learning offline (at sleep-time), prior to test-time.

Trajectory search requires more test-time compute to be an effective form of memory

At lower reasoning levels (less effort at test time), search achieves minimal improvement over having no memory or search at all, largely because the agent does not know when to search under minimal reasoning.

By contrast, agents with dreamed memory achieve much higher performance even with minimal test-time reasoning. Always-in-context memory (such as skill descriptions and a top-level MEMORY.md) steers the agent’s behavior without retrieval, and also cues the agent on when to retrieve what.

Bad dreams are worse than no dreams

Dreaming is an unsolved research problem and most models today perform poorly at it. Frontier models like Gemini 4 Neon, Fable 5.2, and Opus 5.5, however, generate learned context that substantially improves both cost and performance for the task agent, even with no access to past trajectories.

Because effective dreaming currently relies on frontier models during learning, search can be more practical today when dream-time compute is constrained.

As smaller and cheaper models get better at forming memory, we expect dreaming to become a dominant inference workload which allows organizations to reduce test-time compute by increasing sleep-time compute.

Conclusion

We compare dreaming and search in isolation, showing that dreaming is more effective for learning and self-improvement when the right harness and model are used.

In practice, today’s most advanced stateful agents combine both dreams and search — allowing them to reprogram their behavior and search past experience more effectively.