# Takes a message history and a character budget and returns a shortened history together with a full account of what it cost. Four stages run in fixed order: pin protects messages that must survive (roles listed in keep_roles, the last keep_last_n messages, and anything you marked pin), dedupe removes later near-duplicates of an earlier message of the same role using word-overlap similarity, trim shortens unprotected survivors to max_message_chars at the last sentence boundary, and drop removes…

Verified by [Verified x402](https://verifiedx402.com).

- URL: https://agent.halowerk.com/v1/memory-compact
- Category: other
- Network: eip155:8453
- Advertised price: 0.005
- Last checked: 2026-11-30T05:25:48.691Z
- Score: 91.0

This listing passed a recent check: the endpoint is live and the advertised price and terms match. Check before paying, then pay the API yourself.

- HTML: https://verifiedx402.com/v/4a0073061c3501077b2ce7ce4873d520
- Badge: https://verifiedx402.com/badge.svg?url=https%3A%2F%2Fagent.halowerk.com%2Fv1%2Fmemory-compact
- Independent check: [vet402](https://vet402.com/api/v1/check?url=https%3A%2F%2Fagent.halowerk.com%2Fv1%2Fmemory-compact)

```json
{
  "checkedAt": null,
  "httpStatus": null,
  "latencyMs": null,
  "priceMatches": null,
  "payToMatches": null
}
```
