用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Miosa-osa/canopy --skill lats命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lats |
| description | Language Agent Tree Search - Monte Carlo planning - 92.7% on HumanEval |
| trigger | complex planning, code generation, decision-making under uncertainty |
| priority | 1 |
| dynamic | false |
| created | 2026-01-26 |
Monte Carlo Tree Search combined with LLM reasoning. Achieved 92.7% pass@1 on HumanEval (SOTA).
Use for:
while not solved and budget > 0:
1. SELECT: Pick best node using UCT formula
2. EXPAND: Generate N candidate actions
3. SIMULATE: Execute actions, get environment feedback
4. REFLECT: Self-evaluate trajectory quality
5. BACKPROPAGATE: Update scores up the tree
UCT(node) = exploitation + C * sqrt(ln(N) / n)
= avg_score + exploration_bonus
Where:
- C = exploration constant (typically 1.41)
- N = parent visit count
- n = node visit count
Generate top-5 candidate actions in parallel using the Task tool.
"Given this trajectory and outcome:
Trajectory: [actions taken]
Result: [success/failure + details]
Rate this approach 1-10 and explain:
1. What worked well?
2. What went wrong?
3. How could it be improved?"
def backpropagate(node, score):
while node:
node.visits += 1
node.total_score += score
node = node.parent
LATS is activated by @master-orchestrator when:
LATS is compute-intensive (5-10x more LLM calls). Reserve for:
Based on ICML 2024 research - arXiv:2310.04406