---
title: "The durable review payload for one agent-touched file"
method: GET
path: "/v1/agent/touched/review"
tags: ["Agent"]
---

# The durable review payload for one agent-touched file

`GET /v1/agent/touched/review`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/agent/touched/review`
- Auth: HTTP bearer

The persisted review content for one touched `(path, runId)`: for a
content op (`write` / `edit` / `delete`) the captured pre/post snapshot
under `mutation` (the same field set the per-session stream's
`fileMutation` frames carry — `null` content with a false omitted flag
means genuinely absent on that side, a true flag means uncaptured and
the reviewer re-reads current bytes); for a `move` / `rename` the
`{from, to}` origin summary under `move` (`null` when the origin was
never captured). This is the review panel's content source: unlike the
per-session `GET /v1/agent/stream` ring it survives the ring rolling,
the 64-session LRU, and a ToolPiper restart. `{found: false}` for an
unknown or already-cleared touch — the reviewer falls back to a
current-bytes re-read.

## Query parameters

- `path` string, required
- `runId` string, required

## Response `200`

The review payload, or found:false when unknown / cleared

- object
  - `found` boolean
  - `path` string
  - `op` string: Last mutation kind (write | edit | delete | move | rename)
  - `runId` string
  - `mutation` object, nullable: The captured pre/post snapshot for a content op (null for move/rename)
    - `path` string
    - `tool` string
    - `oldContent` string, nullable
    - `newContent` string, nullable
    - `oldOmitted` boolean
    - `newOmitted` boolean
  - `move` object, nullable: The origin summary for a move/rename (null otherwise, or when the origin aged out)
    - `from` string
    - `to` string

## Other responses

- `400`: Missing/invalid path or runId query param

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
