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
- External Agent (Recommended)
- Wrapper Agent (CLI-based)
The external agent approach uses PraisonAI’s Run command:
Agent class directly with Harbor’s container environment.YAML Configuration
Configure benchmark runs using Harbor’s YAML format for reproducible experiments.Task Filtering & Selection
Filter by Task Names
Filter by Task Names
Run specific tasks for targeted testing or debugging.
Limit Task Count
Limit Task Count
Run a subset for quick testing with the
-l flag.Cloud Execution
Cloud Execution
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:Best Practices
Start with Oracle Agent
Start with Oracle Agent
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.
Use Appropriate Models
Use Appropriate Models
Choose models based on your goals:
- Testing integration:
openai/gpt-4o-mini(fast, cheap, low scores) - Real benchmarking:
openai/gpt-4ooranthropic/claude-3-7-sonnet-20250219 - Cost optimization: Start with 5-10 tasks before running full benchmark
Monitor Resource Usage
Monitor Resource Usage
Terminal-Bench tasks can be resource intensive:
- Start with
-n 2concurrency for testing - Scale to
-n 8for serious benchmarking - Use cloud providers (Daytona, E2B, Modal) for
-n 32+concurrency
Debug Failed Tasks
Debug Failed Tasks
When tasks fail, examine the execution logs:Common failure modes: timeout, missing dependencies, incorrect file paths.
Troubleshooting
Related
Sandbox Execution
Safe code execution in isolated environments
Real API Testing
Testing agents with real API integrations

