/iblai-vibe:iblai-vibe-agent-memoryfrom ibl.ai vibe
Adds an agent Memory tab with a long-term memory switch, personal memories by user and category, and shared memory facts injected into every chat.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add the agent Memory tab -- a Long-term Memory switch ("Let this agent remember useful details from past conversations — like a returning colleague — so people don't have to repeat themselves") and, while it is on, two sub-tabs:
Shared Memory is the UI for what the API calls agent knowledge
(agent-memories): one agent, no user, curated by hand, injected into
every chat with the agent as an ## Agent Knowledge block. This is one
tab in the wider agent-settings family; all tabs share the same
AgentSettingsProvider wrapper (optional for this tab — identity can be
passed as props).






Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
/iblai-vibe-memory-guide — what memory means (three stores, three
gates) and which surface to mount for which audience./iblai-vibe-memory — organization settings → Memory: any user's
global memories and any agent's memories. Its Agent popup hosts the
Personal Memories manager only; an agent's Shared Memory is managed
here, on the agent's own tab./iblai-vibe-profile — the member's own Memory tab (their global
memories and the two capture/recall toggles)./iblai-api-agent-memory — the REST twin, including the
agent-knowledge endpoints behind Shared Memory./iblai-vibe-auth)@iblai/mcp in .mcp.json)AgentSettingsProvider wrapping the route (see /iblai-vibe-agent-setting
Step 2), or pass tenantKey / mentorId / username as props.mentorId (agent UUID). Do NOT invent one.enable_memsearch). The
switch on this tab is the agent gate; the person chatting must
also have memory turned on. All three gates must be open before
anything on this tab reaches a chat — see the guide.Before proceeding, check for an iblai.env in the project root. Look for
PLATFORM, DOMAIN, and TOKEN variables. If the file does not exist or
is missing these variables, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
AgentMemoryTab// app/(app)/agents/[mentorId]/memory/page.tsx
"use client";
import { AgentMemoryTab } from "@iblai/iblai-js/web-containers/next";
export default function AgentMemoryPage() {
return (
<div className="flex h-full flex-col bg-white">
<AgentMemoryTab />
</div>
);
}
The tab reads tenantKey, mentorId, username, enableRBAC and
rbacPermissions from the nearest <AgentSettingsProvider>, loads the
agent settings for the switch, and renders both sub-tabs under it.
When the tab is not rendered inside an <AgentSettingsProvider>, pass
identity explicitly:
<AgentMemoryTab
tenantKey="my-tenant"
mentorId="00000000-0000-0000-0000-000000000000"
username="[email protected]"
/>;
import { AgentMemoryTab } from "@iblai/iblai-js/web-containers/next";
<AgentMemoryTab
labels={{
header: { title: "Mentor memory" },
subTabs: { personal: "About each person", shared: "Always in mind" },
sharedMemory: {
addButton: "Add a standing fact",
empty: { title: "Nothing shared yet" },
},
}}
/>;
get_component_info("AgentMemoryTab")
get_component_info("AgentSettingsProvider")
get_hook_info("useGetSharedMemoriesQuery")
<AgentMemoryTab> PropsImport from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
|---|---|---|---|
labels | DeepPartial<MemoryTabLabels> | No | Override user-visible strings — header, the switch (toggle), subTabs, the whole sharedMemory bundle (list, empty/denied states, both dialogs, errors, toasts), and the switch toasts |
tenantKey | string | No | Identity override. Defaults to the nearest <AgentSettingsProvider> |
mentorId | string | No | Agent UUID override. Defaults to the provider |
username | string | No | Username override. Defaults to the provider |
enableRBAC | boolean | No | Honor the RBAC permission tree for the switch and the Shared Memory writes. Defaults to the provider value or false |
rbacPermissions | object | No | The permission tree from your RBAC slice. Defaults to the provider value |
The in-tab switch flips enable_memory_component on the agent
(optimistically, rolled back with a toast if the save fails). While it is
off both sub-tabs stay visible but inert, with the hint "Turn it on
to let this agent remember details across conversations." — the backend
injects neither personal nor shared memories into chats while the flag
is off.
The same manager the organization's Memory admin opens per agent: Search for User (server-side), Pick a Date Range, category tabs (All plus the agent's categories — Knowledge Gaps, Learning Goals, Personal Context, Preferences, … by default), a Categories manager (create / rename / delete categories and their extraction prompts), Add Memory, and per-memory cards showing the time-ago, the owning user's email and an Edit / Delete kebab.
| Backend | Shown |
|---|---|
409 on save | "This shared memory already exists." under the field — entries dedupe on a content hash |
400 on save | "A shared memory must be at least 10 characters.", or the backend's own message for any other rule |
403 on any write | A toast, and the add button and kebabs disappear for the rest of the session |
| anything else | "Couldn't save shared memory" / "Couldn't delete shared memory" toasts |
The permission check endpoint has no shared-memory actions, so the
agent's own write action stands in: with enableRBAC and a permission
tree that carries the agent (/mentors/{id}/), Limited Editor can
write and Limited Viewer cannot. When the tree has no entry for the
agent everything stays writable and the server's 403 is the source of
truth. The switch follows the same rule. Writes are withheld (not
briefly granted) while the agent settings are still loading.
From @iblai/iblai-js/web-containers/next:
AgentMemoryTab, AgentMemoryTabProps — this tab.AGENT_MEMORY_TAB_LABELS, MemoryTabLabels — the default label
bundle and its type (now with subTabs and sharedMemory).MEMORY_SUB_TABS — { personal: 'personal', shared: 'shared' }, the
sub-tab values.From @iblai/iblai-js/data-layer:
useGetSharedMemoriesQuery,
useLazyGetSharedMemoriesQuery, useCreateSharedMemoryMutation,
useUpdateSharedMemoryMutation, useDeleteSharedMemoryMutation, with
SharedMemoryEntry (id, mentor_id, mentor_name, content,
created_by, created_by_email, created_by_full_name,
created_at, updated_at), SharedMemoryListResponse and the
GetSharedMemoriesArgs / CreateSharedMemoryArgs /
UpdateSharedMemoryArgs / DeleteSharedMemoryArgs shapes
({ org, mentorId, … }; the list takes params.page /
page_size ≤ 100 / start_date / end_date).useGetMentorMemoriesListQuery,
useGetAllMentorMemoriesQuery, useCreateMentorMemoryMutation,
useUpdateMentorMemoryMutation, useDeleteMentorMemoryMutation;
categories useGetMemoryCategoriesAdminQuery,
useCreateMemoryCategoryMutation, useUpdateMemoryCategoryMutation,
useDeleteMemoryCategoryMutation.useGetMentorSettingsQuery, useEditMentorMutation
(enable_memory_component); the organization gate:
useGetMemsearchStatusQuery.Component map (internal to the tab, under
packages/web-containers/src/components/modals/edit-mentor-modal/tabs/memory-tab/):
| Component | File | Role |
|---|---|---|
AgentMemoryTab | index.tsx | Header, the CapabilityGate switch, the two sub-tabs |
ManageMemories | manage-memories.tsx | Personal Memories (also hosted by the org Memory admin's Agent popup) |
SharedMemorySection | shared-memory-section.tsx | Shared Memory list, pagination, state handling |
SharedMemoryModal | shared-memory-modal.tsx | Add / Edit dialog, 10-character minimum |
SharedMemoryDeleteModal | shared-memory-delete-modal.tsx | Delete confirmation |
classifySharedMemoryError | shared-memory-errors.ts | Maps 409 / 400 / 403 to the messages above |
useMemoryCapability | use-memory-capability.ts | The switch's optimistic save and the write-permission proxy |
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass:
pnpm build -- must pass with zero errorspnpm test -- vitest must pass/agents/<id>/memory in the browser as /iblai-vibe-ops-test says: open it,
use every control this skill added, read the console, check the phone width.Stable selectors: memory-capability-toggle, memory-sub-tabs,
memory-sub-tab-personal, memory-sub-tab-shared,
shared-memory-section, shared-memory-add-button,
shared-memory-entry, shared-memory-modal, shared-memory-content,
shared-memory-save, shared-memory-delete-modal,
shared-memory-delete-confirm, shared-memory-empty,
shared-memory-denied, shared-memory-pagination.
mentorReducer and mentorMiddlewareinitializeDataLayer(): 5 args (v1.2+)@reduxjs/toolkit: Deduplicated via webpack aliases in next.config.tssonner and @iblai/iblai-web-mentor must be installed
(pnpm add sonner @iblai/iblai-web-mentor)useAgentSettingsOptional, so it
works inside AgentSettingsProvider or with explicit identity props.enable_memsearch, this tab's switch
(enable_memory_component), and the person's own use_memory_in_responses.
Shared memories reach a chat only when all three are on — the info
box on the sub-tab says exactly that./iblai-vibe-memory) manages personal memories per agent; it does
not show Shared Memory.409,
surfaced under the field; a save needs at least 10 characters.Full REST reference: /iblai-api-agent-memory
(headless twin, installed with the rest of this repo's skills).
The tables below are the frontend-relevant summary.
For custom UI beyond <AgentMemoryTab>. All endpoints are prefixed with
${dmUrl}/api/ai-mentor/orgs/{org}/ where dmUrl is NEXT_PUBLIC_API_BASE_URL
and {org} is the org key (platform_key).
The system has three control levels: Platform (admin enables for organization), Agent (admin/owner enables per agent), User (user opts in/out of capture and use).
| Method | Path | Purpose |
|---|---|---|
| GET | users/{user_id}/memsearch-settings/ | Read auto_capture_enabled, use_memory_in_responses |
| PUT | users/{user_id}/memsearch-settings/ | Update one or both flags |
Defaults are false if no settings row exists.
| Method | Path | Purpose |
|---|---|---|
| GET | users/{user_id}/memsearch-config/ | Read enable_memsearch |
| POST | users/{user_id}/memsearch-config/ | Set enable_memsearch |
| GET | users/{user_id}/memsearch-status/ | Read-only enabled status for the organization |
| Method | Path | Purpose |
|---|---|---|
| PUT | users/{user_id}/mentors/{mentor}/settings/ | Body includes enable_memory_component: bool |
Every memory row identifies its owner with username, email and
user_full_name, so a list renders the person without a second request; a
shared-memory row names its curator with created_by, created_by_email and
created_by_full_name instead.
| Method | Path | Purpose |
|---|---|---|
| GET | mentors/{mentor_id}/agent-memories/ | Paged list. Params: page, page_size (≤100, default 20), start_date, end_date |
| POST | mentors/{mentor_id}/agent-memories/ | Create. Body { content } (≥10 chars). 201; 409 if an identical entry exists |
| PATCH | mentors/{mentor_id}/agent-memories/{memory_id}/ | Update content |
| DELETE | mentors/{mentor_id}/agent-memories/{memory_id}/ | Delete → 204 |
| Method | Path | Purpose |
|---|---|---|
| GET | users/{user_id}/global-memories/ | List. Params: page, page_size (≤25), user_id, start_date, end_date, search |
| POST | users/{user_id}/global-memories/ | Create. Body { content } (≥10 chars). 409 if duplicate |
| DELETE | users/{user_id}/global-memories/{memory_id}/ | Delete |
| Method | Path | Purpose |
|---|---|---|
| GET | users/{user_id}/mentors/{mentor_id}/mentor-memories/ | List grouped by category. Params: user_id, start_date, end_date, my_memory |
| POST | users/{user_id}/mentors/{mentor_id}/mentor-memories/ | Create. Body { category_slug, content } (≥10 chars) |
| PATCH | users/{user_id}/mentors/{mentor_id}/mentor-memories/{memory_id}/ | Partial update of content and/or category_slug |
| DELETE | users/{user_id}/mentors/{mentor_id}/mentor-memories/{memory_id}/ | Delete |
| Method | Path | Purpose |
|---|---|---|
| GET | mentors/{mentor_id}/memory-categories/ | List active categories |
| POST | mentors/{mentor_id}/memory-categories/ | Create. 409 if slug exists |
| PATCH | mentors/{mentor_id}/memory-categories/{category_id}/ | Update name/description/extraction prompt |
| DELETE | mentors/{mentor_id}/memory-categories/{category_id}/ | Soft-delete (sets is_active=false) |
Default categories auto-created per agent: knowledge_gaps, learning_goals,
preferences, progress_milestones, personal_context.
400 validation (content <10 chars), 403 viewing another user's memories
or writing shared memory without the agent's write action, 404 not found,
409 duplicate.
Hide memory UI unless platform memsearch-status is enabled AND the agent's
enable_memory_component is true. Always show the user-level toggles so users
can opt in/out.
iblai-vibe-agent-memory-shared-actions.png (opens in a new tab)iblai-vibe-agent-memory-shared-add.png (opens in a new tab)iblai-vibe-agent-memory-shared-delete.png (opens in a new tab)iblai-vibe-agent-memory-shared-edit.png (opens in a new tab)iblai-vibe-agent-memory-shared.png (opens in a new tab)iblai-vibe-agent-memory.png (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-memory, memory-ui, shared-memory, agent-settings, iblai
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job