/iblai-vibe:iblai-vibe-agent-assistantfrom ibl.ai vibe
Adds a persistent AI assistant panel to every page of a Next.js app via a header button. Opens a resizable, dockable chat column that persists across navigation.
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.
The Assistant keeps an agent one click away on every page of your app. A robot button in the header opens the organization's Default Agent in a column beside the page: the page makes room for it, the user drags its edge to change its width, switches it to full screen, or closes it, and the conversation stays while they move between pages. It is the same feature the ibl.ai app puts in its header, built from three SDK components.

Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
MasterAgent): lucide's Bot, the same size and
grey as the bell beside it; its tooltip and accessible name are
Assistant.MasterAgentPanel): the agent's chat, the <agent-ai>
embed of the ibl.ai app, docked beside the page.MasterAgentProvider): which agent, open or closed, full
screen or docked, and the width.components/assistant/assistant-provider.tsx (shipped): the provider
with vibe-starter's sign-in, organization and the hosted ibl.ai app.The button. It appears once there is an agent to open. On hover the antenna waves and the eyes blink, unless the system asks for reduced motion. While the panel is open the button stays pressed.

Docked. A click opens the agent as a column flush under the header and against the window's right edge, 400 px wide the first time. The page narrows to make room; nothing is covered.
Resizing. Drag the panel's left edge (it turns blue), or focus it and press the arrow keys (24 px a step). The width runs from 320 px to 1200 px and always leaves the page 320 px. It is remembered on that device.

Full screen. The embed's own Full screen button turns the panel into a popup over the dimmed page, with the embed's sidebar beside the chat. Exit full screen docks it again. While the popup is open, the page behind it is out of reach for the keyboard and screen readers.

Close. The embed's Close chat hides the panel and puts focus back on the header button. The chat stays loaded: the next click shows the same conversation.
Phones. Below 768 px the panel covers the screen, with no drag edge; Close chat returns to the page.

