Skip to main content
Harbor’s sweep functionality allows you to systematically explore parameter spaces to find optimal agent configurations. This guide shows you how to run parameter sweeps and analyze results.

Overview

Parameter sweeps help you:
  • Find optimal agent configurations
  • Compare different models and temperatures
  • Test retry strategies
  • Identify performance bottlenecks
  • Validate hyperparameter sensitivity

Quick Start

1

Define sweep configuration

Create a sweep config file:
sweep-config.yaml
2

Run sweep

This runs all combinations: 3 agents × 2 models × 3 temperatures = 18 experiments
3

Analyze results

View results table:

Sweep Configuration

Test all combinations of parameters:

Conditional Parameters

Different parameters per agent:

Timeout Multipliers

Analysis

Results Table

Output:

Export Results

Export to CSV for analysis:
Load in Python:

Statistical Significance

Compare configurations:

Common Sweep Patterns

Model Comparison

Temperature Tuning

Retry Strategy

Concurrency Optimization

Advanced Techniques

Multi-Objective Optimization

Balance success rate, cost, and time:

Bayesian Optimization

For expensive sweeps, use Bayesian optimization:

Adaptive Sweeps

Focus on promising regions:

Cost Optimization

Subset Evaluation

Test on small subset first:
Then run full evaluation on top performers only.

Early Stopping

Stop poor configurations early:

Best Practices

  1. Start small: Use subset of tasks for initial sweeps
  2. One variable at a time: Change one parameter when possible
  3. Multiple seeds: Run key configs multiple times for variance
  4. Document findings: Track insights in markdown/notebook
  5. Version control: Save sweep configs and results
  6. Monitor costs: Track spending during sweeps
  7. Use cloud: Leverage parallelization for faster sweeps

Next Steps

RL Optimization

Use sweep results for RL training

Custom Metrics

Define custom success metrics

Parallel Execution

Optimize sweep performance

Cloud Execution

Scale sweeps to the cloud