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.
Prerequisites
Section titled “Prerequisites”- An agency account with the
owner,adminormemberrole. - A scope to attach the memory to — usually a project.
What a memory carries
Section titled “What a memory carries”| 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 |
Write one
Section titled “Write one”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.
Read and search
Section titled “Read and search”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.
Where memories come from
Section titled “Where memories come from”Most are written by hlix rather than by you.
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.
If a memory is missing or not being used
Section titled “If a memory is missing or not being used”{"error":"This action is restricted to the agency"}with403. The caller is a portal client. Memory access requires an agency role; see Roles & permissions.{"error":"Not found"}with404. No memory with that id in this Workspace.- A
400on create. Check the enums —scope,category,sourceandstatuseach accept only the values in the table above, andvalueis 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. Atentativeentry is presented as unreviewed and is weighted accordingly. Promote it toapproved. - 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.