Skip to main content
Benchmark PraisonAI agents against Terminal-Bench 2.0, the Stanford/Laude Institute standard for evaluating AI coding agents in realistic terminal environments.
The user benchmarks a terminal agent; Harbor runs PraisonAI inside Docker against Terminal-Bench tasks and records pass or fail scores.

Quick Start

1

Install Dependencies

Install Harbor framework and PraisonAI with shell tools.
Set your API key:
2

Run Benchmark

Execute Terminal-Bench with PraisonAI external agent on a subset of tasks.

How It Works

Terminal-Bench provides standardized evaluation of AI agents on realistic coding tasks like compiling code, training models, and system administration.

Integration Approaches


YAML Configuration

Configure benchmark runs using Harbor’s YAML format for reproducible experiments.
Run with configuration:

Task Filtering & Selection

Run specific tasks for targeted testing or debugging.
Run a subset for quick testing with the -l flag.
Scale to higher concurrency using cloud providers.

Interpreting Results

Terminal-Bench uses binary scoring where each task either passes (1.0) or fails (0.0).
Model Performance: gpt-4o-mini typically scores near 0.0 on hard tasks. Use openai/gpt-4o or anthropic/claude-3-7-sonnet-20250219 for meaningful scores.

Example Output

Real benchmark session showing PraisonAI external agent results:
Tasks included: Cython compilation, Bayesian network fitting, C source build, adaptive sampling, JavaScript filtering.

Best Practices

Always verify the benchmark works by testing with the oracle agent first.
This should achieve a perfect score (1.0) and confirm your setup is correct.
Choose models based on your goals:
  • Testing integration: openai/gpt-4o-mini (fast, cheap, low scores)
  • Real benchmarking: openai/gpt-4o or anthropic/claude-3-7-sonnet-20250219
  • Cost optimization: Start with 5-10 tasks before running full benchmark
Terminal-Bench tasks can be resource intensive:
  • Start with -n 2 concurrency for testing
  • Scale to -n 8 for serious benchmarking
  • Use cloud providers (Daytona, E2B, Modal) for -n 32+ concurrency
When tasks fail, examine the execution logs:
Common failure modes: timeout, missing dependencies, incorrect file paths.

Troubleshooting

The coroutine serialization error mentioned in early Terminal-Bench integration docs has been fixed in the current SDK version. If you encounter it, update PraisonAI to the latest version.

Sandbox Execution

Safe code execution in isolated environments

Real API Testing

Testing agents with real API integrations