---
title: "Diff two trajectories"
method: GET
path: "/agent/v1/trajectories/{a}/diff/{b}"
tags: ["Agent Sandbox"]
---

# Diff two trajectories

`GET /agent/v1/trajectories/{a}/diff/{b}`

Aligns both call lists by position and reports the first divergence index plus per-call deltas on path, status, and response body hash. Two runs at the same seed and world version should be identical; a diff shows exactly where an agent's behaviour changed.

## Path parameters

- `a` string, required
- `b` string, required

## Response `200`

{ identical, divergence_index, compared_calls, deltas[] }

## Other responses

- `401` — No agent key
- `404` — One or both trajectories not found

---

[API](https://skmtc.net/reqres/apis/reqres-api.md) · [All operations](https://skmtc.net/reqres/apis/reqres-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reqres/reqres-api/revisions/e5ced6578853/schema)
