Eval Library
Anthropic
For AnthropicAI PlatformKnowledge Retention

Memory Tool And Context Editing

Claude API · Anthropic

Foundation Model & API — Anthropic (Claude)

Anthropic evals — Memory Tool & Context Editing (relift v3 InfraRed)

About Anthropic

Anthropic is an AI safety company and the maker of Claude. Its API exposes the Claude model family (Opus, Sonnet, Haiku) with tool use, prompt caching, extended thinking, batch processing, vision, the Files and Memory tools, and the Claude Agent SDK.

Employees

~1,000

Industry

Foundation Model

Headquarters

San Francisco, CA

Sample tests· showing 3 of 9

#InputExpected behaviorCheck
01

Agent includes the memory tool (type=memory_20250908) in tools[] without the beta header.

Send anthropic-beta: memory-2025-08-29 header on every request that includes the memory tool. Without it, the tool is rejected by the API. The beta gate may evolve — confirm header value against current docs [REQUIRES-VERIFICATION].

Pass / FailAi Platformhigh
02

Model emits memory tool_use command=create with path=/memories/preferences.md and file_text content.

Client writes the file under /memories/preferences.md (no path traversal). If file exists, create overwrites. Return tool_result confirming the path. On write error, return is_error:true with clear message.

Pass / FailAi Platformcritical
03

Model emits memory tool_use with command=view, path=/memories. Client must respond with the directory listing.

Client implements view by listing files under /memories in its own storage (local FS, KV, blob store). Return tool_result with a deterministic listing format the model can parse. Empty memory returns empty listing, not an error.

Pass / FailAi Platformhigh

How this eval is graded

Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.

Rubric criteria

  • Anthropic
  • Ai Platform
  • Memory Tool And Context Editing

Recommended for

Claude APIAnthropic customers

Works with

Related evals

Run this eval in your workspace

Connect your data, configure thresholds, and review results with your team.