tree-of-thoughts

Coordinate multi-path reasoning with BFS, DFS, and Beam search strategies.

226|55|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/Miosa-osa/canopy --skill tree-of-thoughts-miosa-osa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tree-of-thoughts
Source: https://github.com/Miosa-osa/canopy/tree/main/library/skills/ai-patterns/tree-of-thoughts
Command: npx skills add https://github.com/Miosa-osa/canopy --skill tree-of-thoughts-miosa-osa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Devises a framework for exploring, evaluating, and backtracking across multiple reasoning paths to improve solution quality on complex tasks. This approach helps avoid single-path biases by generating diverse hypotheses and selecting the best path through structured scoring and pruning.

Core Features & Use Cases

  • Multi-path exploration: generate multiple reasoning paths for a given problem.
  • Phase-driven workflow: decompose, generate, evaluate, and backtrack with configurable strategies (BFS/DFS/Beam).
  • Integration-ready: pairs with debug tools and system prompts to guide AI agents in planning tasks.

Quick Start

Describe a problem and follow the Tree of Thoughts process to generate three candidate thoughts, evaluate them, and select the best path.

Frequently Asked Questions about tree-of-thoughts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does multi-path reasoning improve complex decision making?

Multi-path reasoning improves complex decision making by generating diverse hypotheses and evaluating them with structured scoring, avoiding single-path biases. It applies backtracking across multiple paths to select the best solution.

What is the tree of thoughts process for planning and hypothesis generation?

The tree of thoughts process is a phased workflow that decomposes problems, generates candidate thoughts, evaluates them against criteria, and backtracks. It uses BFS, DFS, or Beam search strategies to navigate reasoning paths.

When should I use backtracking with beam search for reasoning tasks?

Use backtracking with beam search for reasoning tasks requiring extensive planning and hypothesis generation. It prunes poor paths early and retains top candidates, making it ideal for complex problems where evaluating all paths is unfeasible.

How do I start evaluating multiple reasoning paths for a problem?

Start evaluating multiple reasoning paths by describing your problem and following the decompose, generate, and evaluate phases. Generate three candidate thoughts, score them against your criteria, and select the best path.

Can I integrate multi-path reasoning with existing AI agent system prompts?

Yes, you can integrate multi-path reasoning with AI agent system prompts. The framework is integration-ready and pairs with debug tools and system prompts to guide agents in complex planning tasks.

Does single-path reasoning cause biases in complex planning tasks?

Single-path reasoning causes biases in complex planning tasks by committing to one trajectory without exploring alternatives. Multi-path exploration generates diverse hypotheses and uses structured pruning to mitigate this risk.