File size: 2,279 Bytes
108e9af
 
7cb2810
 
 
 
 
 
108e9af
 
7cb2810
7fdd1e7
7cb2810
 
 
7fdd1e7
 
 
7cb2810
108e9af
7cb2810
108e9af
7cb2810
108e9af
7cb2810
 
 
108e9af
79b796a
108e9af
7cb2810
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
license: mit
task_categories:
- text-generation
tags:
- agent-evals
- linear
- graphql
---

# Agent-Diff: Linear Bench Mini

This dataset is part of the **Agent-Diff** benchmark, presented in the paper [Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation](https://huggingface.co/papers/2602.11224).

[Website](https://agentdiff.dev) | [GitHub](https://github.com/agent-diff-bench/agent-diff) | [Paper](https://huggingface.co/papers/2602.11224)

![image](https://cdn-uploads.huggingface.co/production/uploads/68fce8f5dfd2a1e1cae334bb/G8dofl-K8F-V3SxKyBiI_.png)

## Context

The Linear Bench suite runs inside the Agent Diff isolation engine, with its own Postgres schema replaying the Linear GraphQL API. Agents interact via Linear's public surface area to satisfy CRUD-style tasks (create issues, move states, add labels, etc.). Task success is defined by whether the expected change in environment state was achieved using a novel state-diff contract.

## Files

- `data/train.jsonl`: Training tasks and prompts.
- `dataset_infos.json`: Dataset configuration.
- `seeds/linear_default.json`: Initial state configuration for the Linear environment.

## Usage

To use this benchmark, you can interact with the isolated environment using the `agent-diff` Python SDK.

### Install the SDK
```bash
pip install agent-diff
```

### Initialize and Run
```python
from agent_diff import AgentDiff

# Initialise isolated environment from the linear template
client = AgentDiff()
env = client.init_env(
    templateService="linear", 
    templateName="linear_default",
    impersonateUserId="U01AGENBOT9", 
    TTL="3600"
)

# Take before snapshot
run = client.start_run(envId=env.environmentId)

# Your agent performs tasks using the environment URL:
# print(env.environmentUrl)

# Compute diff (changes in the environment) and get results
diff = client.diff_run(runId=run.runId)

# Inspect changes
print(diff.diff['inserts'])   # New records added by agent
print(diff.diff['updates'])   # Modified records

# Clean up
client.delete_env(envId=env.environmentId)
```

For more details on evaluations and the state-diff framework, please refer to the [official GitHub repository](https://github.com/agent-diff-bench/agent-diff).