/iblai-vibe-account). It is skipped once
that agent no longer exists.skills_embedded_mentor_name.The organization's settings come from the user's organization list, which
the app fetches and saves when it loads, so a new Default Agent shows after
a reload. Pass agentId to open one agent instead.
| Use it for | Not for |
|---|---|
| A helper beside every page: questions about the app, a copilot over your own screens | The app's main chat page, rendered in-process: /iblai-vibe-agent-chat |
| The organization's own Default Agent, chosen by its admins | Putting an agent on another website: /iblai-vibe-agent-embed, /iblai-api-agent-embed |
/iblai-vibe-auth, or vibe-starter).@iblai/iblai-js@^3.6.0 (resolves @iblai/web-containers 2.6.0; the
Assistant arrived in 1.81.0) and @iblai/agent-ai 2.14.0 or later (full
screen). vibe-starter ships both (@iblai/agent-ai@^2.15.3).applyCsp in middleware.ts) already allows https://*.iblai.app and
https://*.ibl.ai. On a self-hosted domain, add the app's origin to the
frameSrc array already in that call:
frameSrc: ["blob:", ...STORAGE_HOSTS, "https://mentorai.<domain>"].Copy assets/assistant-provider.tsx to
components/assistant/assistant-provider.tsx. It renders
MasterAgentProvider with:
| Prop | Value | Why |
|---|---|---|
tenant, username | the signed-in session | the agent lookup and the embed's organization |
authUrl, lmsUrl | config.authUrl(), config.legacyLmsUrl() | where the embed renews or sends a signed-out user |
mentorUrl | https://mentorai.${config.platformBaseDomain()} | where the embed loads the agent: the hosted ibl.ai app (os.ibl.ai on iblai.app). The SDK's default is the page's own origin, which is right only inside the ibl.ai app, since vibe-starter has no /platform/… embed page |
agentId | yours, or left out | left out, the lookup above picks the agent |
enabled | signed in, and not ?embed=true | signed out or embedded, it looks nothing up and shows nothing |
The embed is signed in as your app's user: the SDK sets authRelyOnHost,
so <agent-ai> hands the session your SSO stored to the frame instead of
sending the user to the login page.
In app/(app)/layout.tsx, wrap the header and the page in the provider,
and put MasterAgentPanel in a row beside <main>:
import { MasterAgentPanel } from '@iblai/iblai-js/web-containers';
import { AssistantProvider } from '@/components/assistant/assistant-provider';
// …inside AdminModeProvider, around the whole h-screen column:
<AssistantProvider tenantKey={tenantKey} username={username}>
<div className="flex h-screen flex-col overflow-hidden bg-white">
<NavBar … />
{/* … drawer, CreditExhaustionHandler … */}
{/* The page and the Assistant side by side: the page makes room for it. */}
<div className="flex min-h-0 flex-1">
<main className="flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto bg-[var(--sidebar-bg,#fafbfc)]">
{children}
</main>
<MasterAgentPanel />
</div>
</div>
</AssistantProvider>
min-w-0 on <main> lets the page narrow beside the panel.MasterAgentPanel takes a className for its docked view. The ibl.ai
app passes md:-mt-4 to cancel its header's bottom margin; vibe-starter's
header has none, so it needs nothing.In components/navbar/nav-bar.tsx, add MasterAgent to the right-hand
group, before the notifications bell (the ibl.ai app's order from 768 px
up: credits, Your Activity, Incognito, Assistant, notifications, profile):
import {
CreditBalance,
MasterAgent,
NotificationDropdown,
isPlatformNavbarCreditBalanceVisible,
} from '@iblai/iblai-js/web-containers';
// …after CreditBalance:
{/* The Assistant: renders once there is an agent to open. */}
<MasterAgent />
It renders nothing outside the provider, while enabled is false, or
before an agent is known, so it needs no condition of its own.
agents, profile, account and
notifications pages (and pages copied from /iblai-vibe-component's
pattern) use md:w-[75vw]. Change it to md:w-3/4: the same width with
the panel closed, three quarters of what is left with it open.--master-agent-inset on <html>. Step a fixed button left of
it the way the ibl.ai app moves its accessibility button:
md:right-[calc(1rem+var(--master-agent-inset,0px))]. The SDK's canvas
controls already do.pnpm build and pnpm test pass./iblai-vibe-ops-test says, signed in, in an organization
with a Default Agent:
frame-src refusal.get_component_info("MasterAgentProvider")
get_component_info("MasterAgentPanel")
| Component | Prop | Type | Description |
|---|---|---|---|
MasterAgentProvider | tenant | string | Organization the agent runs in |
username | string | Finds the user's starred or most recent agent | |
authUrl | string | Auth app the embed sends a signed-out visitor to | |
lmsUrl? | string | LMS host the embed renews the sign-in through | |
mentorUrl? | string | Where the embed loads the agent. Default: the page's origin | |
agentId? | string | Opens this agent instead of the lookup | |
enabled? | boolean | false looks nothing up and shows nothing. Default true | |
MasterAgent | className? | string | On the header button |
MasterAgentPanel | className? | string | On the docked panel, not the popup |
The two strings, Assistant and the drag edge's Resize Assistant, are
masterAgent.title and masterAgent.resize in the web-containers catalog
(en, es, fr, zh). The saved width is ibl-master-agent-width in
localStorage.
From @iblai/iblai-js/web-containers (the root entry, not /next):
MasterAgentProvider + MasterAgentProviderProps — the state; wrap the
header and the row.MasterAgent + MasterAgentProps — the header button.MasterAgentPanel + MasterAgentPanelProps — the docked panel, its drag
edge (role="separator") and the popup.The panel imports @iblai/agent-ai (<agent-ai>) the first time it opens.
From @iblai/iblai-js/web-utils: useEmbedMode and isLoggedIn, which the
shipped provider uses for enabled.
| Call | Purpose |
|---|---|
GET /dm/api/core/users/platforms/ (via the SDK's saved organization list) | Each organization's metadata, holding the Default Agent (overall_default_mentor) |
useGetMentorPublicSettingsQuery → GET …/mentors/{agent}/public-settings/ | Checks the Default Agent still exists |
useGetRecentlyAccessedMentorsQuery → GET …/recently-accessed-mentors/ | The starred and last-used agents |
https://mentorai.<domain>/platform/{org}/{agent}?embed=true&show-close-button=true&allow-fullscreen=true | The chat in the panel; its own calls go to the platform as the user |
REST reference: org
(the Default Agent), agent embed
(<agent-ai> and the messages it posts).
<agent-ai> hands the frame the session your app stored, so set
mentorUrl only to the ibl.ai app (hosted, or your own self-hosted
copy). Never to an address a user or a setting can change.session_id:framed) only when it
shares the page's origin, as in the ibl.ai app. On a vibe app the frame is
another origin, so the page's chat and the Assistant's never mix./iblai-vibe-agent-chat — the in-process chat the home page shows./iblai-vibe-account — the Advanced tab where admins pick the Default Agent./iblai-vibe-navbar — the header the button goes in./iblai-vibe-agent-embed, /iblai-api-agent-embed — the same <agent-ai>
embed on other websites./iblai-vibe-component — the page layout convention Step 4 adjusts.assets/assistant-provider.tsx (opens in a new tab)assets/iblai-vibe-agent-assistant-1-button.png (opens in a new tab)assets/iblai-vibe-agent-assistant-2-docked.png (opens in a new tab)assets/iblai-vibe-agent-assistant-3-resize.png (opens in a new tab)assets/iblai-vibe-agent-assistant-4-full-screen.png (opens in a new tab)assets/iblai-vibe-agent-assistant-5-phone.png (opens in a new tab)test.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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