C5 · Tree search

Family: Single agent

Several branches of reasoning or action are explored and evaluated, and the agent backtracks when needed.

Principle

Rather than a single thread, the agent grows several branches. Each is evaluated, the most promising are extended and the others dropped. This requires a reliable evaluator and an environment that can be reset: it remains a niche use.

The problem it solves

On a combinatorial problem, a single line of reasoning can get stuck in a dead end with no way back.

When to use it

  • The problem is a combinatorial search and a reliable branch evaluator is available.
  • The environment can be reset to explore several leads from the same starting point.

When to avoid it

  • In most cases: a plain retry or a vote (B4), or a reflection loop (C3), reaches similar accuracy for far less.
  • Budget or latency is constrained: cost and run time are the highest of the single-agent catalogue.

Synonyms by vendor

  • Tree of Thoughts (ToT) (Yao et al. (NeurIPS 2023))
  • Graph of Thoughts (Besta et al. (AAAI 2024))
  • Language Agent Tree Search (LATS) (Zhou et al. (ICML 2024))
  • Multi-path plan generator (CSIRO Data61)

Neighbouring patterns

Sources

Content reviewed on 2026-10-02

Pattern catalogue