Overview
Search strategies control how Kapso explores the solution space. They generate solution candidates, run experiments, and track results.Available Strategies
| Strategy | Description | Best For |
|---|---|---|
generic | Claude Code + MCP gates for ideation and implementation | General problem solving |
benchmark_tree_search | Tree-based exploration with handler evaluation | MLE-Bench, ALE-Bench |
Generic Search
The main strategy for general problem solving. Uses Claude Code with MCP gates for both ideation and implementation.Configuration
Usage
MCP Gates
The generic strategy uses MCP gates for external knowledge access:| Gate | Tools | Purpose |
|---|---|---|
research | research_* | Deep research capabilities |
experiment_history | get_top_experiments, get_recent_experiments, search_similar_experiments | Learn from past experiments |
repo_memory | get_repo_memory_section, list_repo_memory_sections, get_repo_memory_summary | Repository understanding |
leeroopedia | search_knowledge, build_plan, review_plan, verify_code_math, diagnose_failure, propose_hypothesis, query_hyperparameter_priors, get_page | Curated ML/AI knowledge via Leeroopedia |
Benchmark Tree Search
Advanced strategy for benchmarks that explores solutions as a tree structure.Algorithm
Each iteration:- Prune: Remove unpromising solutions (after 20% budget)
- Expand: Generate new child solutions from selected nodes
- Select: Pick best nodes to experiment with
- Run: Execute experiments in parallel
Configuration
Parameters
| Parameter | Default | Description |
|---|---|---|
node_expansion_limit | 2 | Nodes to expand per iteration |
node_expansion_new_childs_count | 5 | Solutions generated per expansion |
code_debug_tries | 5 | Max debug attempts per solution |
exploration_budget_percent | 30 | When to switch to exploitation |
idea_generation_model | gpt-4.1-mini | Model for solution generation |
experimentation_per_run | 1 | Experiments per iteration |
first_experiment_factor | 1 | Multiplier for first iteration |
Exploration vs Exploitation
Node Structure (SearchNode)
Strategy Comparison
| Strategy | Evaluation | Stop Decision | Use Case |
|---|---|---|---|
generic | Agent-built | Feedback generator | kapso.evolve() |
benchmark_tree_search | Handler’s run() | Handler’s stop_condition() | MLE/ALE benchmarks |