Anthropic Breaking change major

agent-memory-2026-07-22 beta header changes how memories are listed

A new beta header replaces managed-agents-2026-04-01 on Managed Agents memory store endpoints and changes list semantics: fixed ordering, restricted depth values, and segment-based path_prefix matching. Page cursors do not carry across.

What does this mean for me?

Action needed
  • Engineering leadership

    Cost, risk, timeline, team impact Action needed

    Anyone using Managed Agents memory stores must adjust list-query code, and the deadline is real: on 22 July 2026 the old header adopts the same behaviour, so waiting does not avoid the work. Treat this as a short, mandatory engineering task rather than an optional upgrade.

  • Engineer

    What to change, what breaks, what to test Action needed

    On `GET /v1/memory_stores/{id}/memories` with `agent-memory-2026-07-22`, `order_by`/`order` are ignored, `depth` accepts only `0`, `1` or omission (else 400), and `path_prefix` must end with `/` and matches whole segments. Replace `managed-agents-2026-04-01` on memory store endpoints — sending both returns 400 — and restart pagination from page one, since old cursors are invalid.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a developer API change.

With agent-memory-2026-07-22 set, GET /v1/memory_stores/{memory_store_id}/memories returns results in a stable, server-defined order and ignores order_by and order; depth accepts only 0, 1, or omission (anything else is a 400); and path_prefix must end with / and matches whole path segments rather than a substring. Cursors issued without the header are not valid with it, so restart pagination from the first page when you adopt it.

On memory store endpoints the new header replaces managed-agents-2026-04-01, and sending both returns a 400 error. Anthropic also stated that on July 22, 2026 the older header would adopt the same list behaviour, so the change reaches code that never opts in.

The Python 0.116.0, TypeScript 0.110.0, Go 1.56.0, Java 2.48.0, Ruby 1.55.0, PHP 0.36.0, C# 12.35.0, and CLI 1.16.0 SDKs send the new header on all memory store calls. If you pass betas explicitly on those calls, swap the value rather than adding a second one.

API surface

ParameterChangeBreakingModels
anthropic-beta: agent-memory-2026-07-22addedyes
order_bydeprecatedyes
depthchangedyes
path_prefixchangedyes
anthropic-beta: managed-agents-2026-04-01deprecatedyes

Topics: Agents and tool use

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person