Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add topprismdata/cultivating-ml-agent --skill mcts-pipeline-searchgit clone --depth 1 https://github.com/topprismdata/cultivating-ml-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/mcts-pipeline-search)<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/mcts-pipeline-search"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/mcts-pipeline-search/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/mcts-pipeline-search"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/mcts-pipeline-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01054 |
| Opus 5.5 | $0.00024 | $0.00422 |
| Sonnet 5.5 | $0.00012 | $0.00211 |
| Haiku 4.5 | $0.00006 | $0.00105 |
Grade A, and why
mcts-pipeline-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCTS Pipeline Search
Context
Grid/random search wastes budget exploring dead branches. MCTS (Monte Carlo Tree Search) uses UCB1 to balance exploitation (best so far) and exploration (uncertain branches). agy recommends MCTS as P2 for Top-1% scenarios: used by AIDE for ML pipeline exploration, AlphaGo for game trees.
The core insight: UCB1 prevents both "stuck on suboptimal" and "random walk", getting best of both.
Guidance
Basic Usage
from framework.src.mcts import MCTSSearch, grid_expansion
# 网格定义
grid = {
"num_leaves": [15, 31, 63, 127],
"learning_rate": [0.01, 0.05, 0.1],
"n_estimators": [100, 500, 1000],
}
# 评估函数: 真实 CV 或 proxy
def evaluator(config):
return train_and_score(config) # 返回 0-1 score
# 扩展: 网格生成子配置
expansion = grid_expansion(grid)
# 搜索
search = MCTSSearch(evaluator, expansion, max_depth=3)
result = search.search(initial_config={"num_leaves": 31}, iterations=100)
print(f"Best: {result.best_node.config}")
print(f"Score: {result.best_score:.3f}")
print(f"Tree size: {result.tree_size}")
Custom Expansion (Beyond Grid)
def my_expansion(config):
"""对当前 config 生成邻居(参数 ±10%)"""
neighbors = []
for delta in [-0.1, 0.1]:
new = dict(config)
new["learning_rate"] = max(0.001, config["learning_rate"] * (1 + delta))
neighbors.append(new)
return neighbors
Pipeline Search DAG
# 探索不同模型 pipeline 组合
def pipeline_evaluator(config):
# config 包含: model_type, features, ensemble_method
if config["model_type"] == "lgbm":
return train_lgbm(config)
elif config["model_type"] == "xgb":
return train_xgb(config)
elif config["model_type"] == "ensemble":
return train_ensemble(config)
def pipeline_expansion(config):
"""从当前 pipeline 探索下一个组件"""
next_steps = []
for model in ["lgbm", "xgb", "catboost", "ensemble"]:
new = dict(config)
new["model_type"] = model
next_steps.append(new)
return next_steps
search = MCTSSearch(pipeline_evaluator, pipeline_expansion, max_depth=5)
result = search.search({"features": "basic"}, iterations=200)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 121 lines · 59 tokens per session scan A fcd11f70515a
mcts-pipeline-search is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 1,054 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mcts-pipeline-search compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcts-pipeline-searchtopprismdata/cultivating-ml-agent | Skill | 5 | 1mo ago | MIT | A | 59 | Claude Code, Codex |
| huggingface-hubbraxtonROSE4/zorro-agent | Skill | 11 | 7mo ago | MIT | C | 43 | Claude Code, Codex |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | today | MIT | A | 25 | Claude Code |
| agent-safla-neuralruvnet/ruflo | Skill | 83k | today | MIT | A | 24 | Claude Code |
| neural-trainingruvnet/ruflo | Skill | 83k | today | MIT | A | 64 | Claude Code |
| kv-cache-designbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |
| reward-designbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 131 | Claude Code, Codex |