---
slug: "TreeOfThoughts"
name: "TreeOfThoughts"
type: "Reasoning"
layer: "Mind"
ref: "TreeOfThoughts#8b8c"
sema_id: "sema:TreeOfThoughts#mh:SHA-256:8b8c49c9d68b7b09e89b3c4f98d1c66d20dce23c0f2838ba90633aa51114ef9b"
tags: ["Mind","Reasoning"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.pages.dev/bootstrap/index.json
url: https://mindscape.pages.dev/bootstrap/TreeOfThoughts/
related: ["ChainOfThought","Think","Tree","sema:RecursionDive#mh:SHA-256:21c78ad8cc5e658fd19356cec9b998d9af1b02c54eaa96ce2d2f0ec4d8a75639"]
---

# TreeOfThoughts

Branching exploration (Macro for Think(Tree))

Layer: Mind · Category: Reasoning

## Mechanism

The canonical implementation of branching reasoning. Instantiates the '[Think](https://mindscape.pages.dev/bootstrap/Think.md)' primitive with a branching '[Tree](https://mindscape.pages.dev/bootstrap/Tree.md)' topology. Enables exploration of multiple reasoning paths with backtracking or pruning. Utilizes [Tree](https://mindscape.pages.dev/bootstrap/Tree.md), [ChainOfThought](https://mindscape.pages.dev/bootstrap/ChainOfThought.md), [Think](https://mindscape.pages.dev/bootstrap/Think.md).

## Invariants

—

## Failure modes

—

## Parameters

- `breadth` (PositiveInteger, unspecified): Maximum parallel reasoning branches per node
- `depth` (Integer, [1, 20]): Maximum reasoning tree depth

## Signature

- `Think(Tree)`

## Builds on

- [ChainOfThought](https://mindscape.pages.dev/bootstrap/ChainOfThought.md) (Mind; References)
- [Think](https://mindscape.pages.dev/bootstrap/Think.md) (Mind; References)
- [Tree](https://mindscape.pages.dev/bootstrap/Tree.md) (Infrastructure; References)

## Used by

—

## Identity

- Sema ID: `sema:TreeOfThoughts#mh:SHA-256:8b8c49c9d68b7b09e89b3c4f98d1c66d20dce23c0f2838ba90633aa51114ef9b`
- Ref: `TreeOfThoughts#8b8c`
- Supersedes:
  - `sema:TreeOfThoughts#mh:SHA-256:581a1251e9eb48d2d2d5871c6c94ea26094c4ec99c2aea33ab22d30d0a351ded`
  - `sema:TreeOfThoughts#mh:SHA-256:a86a20f5654f270627909d673ca57344cf1a84eb866d38d8424e650e4d18806d`
  - `sema:TreeOfThoughts#mh:SHA-256:2abaddf003c5d94d9f39eec376a7de8adfd1c7f5c8e2cd8a82cae9c2ead3e53b`

## Links

- [Pattern page](https://mindscape.pages.dev/bootstrap/TreeOfThoughts/)
- [View in the interactive graph](https://mindscape.pages.dev/bootstrap/#TreeOfThoughts)
- [JSON](https://mindscape.pages.dev/bootstrap/TreeOfThoughts.json)
- [Index of all patterns](https://mindscape.pages.dev/bootstrap/index.json)
