/iblai-vibe:iblai-vibe-agent-disclaimerfrom ibl.ai vibe
Adds a Disclaimers tab to agent settings in Next.js apps, featuring a User Agreement users must accept before chatting and an Advisory note shown in the chat. Includes an agreements list showing who accepted.
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 Disclaimers tab -- the notices users see when they chat
with the agent. Scope: per agent. Two cards sit side by side: the User
Agreement (text users must accept, with an Active switch) and the
Advisory (a short note shown in the chat, such as "AI can make
mistakes"). This is one tab in the agent-settings family indexed by
/iblai-vibe-agent; it shares the AgentSettingsProvider wrapper with every
other tab.
Disclaimers -- both cards with Edit and Copy. The User Agreement
card and View Agreements need the agent's #view_disclaimers grant
(Step 2). View Agreements shows only once the agreement is Active.

Edit User Agreement -- the first save creates the agreement; later saves update it. Save stays disabled while the text is blank.

Edit Advisory -- the Advisory is one field on the agent's settings. It cannot be saved blank, so it cannot be cleared from this tab.

Agreements -- who accepted the User Agreement and when, 20 per page. Search matches the exact username.

Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
/iblai-vibe-auth, or vibe-starter).AgentSettingsProvider wraps the route (/iblai-vibe-agent §1).@iblai/iblai-js@^3.6.0 (resolves @iblai/web-containers 2.6.0). Check with
pnpm why @iblai/web-containers.#view_disclaimers grant (org admins
have it) to see the User Agreement.Look for iblai.env in the project root with PLATFORM, DOMAIN, and
TOKEN. If it is missing, 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"
AgentDisclaimersTabThe User Agreement card and View Agreements are gated on the RBAC grant
/mentors/<agent db id>/#view_disclaimers, read from the provider's
rbacPermissions -- even with enableRBAC={false}. Without it only the
Advisory card renders. Load the grants for the agent and pass them to a
nested provider:
// app/(app)/agents/[mentorId]/disclaimers/page.tsx
"use client";
import { useEffect, useState } from "react";
import {
AgentDisclaimersTab,
AgentSettingsProvider,
useAgentSettings,
} from "@iblai/iblai-js/web-containers/next";
import {
useGetMentorSettingsQuery,
useGetRbacPermissionsMutation,
} from "@iblai/iblai-js/data-layer";
export default function AgentDisclaimersPage() {
const settings = useAgentSettings();
const { tenantKey, mentorId, username } = settings;
const [grants, setGrants] = useState<object>({});
const [getRbacPermissions] = useGetRbacPermissionsMutation();
const { data } = useGetMentorSettingsQuery({
mentor: mentorId,
org: tenantKey,
// @ts-expect-error userId is accepted at runtime
userId: username,
});
const mentorDbId = (data as { mentor_id?: number } | undefined)?.mentor_id;
useEffect(() => {
if (!mentorDbId) return;
getRbacPermissions({
requestBody: {
platform_key: tenantKey,
resources: [`/mentors/${mentorDbId}/`],
},
})
.unwrap()
.then((permissions) => setGrants({ ...permissions }))
.catch(() => {});
}, [mentorDbId, tenantKey, getRbacPermissions]);
return (
<div className="flex h-full flex-col bg-white">
<AgentSettingsProvider {...settings} rbacPermissions={grants}>
<AgentDisclaimersTab />
</AgentSettingsProvider>
</div>
);
}
The grant path uses the agent's numeric mentor_id from its settings, not
the UUID. If your layout already loads the agent's grants into the provider,
mount <AgentDisclaimersTab /> directly.
Both cards render plain text by default, so line breaks collapse. Pass
renderContent to render Markdown, and defaultDisclaimerContent to
prefill the User Agreement before one exists:
import ReactMarkdown from "react-markdown";
import { AgentDisclaimersTab } from "@iblai/iblai-js/web-containers/next";
<AgentDisclaimersTab
defaultDisclaimerContent="By chatting with this agent you agree to our terms."
renderContent={(content) => <ReactMarkdown>{content}</ReactMarkdown>}
/>;
The tab renders with the default agent-facing copy
(AGENT_DISCLAIMERS_TAB_LABELS, localized through the SDK's i18n). Pass a
partial labels object to change any string:
import { AgentDisclaimersTab } from "@iblai/iblai-js/web-containers/next";
<AgentDisclaimersTab
labels={{
header: { title: "Notices" },
userAgreement: { title: "Terms of use" },
}}
/>;
Label groups (DisclaimersTabLabels): header (title, description),
infoBox, userAgreement (title, tooltip, active, inactive, and the
edit dialog's editTitle, editLabel, editPlaceholder), advisory
(title, tooltip, editTitle, editLabel, editPlaceholder), actions
(edit, save, saving, cancel, viewAgreements), toasts (success and
error for each save and toggle), and agreements (the Agreements dialog:
title, totalAgreements(count), summaryDescription, search, column and
empty-state copy).
get_component_info("AgentDisclaimersTab")
get_component_info("AgentSettingsProvider")
<AgentDisclaimersTab> PropsImport from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
|---|---|---|---|
labels | DeepPartial<DisclaimersTabLabels> | No | Override user-visible strings |
defaultDisclaimerContent | string | No | User Agreement text shown before one exists. Defaults to '' |
renderContent | (content: string) => ReactNode | No | Render both cards' text as rich content (e.g. Markdown). Defaults to plain text |
Identity and grants come from AgentSettingsProvider (tenantKey,
mentorId, username, rbacPermissions, enableRBAC).
From @iblai/iblai-js/web-containers/next:
AGENT_DISCLAIMERS_TAB_LABELS -- the default label bundle.AgentDisclaimersTabProps, DisclaimersTabLabels -- types.| Action | Request |
|---|---|
| Load | GET …/disclaimers/?mentor_id=<uuid>&scope=mentor (the first result is the User Agreement) and the agent's settings (disclaimer, mentor_id) |
| Save the User Agreement | First time: POST …/disclaimers/ with content, mentors: [uuid], scope: "mentor" (created active). Then: PATCH …/disclaimers/{id}/ with content |
| Active switch | PATCH …/disclaimers/{id}/ with active; with no agreement yet it creates one from defaultDisclaimerContent, and the default '' gets a 400 |
| Save the Advisory | PUT mentors/{uuid}/settings/ with disclaimer |
| View Agreements | GET …/disclaimer-agreements/?disclaimer={id}&mentor_id=<uuid>&page_size=20 (plus username when searching) |
The tab has no delete. The API cannot delete a User Agreement either, and will not detach its last agent: turn it off with the switch.
| Hook | Purpose |
|---|---|
useGetDisclaimersQuery | The agent's User Agreement |
useCreateDisclaimerMutation / useUpdateDisclaimerMutation | Create it, edit its text, switch it on or off |
useGetDisclaimerAgreementsQuery | Who accepted it |
useGetMentorSettingsQuery / useEditMentorMutation | Read and save the Advisory |
useGetRbacPermissionsMutation | Load the #view_disclaimers grant (Step 2) |
REST twin: /iblai-api-agent-disclaimer.
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 errors.pnpm test -- vitest must pass./agents/<uuid>/disclaimers in the browser as /iblai-vibe-ops-test says,
signed in as an org admin: both cards render; Edit the User Agreement and Save
-- it is created Active and View Agreements appears (on a fresh agent the switch
alone shows "Failed to update user agreement"); read the console; check the phone width.AgentSettingsProvider once at the layout
level (/iblai-vibe-agent §1); do not wrap each tab.sonner and @iblai/iblai-web-mentor
(pnpm add sonner @iblai/iblai-web-mentor).iblai-vibe-agent-disclaimer-1-overview.png (opens in a new tab)iblai-vibe-agent-disclaimer-2-edit-user-agreement.png (opens in a new tab)iblai-vibe-agent-disclaimer-3-edit-advisory.png (opens in a new tab)iblai-vibe-agent-disclaimer-4-agreements.png (opens in a new tab)iblai-vibe-agent-disclaimer.png (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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