Skip to content
Agentmart
Submit a tool

mcts-ahd

Monte Carlo Tree Search for Automatic Heuristic Design (MCTS-AHD) method skill.

Skill by Optima-CityU

IndexedBSD-3-Clause★ 677
Write a review

Chalk Labs

Need help deploying mcts-ahd?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/optima-cityu-mcts-ahd

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Monte Carlo Tree Search for Automatic Heuristic Design (MCTS-AHD) method skill. USE WHEN the user explicitly requests MCTS / Monte Carlo Tree Search for heuristic design, or wants tree-structured search with UCT-based exploration-exploitation balance.

Use cases: design, code-generation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/mcts-ahd

What's inside

Skill name
mcts-ahd
Description
Monte Carlo Tree Search for Automatic Heuristic Design (MCTS-AHD) method skill. USE WHEN the user explicitly requests MCTS / Monte Carlo Tree Search for heuristic design, or wants tree-structured search with UCT-based exploration-exploitation balance.
License
BSD-3-Clause
Instructions
60 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • params.yaml

SKILL.md (first lines)

# MCTS-AHD Skill

> **Paper**: Zheng et al., "Monte Carlo Tree Search for Comprehensive Exploration in LLM-based Automatic Heuristic Design", ICML 2025.

## 1. Method Essence

MCTS-AHD models heuristic search as a **tree**: the root is a template/initial solution, each node is a heuristic implementation, and edges are "mutations producing child nodes". Four-step cycle:

1. **Selection**: From root, select a node using the UCT formula
2. **Expansion**: Use LLM to generate child node variants from the selected node
3. **Evaluation**: Evaluate the child node, obtain reward
4. **Backpropagation**: Update Q-value and visit count for all ancestor nodes along the path

UCT formula:
```
UCT = (Q - q_min) / (q_max - q_min) + λ₀ × eval_remain × √(log(parent.visits + 1) / node.visits)
```
- Term 1: Exploitation — normalized Q-value, favoring high-reward nodes
- Term 2: Exploration — weighted by λ₀×remaining budget, favoring less-visited nodes
- **α and λ₀ jointly control the exploration-exploitation balance** (reference: α=0.5, λ₀=0.1)

## 2. Recommended Parameters

See `params.yaml` in this directory for the recommended parameter configuration.

**Parameter Guidance**:
- `max_generations`: Interpreted as MCTS iterations; 500-2000 typical.
- `init_size`: 4-6 works well for most problems.
- `population_size`: 10-20 for moderate problems; increase for complex landscapes.
- `alpha`: Higher (0.7-1.0) = wider tree; lower (0.3-0.5) = deeper tree.
- `lambda_0`: Higher (0.2-0.5) = more exploration; lower (0.05-0.1) = more exploitation.
- `max_depth`: 10-15 prevents infinite deepening.

### What Happens During Evolution

1. Root node initialized from seed or template
2. Each iteration:
   - Select a node using UCT (balances Q-value and visit count)
   - Expand: generate 1-3 child nodes via LLM mutation
   - Evaluate children, update Q-values
   - Backpropagate: update all ancestors' visit counts and Q-values
3. Tree grows asymmetrically — high-value branches get explored more
4. Late iterations converge to the best branch for refinement

### Common Pitfalls

- Tree too shallow → increase `max_depth` or decrease `lambda_0`
- Tree too wide → decrease `alpha` or increase `lambda_0`
- All nodes similar → increase diversity in mutation prompts
- Budget exhausted before convergence → increase `max_sample_nums`

## 4. Acceptance Criteria

- Tree structure visible in evolution log (parent-child relationships)
- UCT scores reported for each selection decision
- Depth and breadth both explored (not just one path)
- Late iterations focus on refining the best branch
- Final best individual is a leaf node with highest Q-value

From Optima-CityU/LLM4AD_Next, BSD-3-Clause.

More from Optima-CityU/LLM4AD_Next

Signals

Stars
677
Forks
44
Open issues
1
Last commit (this folder)
Aug 25, 2026 (2 months ago)
Last release
Sep 29, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Optima-CityU

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get mcts-ahd running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying mcts-ahd?

CallGet help
Cite this page

mcts-ahd skill. Agent Mart. https://agentmart.dev/skills/optima-cityu-mcts-ahd (last updated 2026-10-24)