Project Memories

Project-scoped knowledge base that agents build up over time. Agents save operational insights during execution that future agents on the same project can recall via full-text search.

Overview

Memories are a project-scoped knowledge base that agents build up over time. During execution, an agent can save an operational insight (a workaround it discovered, an efficient navigation path, a timing requirement) and future agents working on the same project can recall these memories to avoid repeating mistakes.

Each memory has a context (where it applies, like a specific page or flow), content (the actual advice), and a category (workaround, efficient_path, timing, navigation, auth, or general). Memories can also be created and managed via the API, not just by agents.

Recall and deduplication

When an agent recalls memories, the system performs a full-text search across the context and content fields and returns the most relevant active memories. Recall is ranked by relevance and limited to a small number of results to keep the agent's context focused.

When saving, the system checks for duplicates. If an existing memory covers the same context with similar content, it is reconfirmed (its use count increments and staleness resets) rather than creating a duplicate. If the context matches but the content has changed, the old memory is marked stale and the new one takes its place. This keeps the knowledge base current without manual cleanup.

POST /api/v1/projects/{id}/memories

Create a project memory

Creates a new memory or reconfirms an existing one if a duplicate is detected.

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesProject ID
contextstringbodyYesWhere this applies (page, flow, or UI element)
contentstringbodyYesThe insight — actionable advice for test runs
categorystringbodyNoOne of: workaround, efficient_path, timing, navigation, auth, general
sourcestringbodyNoOne of: api, chat (default: api)

Status Codes

CodeDescription
201Memory created
200Existing memory reconfirmed (duplicate detected)
400Validation error
401Unauthorized
404Project not found

Response Body

{
  "id": "019d...",
  "project_id": "019c...",
  "source": "api",
  "category": "timing",
  "context": "login page",
  "content": "Wait 3s after login for the dashboard spinner to finish",
  "status": "active",
  "use_count": 0,
  "staleness": 0,
  "created_at": "2026-03-27T10:00:00Z"
}
POST /api/v1/projects/{id}/memories
cURL
Response
GET /api/v1/projects/{id}/memories

List project memories

Returns memories for a project with cursor-based pagination. Filterable by status, category, and source.

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesProject ID
statusstringqueryNoFilter by status: active, stale, archived
categorystringqueryNoFilter by category
sourcestringqueryNoFilter by source: agent, api, chat
cursoruuidqueryNoCursor for pagination
limitintegerqueryNoMax results (default 50, max 100) (default: 50)

Status Codes

CodeDescription
200OK
400Invalid parameters
401Unauthorized
404Project not found
GET /api/v1/projects/{id}/memories
cURL
Response
GET /api/v1/projects/{id}/memories/{mid}

Get a project memory

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesProject ID
miduuidpathYesMemory ID

Status Codes

CodeDescription
200OK
401Unauthorized
404Memory or project not found
GET /api/v1/projects/{id}/memories/{mid}
cURL
Response
PATCH /api/v1/projects/{id}/memories/{mid}

Update a project memory

Update status, content, category, or context of a memory.

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesProject ID
miduuidpathYesMemory ID
statusstringbodyNoNew status: active, stale, archived
categorystringbodyNoNew category
contextstringbodyNoNew context
contentstringbodyNoNew content

Status Codes

CodeDescription
200Memory updated
401Unauthorized
404Memory or project not found
PATCH /api/v1/projects/{id}/memories/{mid}
cURL
Response
DELETE /api/v1/projects/{id}/memories/{mid}

Delete a project memory

Parameters

ParameterTypeInRequiredDescription
iduuidpathYesProject ID
miduuidpathYesMemory ID

Status Codes

CodeDescription
204Memory deleted
401Unauthorized
404Memory or project not found
DELETE /api/v1/projects/{id}/memories/{mid}
cURL
Response