iblai-vibe-agent-assistant
Skill222 starsChanged 12 days agoMITView on GitHub
Add the Assistant to your vibe Next.js app, an agent one click away on every page. A robot button in the header opens the organization's Default Agent (else the user's starred or last-used agent) in a column docked beside the page, which the user can drag wider or narrower, switch to full screen as a popup over the dimmed page, or close; on phones it covers the screen. It is the SDK's MasterAgentProvider, MasterAgent and MasterAgentPanel around the agent-ai embed, as in the ibl.ai app's header. Use when the user mentions 'Assistant', 'master agent', 'Default Agent in the header', 'an agent beside every page', 'side panel agent', 'docked chat', 'copilot sidebar', or 'resizable chat panel'. For the app's main chat page see /iblai-vibe-agent-chat; for the agent on another website see /iblai-vibe-agent-embed and /iblai-api-agent-embed.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 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-memorySkill
- 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-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- 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-screenshareSkill
- 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-incognitoSkill
- The first 60 shown.
The file
Files
/iblai-vibe-agent-assistant
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.
What you get
- The header button (
MasterAgent): lucide's Bot, the same size and grey as the bell beside it; its tooltip and accessible name are Assistant. - The panel (
MasterAgentPanel): the agent's chat, the<agent-ai>embed of the ibl.ai app, docked beside the page. - The state (
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.- vibe-starter does not ship the Assistant; Steps 1–4 add it.
What people see
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.
Image: The header with the Assistant button hovered and its tooltip, Assistant
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.
Image: The panel dragged to 640 px, its left edge blue, the Profile page narrower beside it
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.
Image: The Assistant as a popup over the dimmed page, with the embed's sidebar and Exit full screen
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.
Image: On a phone, the Assistant covering the screen
Which agent it opens
- The organization's Default Agent, set by an admin in Account →
Advanced → Default Agent (
/iblai-vibe-account). It is skipped once that agent no longer exists. - Else the older Skills setting,
skills_embedded_mentor_name. - Else the agent the user starred.
- Else the agent they used last.
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.
When to use / when not
| 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 |
Prerequisites
- Auth in place (
/iblai-vibe-auth, or vibe-starter). @iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0; the Assistant arrived in 1.81.0) and@iblai/agent-ai2.14.0 or later (full screen). vibe-starter ships both (@iblai/agent-ai@^2.15.3).- An agent to open: a Default Agent for the organization, or one the user starred or used. To pin one, ask the user for its real UUID; never invent one.
- The page must be allowed to frame the ibl.ai app. vibe-starter's CSP
(
applyCspinmiddleware.ts) already allowshttps://*.iblai.appandhttps://*.ibl.ai. On a self-hosted domain, add the app's origin:applyCsp(request, { requestHeaders, frameSrc: ["https://mentorai.<domain>"] }).
Step 1: Add the provider
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.
Step 2: Wrap the shell and dock the panel
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>- The provider sits above every page, so the panel stays open, at its width, while the user moves between pages.
min-w-0on<main>lets the page narrow beside the panel.MasterAgentPaneltakes aclassNamefor its docked view. The ibl.ai app passesmd:-mt-4to cancel its header's bottom margin; vibe-starter's header has none, so it needs nothing.
Step 3: Put the button in the header
In components/navbar/nav-bar.tsx, add MasterAgent to the right-hand
group, before the notifications bell (the ibl.ai app's order: credits,
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.
Step 4: Let pages make room
- Page widths. A page sized from the window does not shrink beside the
panel and runs under it. vibe-starter's
agents,profile,accountandnotificationspages (and pages copied from/iblai-vibe-component's pattern) usemd:w-[75vw]. Change it tomd:w-3/4: the same width with the panel closed, three quarters of what is left with it open. - Controls pinned to the right edge. The docked panel publishes its
width as
--master-agent-inseton<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.
Verify
pnpm buildandpnpm testpass.- Touch test as
/iblai-vibe-ops-testsays, signed in, in an organization with a Default Agent:- the robot button shows in the header, with the tooltip Assistant;
- a click docks the agent under the header and the page narrows; no page runs under the panel;
- dragging the left edge, and the arrow keys on it, change the width, which survives a reload;
- Full screen opens the popup over the dimmed page; Exit full screen docks it again;
- Close chat hides it and focus returns to the button; reopening shows the same conversation;
- at phone width the panel covers the screen;
- the console shows no CSP
frame-srcrefusal.
Customize
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.
Linked SDK exports
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.
Platform data
| 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).
Security
<agent-ai>hands the frame the session your app stored, so setmentorUrlonly to the ibl.ai app (hosted, or your own self-hosted copy). Never to an address a user or a setting can change.- The panel acts only on the full-screen and close messages from its own frame; messages from any other window are ignored.
- The framed app keeps its own chat key (
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.
Related skills
/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.
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.

