Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(ui): WorkbenchSidebar + module placeholder pages + mode switch

cyh81a5c879cb68
diff --git a/ui/src/App.tsx b/ui/src/App.tsx
index 09c2de525..e40835f02 100644
--- a/ui/src/App.tsx
+++ b/ui/src/App.tsx
@@ -2,6 +2,11 @@ import { BrowserRouter, Routes, Route, Navigate, useLocation } from 'react-route
import { Wizard } from './components/Wizard';
import { AppShell } from './components/AppShell';
import { Workbench } from './components/Workbench';
+import { InboxPage } from './components/workbench/InboxPage';
+import { AgentsPage } from './components/workbench/AgentsPage';
+import { SkillsPage } from './components/workbench/SkillsPage';
+import { HarnessPage } from './components/workbench/HarnessPage';
+import { VaultsPage } from './components/workbench/VaultsPage';
import { Dashboard } from './components/Dashboard';
import { ChannelList } from './components/steps/ChannelList';
import { UserList } from './components/steps/UserList';
@@ -111,10 +116,16 @@ function AppRoutes() {
<Route element={<AuthGuard><AppShell /></AuthGuard>}>
<Route path="/setup" element={<Wizard />} />
- {/* Workbench mode — the new default at `/`. Commit 01 ships a
- placeholder; the capability modules + projects + canvas land
- in later commits. */}
+ {/* Workbench mode — `/` is the canvas root, the five capability
+ entries (Inbox + Agents/Skills/Harness/Vaults) live alongside
+ it. Commit 02 ships sidebar + placeholder pages; the real
+ module screens land in later commits. */}
<Route path="/" element={<Workbench />} />
+ <Route path="/inbox" element={<InboxPage />} />
+ <Route path="/agents" element={<AgentsPage />} />
+ <Route path="/skills" element={<SkillsPage />} />
+ <Route path="/harness" element={<HarnessPage />} />
+ <Route path="/vaults" element={<VaultsPage />} />
{/* Control Panel mode — existing pages moved under /admin/* */}
<Route path="/admin" element={<Navigate to="/admin/dashboard" replace />} />
diff --git a/ui/src/components/AppShell.tsx b/ui/src/components/AppShell.tsx
index 9631e3a2f..4198f3c77 100644
--- a/ui/src/components/AppShell.tsx
+++ b/ui/src/components/AppShell.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
-import { NavLink, Outlet, useLocation } from 'react-router-dom';
-import { Hash, LayoutDashboard, Settings, Users } from 'lucide-react';
+import { Link, NavLink, Outlet, useLocation } from 'react-router-dom';
+import { ArrowLeft, ArrowRight, Hash, LayoutDashboard, Settings, SlidersHorizontal, Users } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import clsx from 'clsx';
@@ -10,6 +10,7 @@ import { AccountMenu } from './AccountMenu';
import { LanguageSwitcher } from './LanguageSwitcher';
import { ThemeToggle } from './ThemeToggle';
import { VersionBadge } from './VersionBadge';
+import { WorkbenchSidebar } from './workbench/WorkbenchSidebar';
import logoImg from '../assets/logo.png';
import { getEnabledPlatforms, platformSupportsChannels } from '../lib/platforms';
@@ -128,7 +129,7 @@ export const AppShell: React.FC = () => {
</div>
</div>
- {items.length > 0 && (
+ {shellMode === 'admin' && items.length > 0 && (
<div className="flex flex-col gap-2">
<div className="px-1 font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">
{t('appShell.workspaceLabel')}
@@ -138,6 +139,7 @@ export const AppShell: React.FC = () => {
</nav>
</div>
)}
+ {shellMode === 'workbench' && <WorkbenchSidebar />}
</div>
{/* Bottom: Status (with embedded version badge) + toggles + hostname */}
@@ -176,6 +178,28 @@ export const AppShell: React.FC = () => {
{config.runtime.hostname}
</div>
)}
+
+ {/* Mode switch — flips between Workbench (`/`) and Control Panel
+ (`/admin/*`). Distinct visual hierarchy from the toggle row
+ above so users notice it as a destination, not a quick toggle. */}
+ {shellMode === 'workbench' ? (
+ <Link
+ to="/admin/dashboard"
+ className="flex items-center justify-center gap-2 rounded-lg border border-border-strong px-3 py-2.5 text-[12px] font-medium text-foreground transition hover:bg-foreground/[0.04]"
+ >
+ <SlidersHorizontal className="size-3.5" />
+ <span>{t('appShell.openControlPanel')}</span>
+ <ArrowRight className="size-3 text-muted" />
+ </Link>
+ ) : (
+ <Link
+ to="/"
+ className="flex items-center justify-center gap-2 rounded-lg border border-mint/30 bg-mint/[0.06] px-3 py-2.5 text-[12px] font-semibold text-mint transition hover:bg-mint/[0.12]"
+ >
+ <ArrowLeft className="size-3.5" />
+ <span>{t('appShell.backToWorkbench')}</span>
+ </Link>
+ )}
</div>
</div>
</aside>
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
new file mode 100644
index 000000000..4cf13fa96
--- /dev/null
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -0,0 +1,6 @@
+import { Bot } from 'lucide-react';
+import { WorkbenchModulePlaceholder } from './WorkbenchModulePlaceholder';
+
+export const AgentsPage: React.FC = () => (
+ <WorkbenchModulePlaceholder icon={<Bot className="size-6" />} i18nPrefix="workbench.modules.agents" />
+);
diff --git a/ui/src/components/workbench/HarnessPage.tsx b/ui/src/components/workbench/HarnessPage.tsx
new file mode 100644
index 000000000..b2f1990c3
--- /dev/null
+++ b/ui/src/components/workbench/HarnessPage.tsx
@@ -0,0 +1,6 @@
+import { Activity } from 'lucide-react';
+import { WorkbenchModulePlaceholder } from './WorkbenchModulePlaceholder';
+
+export const HarnessPage: React.FC = () => (
+ <WorkbenchModulePlaceholder icon={<Activity className="size-6" />} i18nPrefix="workbench.modules.harness" />
+);
diff --git a/ui/src/components/workbench/InboxPage.tsx b/ui/src/components/workbench/InboxPage.tsx
new file mode 100644
index 000000000..5b3a20185
--- /dev/null
+++ b/ui/src/components/workbench/InboxPage.tsx
@@ -0,0 +1,6 @@
+import { Inbox } from 'lucide-react';
+import { WorkbenchModulePlaceholder } from './WorkbenchModulePlaceholder';
+
+export const InboxPage: React.FC = () => (
+ <WorkbenchModulePlaceholder icon={<Inbox className="size-6" />} i18nPrefix="workbench.modules.inbox" />
+);
diff --git a/ui/src/components/workbench/SkillsPage.tsx b/ui/src/components/workbench/SkillsPage.tsx
new file mode 100644
index 000000000..aadc6725c
--- /dev/null
+++ b/ui/src/components/workbench/SkillsPage.tsx
@@ -0,0 +1,6 @@
+import { WandSparkles } from 'lucide-react';
+import { WorkbenchModulePlaceholder } from './WorkbenchModulePlaceholder';
+
+export const SkillsPage: React.FC = () => (
+ <WorkbenchModulePlaceholder icon={<WandSparkles className="size-6" />} i18nPrefix="workbench.modules.skills" />
+);
diff --git a/ui/src/components/workbench/VaultsPage.tsx b/ui/src/components/workbench/VaultsPage.tsx
new file mode 100644
index 000000000..44c09658d
--- /dev/null
+++ b/ui/src/components/workbench/VaultsPage.tsx
@@ -0,0 +1,6 @@
+import { KeyRound } from 'lucide-react';
+import { WorkbenchModulePlaceholder } from './WorkbenchModulePlaceholder';
+
+export const VaultsPage: React.FC = () => (
+ <WorkbenchModulePlaceholder icon={<KeyRound className="size-6" />} i18nPrefix="workbench.modules.vaults" />
+);
diff --git a/ui/src/components/workbench/WorkbenchModulePlaceholder.tsx b/ui/src/components/workbench/WorkbenchModulePlaceholder.tsx
new file mode 100644
index 000000000..03e023b27
--- /dev/null
+++ b/ui/src/components/workbench/WorkbenchModulePlaceholder.tsx
@@ -0,0 +1,35 @@
+import type { ReactNode } from 'react';
+import { useTranslation } from 'react-i18next';
+
+interface WorkbenchModulePlaceholderProps {
+ icon: ReactNode;
+ /** i18n key prefix (e.g. `workbench.modules.agents`). The component reads
+ * `${prefix}.title` and `${prefix}.description` plus the shared
+ * `workbench.modules.comingSoon` hint. */
+ i18nPrefix: string;
+}
+
+// Shared placeholder used by all four capability modules and the inbox
+// landing route while the real pages are staged in by later commits.
+// Keeps the routes resolvable so the sidebar links never 404 and lets the
+// shell layout get exercised end-to-end on day 1.
+export const WorkbenchModulePlaceholder: React.FC<WorkbenchModulePlaceholderProps> = ({
+ icon,
+ i18nPrefix,
+}) => {
+ const { t } = useTranslation();
+
+ return (
+ <div className="mx-auto flex max-w-2xl flex-col items-center gap-5 py-16 text-center">
+ <div className="flex size-14 items-center justify-center rounded-2xl border border-mint/30 bg-mint/[0.08] text-mint shadow-[0_0_24px_-6px_rgba(91,255,160,0.5)]">
+ {icon}
+ </div>
+ <div className="font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-mint">
+ {t(`${i18nPrefix}.eyebrow`, { defaultValue: t('workbench.modules.comingSoonEyebrow') })}
+ </div>
+ <h1 className="text-2xl font-bold text-foreground">{t(`${i18nPrefix}.title`)}</h1>
+ <p className="text-sm leading-relaxed text-muted">{t(`${i18nPrefix}.description`)}</p>
+ <p className="text-[12px] text-muted">{t('workbench.modules.comingSoon')}</p>
+ </div>
+ );
+};
diff --git a/ui/src/components/workbench/WorkbenchSidebar.tsx b/ui/src/components/workbench/WorkbenchSidebar.tsx
new file mode 100644
index 000000000..f274dde8e
--- /dev/null
+++ b/ui/src/components/workbench/WorkbenchSidebar.tsx
@@ -0,0 +1,102 @@
+import { useTranslation } from 'react-i18next';
+import { NavLink } from 'react-router-dom';
+import { Activity, Bot, ChevronRight, Folder, Inbox, KeyRound, Plus, WandSparkles } from 'lucide-react';
+import clsx from 'clsx';
+import type { LucideIcon } from 'lucide-react';
+
+interface CapabilityNavItem {
+ to: string;
+ i18nKey: string;
+ icon: LucideIcon;
+}
+
+// Order mirrors design.pen DnkGJ — capability modules below the global
+// inbox entry, projects beneath that.
+const CAPABILITY_NAV: CapabilityNavItem[] = [
+ { to: '/agents', i18nKey: 'workbench.nav.agents', icon: Bot },
+ { to: '/skills', i18nKey: 'workbench.nav.skills', icon: WandSparkles },
+ { to: '/harness', i18nKey: 'workbench.nav.harness', icon: Activity },
+ { to: '/vaults', i18nKey: 'workbench.nav.vaults', icon: KeyRound },
+];
+
+// Inbox + 4 capabilities + Projects header for the workbench-mode sidebar
+// middle. Brand and bottom controls live in AppShell so the chrome stays
+// consistent across modes. Project data and the Inbox hover popover are
+// staged in by later commits — commit 02 only ships the entries themselves.
+export const WorkbenchSidebar: React.FC = () => {
+ const { t } = useTranslation();
+
+ return (
+ <div className="flex flex-col gap-4">
+ <NavLink
+ to="/inbox"
+ className={({ isActive }) =>
+ clsx(
+ 'group flex items-center gap-2.5 rounded-lg border px-3 py-2.5 text-[13px] font-semibold transition-colors',
+ isActive
+ ? 'border-mint/30 bg-mint/[0.08] text-foreground shadow-[0_0_16px_-4px_rgba(91,255,160,0.5)]'
+ : 'border-border-strong text-foreground hover:bg-foreground/[0.04]'
+ )
+ }
+ >
+ {({ isActive }) => (
+ <>
+ <Inbox className={clsx('size-4', isActive ? 'text-mint' : 'text-foreground')} />
+ <span className="flex-1">{t('workbench.nav.inbox')}</span>
+ <ChevronRight className="size-3.5 text-muted opacity-0 transition-opacity group-hover:opacity-100" />
+ </>
+ )}
+ </NavLink>
+
+ <div className="flex flex-col gap-2">
+ <div className="px-1 font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">
+ {t('workbench.capabilitiesLabel')}
+ </div>
+ <nav className="flex flex-col gap-0.5">
+ {CAPABILITY_NAV.map(({ to, i18nKey, icon: Icon }) => (
+ <NavLink
+ key={to}
+ to={to}
+ className={({ isActive }) =>
+ clsx(
+ 'group flex items-center gap-2.5 rounded-lg px-3 py-2.5 text-[13px] font-medium transition-colors',
+ isActive
+ ? 'border border-mint/30 bg-mint/[0.08] text-foreground shadow-[0_0_16px_-4px_rgba(91,255,160,0.5)]'
+ : 'border border-transparent text-muted hover:bg-foreground/[0.04] hover:text-foreground'
+ )
+ }
+ >
+ {({ isActive }) => (
+ <>
+ <Icon className={clsx('size-4', isActive ? 'text-mint' : 'text-muted group-hover:text-foreground')} />
+ <span>{t(i18nKey)}</span>
+ </>
+ )}
+ </NavLink>
+ ))}
+ </nav>
+ </div>
+
+ <div className="flex flex-col gap-2">
+ <div className="flex items-center justify-between px-1">
+ <div className="font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">
+ {t('workbench.projectsLabel')}
+ </div>
+ <button
+ type="button"
+ aria-label={t('workbench.addProject')}
+ className="flex size-5 items-center justify-center rounded-md border border-border-strong text-foreground transition hover:bg-foreground/[0.04]"
+ // Wired up in commit 05 (projects REST + folder picker).
+ disabled
+ >
+ <Plus className="size-3" />
+ </button>
+ </div>
+ <div className="flex flex-col items-center gap-1.5 rounded-lg border border-dashed border-border px-3 py-4 text-center">
+ <Folder className="size-4 text-muted" />
+ <div className="text-[11px] text-muted">{t('workbench.projectsEmpty')}</div>
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index 321c7c6ec..0d37d20f2 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -381,6 +381,8 @@
"title": "Vibe Remote",
"subtitle": "Local agent gateway",
"workspaceLabel": "Workspace",
+ "openControlPanel": "Control Panel",
+ "backToWorkbench": "Back to Workbench",
"navigationLabel": "Console",
"statusLabel": "Service status",
"versionLabel": "Version",
@@ -393,7 +395,47 @@
"eyebrow": "Workbench",
"placeholderTitle": "Your AI workbench is coming together",
"placeholderBody": "Agents, Skills, Harness, and Vaults will live here. For now, jump into the control panel to configure platforms and backends.",
- "openControlPanel": "Open Control Panel"
+ "openControlPanel": "Open Control Panel",
+ "capabilitiesLabel": "Capabilities",
+ "projectsLabel": "Projects",
+ "addProject": "Add project",
+ "projectsEmpty": "No projects yet — coming next commit.",
+ "nav": {
+ "inbox": "Inbox",
+ "agents": "Agents",
+ "skills": "Skills",
+ "harness": "Harness",
+ "vaults": "Vaults"
+ },
+ "modules": {
+ "comingSoonEyebrow": "Coming soon",
+ "comingSoon": "The full screen lands in a later commit; the route is reserved so the sidebar entry navigates somewhere stable.",
+ "inbox": {
+ "eyebrow": "Inbox",
+ "title": "Inbox",
+ "description": "Cross-project notifications from every avibe session. Hover popover + full list view will land in a later commit."
+ },
+ "agents": {
+ "eyebrow": "Agents",
+ "title": "Agents",
+ "description": "Global registry of every Vibe Agent — Claude / OpenCode / Codex variants you can pick when starting a session."
+ },
+ "skills": {
+ "eyebrow": "Skills",
+ "title": "Skills",
+ "description": "Manage Agent Skills (global + project-scoped) on top of the askill CLI."
+ },
+ "harness": {
+ "eyebrow": "Harness",
+ "title": "Harness",
+ "description": "Background tasks, watches, webhooks, and the run history of all three. Created by chatting with an Agent."
+ },
+ "vaults": {
+ "eyebrow": "Vaults",
+ "title": "Vaults",
+ "description": "Secrets and API keys that the Agent can pull into ENV / .env without you copy-pasting."
+ }
+ }
},
"wizard": {
"title": "Vibe Remote Setup"
diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.json
index 8812d883b..ae8da47cc 100644
--- a/ui/src/i18n/zh.json
+++ b/ui/src/i18n/zh.json
@@ -381,6 +381,8 @@
"title": "Vibe Remote",
"subtitle": "本地 agent 网关",
"workspaceLabel": "工作区",
+ "openControlPanel": "控制面板",
+ "backToWorkbench": "返回工作台",
"navigationLabel": "控制台",
"statusLabel": "服务状态",
"versionLabel": "版本",
@@ -393,7 +395,47 @@
"eyebrow": "工作台",
"placeholderTitle": "你的 AI 工作台正在搭建",
"placeholderBody": "Agents、Skills、Harness、Vaults 将会汇聚到这里。现在先进控制面板配置平台和 backend。",
- "openControlPanel": "进入控制面板"
+ "openControlPanel": "进入控制面板",
+ "capabilitiesLabel": "能力模块",
+ "projectsLabel": "项目",
+ "addProject": "添加项目",
+ "projectsEmpty": "还没有项目 — 下一个 commit 接上。",
+ "nav": {
+ "inbox": "收件箱",
+ "agents": "Agents",
+ "skills": "Skills",
+ "harness": "Harness",
+ "vaults": "Vaults"
+ },
+ "modules": {
+ "comingSoonEyebrow": "即将就位",
+ "comingSoon": "完整页面在后续 commit 接入,先占住路由让侧栏点击有地方落。",
+ "inbox": {
+ "eyebrow": "收件箱",
+ "title": "收件箱",
+ "description": "跨项目汇聚所有 avibe 会话的通知。hover 浮层和完整列表视图后续 commit 接入。"
+ },
+ "agents": {
+ "eyebrow": "Agents",
+ "title": "Agents",
+ "description": "全局 Vibe Agent 注册表 —— Claude / OpenCode / Codex 各自的变体,开会话时可选。"
+ },
+ "skills": {
+ "eyebrow": "Skills",
+ "title": "Skills",
+ "description": "在 askill CLI 之上管理 Agent Skills(全局 + 项目级)。"
+ },
+ "harness": {
+ "eyebrow": "Harness",
+ "title": "Harness",
+ "description": "后台任务、watch、webhook,以及三者的运行历史。创建走和 Agent 对话。"
+ },
+ "vaults": {
+ "eyebrow": "Vaults",
+ "title": "Vaults",
+ "description": "secrets 和 API key,Agent 可以直接写进 ENV / .env,不用你复制粘贴。"
+ }
+ }
},
"wizard": {
"title": "Vibe Remote 设置向导"