lats

Plan language agent tasks with Monte Carlo Tree Search.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/kinnerkarmanish/mak --skill lats-kinnerkarmanish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lats
Source: https://github.com/kinnerkarmanish/mak/tree/main/library/skills/ai-patterns/lats
Command: npx skills add https://github.com/kinnerkarmanish/mak --skill lats-kinnerkarmanish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solve complex planning problems for language agents using Monte Carlo Tree Search.

Core Features & Use Cases

  • Monte Carlo Tree Search with LLM reasoning for language agents
  • Complex multi-step planning, code generation with tests, and decision-making under uncertainty
  • Activation in environments providing signals (tests, builds, APIs)

Quick Start

Provide a complex planning task and let LATS generate a Monte Carlo tree search based plan.

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 work for language agent planning?

Monte Carlo Tree Search guides language agent planning by executing SELECT, EXPAND, SIMULATE, REFLECT, and BACKPROPAGATE steps. It uses LLM reasoning to explore multi-step decision trees, evaluating potential outcomes based on environmental signals to determine the optimal action path.

How do I use LLM reasoning for multi-step code generation with tests?

To use LLM reasoning for multi-step code generation with tests, provide a complex planning task to trigger the Monte Carlo tree search generation. The agent expands possible code solutions, simulates execution against test signals, and backpropagates results to refine the final output.

Can I use Monte Carlo planning for decision-making under uncertainty in API environments?

Yes, Monte Carlo planning supports decision-making under uncertainty across API environments. It activates in environments that provide feedback signals such as builds or API responses, allowing the language agent to simulate actions and select paths that maximize positive outcomes.

What is the best way to plan complex tasks for AI agents using tree search?

The best way to plan complex tasks for AI agents is using Monte Carlo Tree Search with LLM reasoning. It systematically explores multi-step possibilities, reflects on simulated environmental signals, and backpropagates evaluations to construct an optimal decision-making plan.

Do I need an LLM backend and task orchestration tooling for language agent tree search?

Yes, you need an LLM backend and task orchestration tooling to perform language agent tree search. These components are required to execute the core SELECT, EXPAND, SIMULATE, REFLECT, and BACKPROPAGATE operations during the multi-step planning process.

Why use Monte Carlo Tree Search instead of standard LLM prompting for complex planning?

Monte Carlo Tree Search surpasses standard LLM prompting by systematically exploring multiple decision paths under uncertainty. It iteratively simulates and reflects on environmental signals like tests or builds, backpropagating outcomes to optimize multi-step plans rather than relying on single-pass generation.