# TRAIL Benchmark

> A benchmark dataset and evaluation scripts for testing how well LLMs locate errors in annotated AI agent execution traces.

TRAIL (Trace Reasoning and Agentic Issue Localization) is an open-source benchmark from patronus-ai. It provides 148 annotated AI agent execution traces containing 841 errors across reasoning, execution, and planning categories, along with Python scripts to evaluate models on them.

## What It Is

TRAIL is a dataset plus evaluation harness for trace debugging of agent workflows. The traces come from real-world software engineering and information retrieval tasks. The README states that the benchmark challenges even state-of-the-art LLMs, with the best model achieving only 11% accuracy.

## How the Evaluation Works

After installing dependencies from requirements.txt in a virtual environment, users run run_eval.py with a LiteLLM-compatible model ID, a data directory, an output directory, a worker count, and a split (GAIA or SWE Bench). Evaluation results are written to the results directory. A second script, calculate_scores.py, reads those results and stores a text file with the calculated scores for each model.

## Citation and Licensing

The project is released under the MIT License. The README asks users of the code or dataset to cite the accompanying paper, arXiv 2505.08638 (Deshpande et al., 2025).

## Features
- 148 annotated agent execution traces
- 841 labeled errors across reasoning, execution, and planning categories
- GAIA and SWE Bench splits
- Evaluation script supporting LiteLLM-compatible models
- Parallel evaluation with configurable workers
- Score calculation script producing per-model results
- MIT licensed

## Integrations
LiteLLM

## Platforms
API, CLI

## Pricing
Open Source

## Links
- Website: https://github.com/patronus-ai/trail-benchmark
- Documentation: https://github.com/patronus-ai/trail-benchmark
- Repository: https://github.com/patronus-ai/trail-benchmark
- EveryDev.ai: https://www.everydev.ai/tools/trail-benchmark
