PLN-PLN-02Tier IIPlanning & Decomposition

Tree-of-Thoughts / Multi-Path Exploration

For problems with branching decisions, explore multiple reasoning paths and evaluate: do not commit to the first viable path.

Runtime: Reason / PlanAgentOps: Build & IntegrateSee on the matrix →
TREE-OF-THOUGHTS — MULTI-PATH EXPLORATION Problem Thought Ascore 0.7 expand → Thought Bscore 0.4 ✕ prune Thought Cscore 0.8 ✓ continue →Yao et al. NeurIPS 2023: generate, evaluate, prune. Cap depth and breadth.
In Plain English

This page is the complete instruction page for one pattern called "Tree-of-Thoughts / Multi-Path Exploration." It explains the problem this pattern solves, the idea behind the solution, when you should (and should not) use it, and what happens afterward, both the good effects and the costs.

This matters because building AI agents is not just about making them clever. It is also about making them safe and predictable. Following a well-tested pattern like this one helps avoid common mistakes, and shows you exactly which safety rules and regulations it connects to, listed under "Standards Mesh" on this page.

Context

Problems with multiple reasonable approaches (mathematical proofs, search puzzles, design problems) benefit from exploring alternatives; greedy chains often miss the better path.

Problem

Single-chain reasoning commits early and cannot recover from an unfortunate first branch.

Forces

  • Breadth of search vs cost
  • Evaluation accuracy vs search depth

Solution

Generate multiple candidate thoughts at each decision point. Score candidates (heuristic, model-as-judge, or programmatic). Prune weak branches. Continue only the best. Cap by depth and breadth.

Placement

Where this pattern acts in the two lifecycles

Runtime Cognitive
01Perceive
02Reason / Plan
03Decide
04Act
05Observe
06Reflect / Learn
07Terminate

02 Reason / Plan. Interpret goal, decompose, select strategy. 13 of 61 catalogue patterns act at this stage.

AgentOps Lifecycle
01Design & Scope
02Build & Integrate
03Evaluate & Red-Team
04Deploy
05Operate & Monitor
06Iterate & Adapt
07Decommission

02 Build & Integrate. Model selection, tool wiring, memory design. 17 of 61 catalogue patterns act at this stage.

Stages and counts from the catalogue data. The Runtime lens is the loop the agent runs each turn; the AgentOps lens is the lifecycle the team runs the agent through. See the Matrix for every pattern at each stage.

Applicability

  • Combinatorial reasoning
  • Design generation
  • Optimisation problems with multiple reasonable strategies

Anti-Patterns

  • Applied to simple tasks where a single chain suffices
  • Unbounded exploration

Consequences

  • +Quality improvement on branching problems
  • +Robust to unlucky first guesses
  • −Multiplicative token cost
  • −Evaluation function hard to define well