Skip to content

Memories

Record and curate project knowledge that hlix uses across cycles.

A memory stores knowledge for future work: a convention, decision, preference or lesson. Use memories for project context that agents should consider across cycles and that has no natural home in the code.

Memories belong to a Workspace and can be scoped to a project, cycle, task or agent. Agency members curate them; portal clients cannot view them.

  • An agency account with the owner, admin or member role.
  • A scope to attach the memory to — usually a project.
Field Values
scope org, project, cycle, task, agent
scopeId The id of that thing — the Workspace id for the Workspace scope
category convention, decision, lesson, preference, failure, heuristic
key A short handle, up to 200 characters
value The statement itself, up to 10,000 characters
source auto, user, interview, review — where it came from
confidence 0 to 1
status tentative, approved, archived
Terminal window
curl -sS -X POST "$HLIX_BASE_URL/v1/api/memories" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID" \
-H 'content-type: application/json' \
-d '{
"scope": "project",
"scopeId": "'"$PROJECT_ID"'",
"category": "convention",
"key": "error-envelope",
"value": "API errors always carry a stable machine-readable code alongside the message.",
"status": "approved"
}'

Expected result: 201 and the stored memory.

PATCH /v1/api/memories/{id} changes the value, the confidence or the status — the scope and category of an existing memory are fixed. DELETE /v1/api/memories/{id} removes one, and setting status to archived is the softer option when you want the record kept.

Terminal window
curl -sS "$HLIX_BASE_URL/v1/api/memories?scope=project&scopeId=$PROJECT_ID&status=approved" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID"

Expected result: 200 and the matching memories.

The list endpoint filters on scope, scopeId, status, a plain q text match and a limit. For ranked semantic search, use GET /v1/api/memories/search/{scope}/{scopeId}?q=…, which takes the same status and limit and returns entries ordered by similarity rather than by recency.

The status filter applies to both listing and semantic search.

Most are written by hlix rather than by you.

Terminal window
curl -sS -X POST "$HLIX_BASE_URL/v1/api/memories/extract/$CYCLE_ID" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID"

Expected result: 200 and {"message": "Memory extraction started"}.

Extraction runs in the background, so the response confirms it started rather than what it found; list memories again for the result. Extracted memories arrive as tentative: a reading of a finished cycle is a candidate until someone approves it.

Approved and unreviewed are treated differently

Section titled “Approved and unreviewed are treated differently”

The project manager and plan agent receive each memory with its status. An approved memory is presented as settled; other entries are marked unreviewed so agents can distinguish candidates from approved decisions.

Curating has a direct effect: promoting a good tentative memory to approved changes how much weight it carries, and archiving a wrong one stops it being repeated.

  • {"error":"This action is restricted to the agency"} with 403. The caller is a portal client. Memory access requires an agency role; see Roles & permissions.
  • {"error":"Not found"} with 404. No memory with that id in this Workspace.
  • A 400 on create. Check the enums — scope, category, source and status each accept only the values in the table above, and value is capped at 10,000 characters.
  • Extraction returned immediately and nothing appeared. It is a background job; the response only confirms it started. Re-list after a moment. A cycle with nothing worth recording produces nothing.
  • An agent ignored a memory you wrote. Check its status. A tentative entry is presented as unreviewed and is weighted accordingly. Promote it to approved.
  • A memory is right but attached to the wrong thing. Scope is fixed after creation. Write it at the correct scope and archive the old one.
  • The list is dominated by low-value entries. Archive them. Extracted memories are candidates, and pruning them is the intended workflow.