iblai-api-agent-memory
Skill15 starsChanged 59 days agoMITView on GitHub
Manage an ibl.ai agent's memories via the platform API — list and filter agent memories (by category, user, email, date), curate global (cross-agent) memories, curate shared agent knowledge injected into every user's chat, add/edit/delete memories, manage memory categories, and toggle capture/recall settings. Use when inspecting or curating what an agent remembers.
- Reads credentials
In this repository158 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-local-llmSkill
- iblai-vibe-os-agent-code-modeSkill
- iblai-vibe-projectSkill
- iblai-vibe-workflowSkill
- iblai-api-analyticsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.
- Very specific: line 131
If the new content collides with another of the agent's entries, returns 409.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iblai-api-agent-memory
★ Core family. With a screen:
/iblai-vibe-memory-guidemounts the memory surfaces — org-wide admin, one agent's tab, the member's own view — this skill is the headless twin (same data, exact endpoints).
Manage an agent's memories through the API: browse and filter what an agent has remembered, curate global (cross-agent) memories, add / edit / delete individual memories, manage the categories memories are filed under, and control capture / recall settings. Use when inspecting or curating what an agent remembers.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME,{mentor}= the agent's unique id (e.g.d17dc729-60fd-4363-81a0-f67d9318b03e). - Prefix / two spellings: endpoints live under the
ai-mentorbasehttps://api.iblai.app/dm/api/ai-mentor/orgs/{org}(the leading…below). A twinai-agentbase mirrors every route with thementorpath token swapped foragent(…/mentors/{mentor}/mentor-memories/↔…/agents/{agent}/agent-memories/); either works. - Two path bases: user-scoped routes hang off
…/orgs/{org}/users/{username}(written{u}below); memory categories hang off…/orgs/{org}/mentors/{mentor}directly (no user segment). - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Concepts
Two PGVector-backed memory stores ("memsearch") sit behind these endpoints:
- Global memories (
UserGlobalMemory) — scoped to a user + org, shared across every agent; facts any agent should know about the user. - Agent memories (
UserMentorMemory) — scoped to a user + one agent + a category; what a single agent remembers about the user. - Agent knowledge (
MentorMemory) — scoped to one agent (org + agent), not any user and not categorized. Manually curated (never auto-extracted), it is injected into every user's chat with that agent as an## Agent Knowledgeblock, gated by the agent'senable_memory_componentand each user'suse_memory_in_responses. This is shared "how the agent should behave / what it should always know" content, distinct from the per-user stores above.
Categories (MentorMemoryCategory, per agent) file agent memories and steer capture:
each has a slug, an extraction_prompt (LLM hint for what to pull into that category),
and is_active (whether it's used during extraction).
Capture & injection are controlled per user via memsearch-settings:
auto_capture_enabled— agents auto-extract memories from conversations. Auto-extracted rows carryis_auto_generated: true; memories you add via the API arefalse.use_memory_in_responses— stored memories are injected into agent responses.
An org-wide enable_memsearch flag gates the whole feature (see memsearch-status).
Reads
Agent memories
- GET
…/users/{username}/mentors/{mentor}/mentor-memories-list/?page={n}&page_size={n}&category={slug}&my_memory={bool}&user_id={id}&email={e}&start_date={yyyy-MM-dd}&end_date={yyyy-MM-dd}— paged flat list for one agent. - GET
…/users/{username}/mentors/{mentor}/mentor-memories/?my_memory={bool}&user_id={id}&email={e}&start_date=&end_date=— the same memories grouped by category. - GET
{u}/mentor-memories/?mentor={agent}&user_id={id}&email={e}&start_date=&end_date=— the user's agent memories across all agents; add?mentor=to scope to one. Twin spelling:{u}/agent-memories/.
Categories
- GET
…/orgs/{org}/mentors/{mentor}/memory-categories/— category list for one agent.
Agent knowledge (shared)
- GET
…/orgs/{org}/mentors/{mentor}/agent-memories/?page={n}&page_size={n}— paged list of the agent's shared knowledge entries (DRF page envelope;page_sizedefault 20, max 100). This path has nousers/{username}segment — do not confuse it with the user-scoped{u}/agent-memories/twin spelling above, which lists one user's per-agent memories.
Global (cross-agent) memories
- GET
{u}/global-memories/?user_id={id}&email={e}&session_id={uuid}&content={substr}&start_date={yyyy-MM-dd}&end_date={yyyy-MM-dd}— user-level memories shared across every agent. Filters:session_id(the source session),content(case-insensitive substring), and thestart_date/end_datecreated-at range.
Settings
- GET
{u}/memsearch-settings/— the user's capture / recall settings. Organization admins may read another user's settings by putting that user's username in the{username}path segment; non-admins are restricted to their own (any other{username}resolves back to the caller). - GET
{u}/memsearch-status/— whether memsearch (enable_memsearch) is enabled for the org.
Writes
Agent memories
- POST
…/users/{username}/mentors/{mentor}/mentor-memories/— add a memory:{ "category_slug": "string (required, must match an existing category slug)", "content": "string (required, ≥10 chars)" } - PATCH
…/users/{username}/mentors/{mentor}/mentor-memories/{memoryId}/— edit a memory (send at least one field):{ "category_slug": "string", "content": "string (≥10 chars)" } - DELETE
…/users/{username}/mentors/{mentor}/mentor-memories/{memoryId}/— delete one memory (no body). Destructive — confirm with the user first. Bulk delete = one call per memory.
Categories
- POST
…/orgs/{org}/mentors/{mentor}/memory-categories/— add a category:{ "name": "string (required)", "slug": "string (required, unique per agent)", "description": "string", "extraction_prompt": "string", "is_active": "boolean (default true)" } - PATCH
…/orgs/{org}/mentors/{mentor}/memory-categories/{categoryId}/— edit a category (any subset of the create fields). - DELETE
…/orgs/{org}/mentors/{mentor}/memory-categories/{categoryId}/— delete a category (no body). Destructive — confirm with the user first.
Agent knowledge (shared)
- POST
…/orgs/{org}/mentors/{mentor}/agent-memories/— add a shared knowledge entry:
Dedups on a content hash: an identical entry returns{ "content": "string (required, ≥10 chars)" }409({"error": "Memory already exists"}) rather than a duplicate; a new one returns201with the created object. - PATCH
…/orgs/{org}/mentors/{mentor}/agent-memories/{memoryId}/— replace an entry's content:
If the new content collides with another of the agent's entries, returns{ "content": "string (required, ≥10 chars)" }409. - DELETE
…/orgs/{org}/mentors/{mentor}/agent-memories/{memoryId}/— delete one entry (no body,204). Destructive — confirm with the user first.
Global (cross-agent) memories
- POST
{u}/global-memories/— add a user-level memory:{ "content": "string (required, ≥10 chars)" }. - DELETE
{u}/global-memories/{memoryId}/— delete one (no body). Destructive — confirm with the user first.
Settings
- PUT
{u}/memsearch-settings/— update the user's capture / recall settings (send at least one field). Organization admins may update another user's settings by putting that user's username in the{username}path segment; non-admins are restricted to their own (any other{username}resolves back to the caller):{ "auto_capture_enabled": "boolean", "use_memory_in_responses": "boolean" }
Example
List the first page of one agent's memories filed under the preferences category since the start of the year:
curl -s \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/$MENTOR/mentor-memories-list/?page=1&page_size=20&category=preferences&start_date=2026-01-01" \
-H "Authorization: Api-Token $IBLAI_API_KEY"Notes
- Memories are filed under categories;
category_slugon an agent memory must match an existing category'sslugfrom thememory-categories/endpoint. - The
mentor-memories-list/filters stack — combinecategory,user_id,email, and the date range to narrow results;my_memory=truescopes the list to the caller's own memories. - Global memories filter by
user_id/emailplussession_id,content(substring), and astart_date/end_daterange — but notcategoryormy_memory, which are agent-memory-only (global memories aren't categorized). - Categories are org- + agent-scoped (
…/orgs/{org}/mentors/{mentor}/…), not user-scoped like the memory endpoints. - Two things share the
agent-memoriesname. The user-scoped{u}/agent-memories/(under…/users/{username}) is the twin spelling of one user's per-agent memories; the org+agent-scoped…/orgs/{org}/mentors/{mentor}/agent-memories/(no user segment) is the shared agent knowledge store. Different data, different path — pick by whether ausers/{username}segment is present. - There is no bulk-delete endpoint: to clear several memories, issue one DELETE per id.
- Flat list reads (global memories, agent memories, categories) return a DRF page
envelope —
{ "count": n, "results": [...] }; iterateresults. The groupedmentor-memories/read instead buckets memories by category (see Reads). DELETEs return204.
Schema
Memory object (every memory read returns this; UserMentorMemory / UserGlobalMemory):
| field | mode | notes |
id | ro | integer |
content | req (write) | the memory text; ≥10 chars |
username, email, user_full_name | ro | resolved from the user; user_full_name is the display name, empty when the user has none |
mentor_id | ro | agent memories only |
platform | ro | global memories only (org key) |
category | ro | agent memories only; nested category object |
source_session_id | ro | session the memory was extracted from, or null |
is_auto_generated | ro | true = LLM-extracted, false = added via API |
created_at, updated_at | ro | ISO 8601 |
Agent-knowledge object (MentorMemory; returned by the shared agent-memories endpoints):
| field | mode | notes |
id | ro | integer |
mentor_id | ro | the agent's unique id |
mentor_name | ro | the agent's name |
content | req (write) | the knowledge text; ≥10 chars |
created_by | ro | username of the curator, or null (service/API-key callers) |
created_by_email, created_by_full_name | ro | the curator's email and display name; both null when created_by is |
created_at, updated_at | ro | ISO 8601 |
No category or is_auto_generated — agent knowledge is shared and manually curated, so
the only user it names is the curator (created_by*), never a learner.
Category object (MentorMemoryCategory): id (ro), name, slug (unique per agent),
description, extraction_prompt, is_active (default true), created_at (ro).
Settings (memsearch-settings): auto_capture_enabled, use_memory_in_responses
(both boolean, default true), updated_at (ro).
Reference material
Background that complements the endpoints above (not required to call the API):
references/concepts.md— how extraction and injection actually behave (background capture, single-LLM-call, 3-layer dedup, top-5 semantic recall), the default categories, the org → agent → user enablement cascade, embedding/dedup specs, and a symptom→fix table.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

