lats

Plan language agent actions using Monte Carlo Tree Search with LLM reasoning.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LATS enables robust, scalable planning for language agents through Monte Carlo Tree Search (MCTS) combined with LLM reasoning to navigate complex, uncertain tasks.

Core Features & Use Cases

  • Deterministic planning for multi-step tasks with branching outcomes, including code generation and decision-making under uncertainty.
  • Self-evaluating trajectories: reflection prompts and backpropagation of scores to improve future actions.
  • Integration-ready: designed to work with orchestrators and agent environments for autonomous execution.

Quick Start

Activate LATS for complex planning tasks and let it generate candidate actions, evaluate trajectories, and backpropagate results.

Frequently Asked Questions about lats

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

FAQPage Schema
How does Monte Carlo Tree Search improve LLM reasoning for autonomous agents?

Monte Carlo Tree Search improves LLM reasoning by evaluating multiple branching action trajectories to navigate complex, uncertain tasks. It combines self-evaluating reflection prompts with backpropagated scores to guide future actions and refine autonomous behavior.

How do I plan multi-step code synthesis tasks with branching decision paths?

To plan multi-step code synthesis tasks, you can activate a workflow that generates candidate actions, simulates outcomes, and evaluates trajectories using iterative tests. This process selects, expands, and reflects on actions to robustly navigate uncertain coding environments.

Can I integrate Monte Carlo planning with existing agent orchestration frameworks?

Yes, you can integrate this Monte Carlo planning approach with existing agent orchestration frameworks. It is designed to work with orchestrators and agent environments to coordinate autonomous execution and manage complex task planning seamlessly.

What is the best way to handle decision-making under uncertainty for language agents?

The best way to handle decision-making under uncertainty is applying a structured workflow of select, expand, simulate, reflect, and backpropagate. This enables language agents to evaluate multiple trajectories and autonomously execute robust strategies.

When should I avoid using tree search for agent task planning?

You should avoid using tree search for agent task planning when tasks lack branching decision paths or uncertain environments. Without the need for iterative, self-evaluating strategies or complex multi-step trajectories, simpler planning methods are more efficient.

Does LATS support environments requiring iterative self-evaluating strategies?

Yes, LATS supports environments requiring iterative self-evaluating strategies by enforcing a workflow of select, expand, simulate, reflect, and backpropagate. This enables robust planning and continuous improvement of future actions for autonomous language agents.