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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(ui): edit Vibey's global instruction file in the Global prompts dialog (#2516)
Call Whiteb46e67fe5e49
diff --git a/tests/test_global_agents_md.py b/tests/test_global_agents_md.pyindex f083d3717..ee40e0347 100644--- a/tests/test_global_agents_md.py+++ b/tests/test_global_agents_md.py@@ -1,7 +1,8 @@"""Unit tests for vibe.global_agents_md — per-backend global instruction fileresolution + the read/write/sync helpers that back the Web UI "Global prompts"dialog. All tests pass an isolated ``home`` so they never touch the real-``~/.claude`` / ``~/.codex`` / ``~/.config/opencode`` files."""+``~/.claude`` / ``~/.codex`` / ``~/.config/opencode`` files; Vibey's file follows the+Avibe home, which each test moves under its own ``tmp_path``."""import os@@ -18,10 +19,17 @@ from vibe.global_agents_md import ()[email protected](autouse=True)+def _avibe_home(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ monkeypatch.setenv("AVIBE_HOME", str(tmp_path / ".avibe"))++# --- path resolution ------------------------------------------------------def test_path_resolution_per_backend(tmp_path: Path):+ # Vibey's is the one it loads every Turn (C-7 tools.md section 9), in the Avibe home.+ assert global_instruction_path("vibey", tmp_path) == tmp_path / ".avibe" / "AGENTS.md"assert global_instruction_path("claude", tmp_path) == tmp_path / ".claude" / "CLAUDE.md"assert global_instruction_path("codex", tmp_path) == tmp_path / ".codex" / "AGENTS.md"assert (@@ -87,7 +95,8 @@ def test_read_existing_file(tmp_path: Path):def test_read_all_covers_every_backend(tmp_path: Path):results = read_all_global_agents_md(tmp_path)- assert {r["backend"] for r in results} == {"claude", "codex", "opencode"}+ # Catalog order, the built-in backend first.+ assert [r["backend"] for r in results] == ["vibey", "opencode", "claude", "codex"]# --- write ----------------------------------------------------------------@@ -133,11 +142,12 @@ def test_write_many_single_backend_only_writes_that_one(tmp_path: Path):def test_write_many_all_backends_syncs_identical_content(tmp_path: Path):- result = write_many_global_agents_md(["claude", "codex", "opencode"], "shared", tmp_path)+ result = write_many_global_agents_md(["vibey", "claude", "codex", "opencode"], "shared", tmp_path)+ assert (tmp_path / ".avibe" / "AGENTS.md").read_text(encoding="utf-8") == "shared"assert (tmp_path / ".claude" / "CLAUDE.md").read_text(encoding="utf-8") == "shared"assert (tmp_path / ".codex" / "AGENTS.md").read_text(encoding="utf-8") == "shared"assert (tmp_path / ".config" / "opencode" / "AGENTS.md").read_text(encoding="utf-8") == "shared"- # The refreshed seed reflects all three as existing with the synced content.+ # The refreshed seed reflects all four as existing with the synced content.assert all(entry["exists"] and entry["content"] == "shared" for entry in result)diff --git a/tests/test_vibey_backend_registration.py b/tests/test_vibey_backend_registration.pyindex fbdbb8912..cc1f7f9e6 100644--- a/tests/test_vibey_backend_registration.py+++ b/tests/test_vibey_backend_registration.py@@ -124,7 +124,7 @@ def test_vibey_agent_can_be_created_listed_selected_and_routed(tmp_path, sqlite_def test_vibey_native_operations_are_rejected_before_any_native_probe(monkeypatch):"""Expanding Agent registration must not enable the same id on native APIs."""- from vibe import cli, global_agents_md+ from vibe import clidef forbidden(*_args, **_kwargs):pytest.fail("in-process backend reached a native/CLI path")@@ -137,8 +137,6 @@ def test_vibey_native_operations_are_rejected_before_any_native_probe(monkeypatcassert api.install_agent("vibey")["ok"] is Falseassert api.get_backend_runtime("vibey")["ok"] is Falseassert api.restart_backend("vibey")["ok"] is False- with pytest.raises(ValueError):- global_agents_md.global_instruction_path("vibey")parser = cli.build_parser()assert parser.parse_args(["agent", "create", "worker", "--backend", "vibey"]).backend == "vibey"assert parser.parse_args(["agent", "models", "--backend", "vibey"]).backend == "vibey"diff --git a/ui/src/components/workbench/GlobalPromptsDialog.test.tsx b/ui/src/components/workbench/GlobalPromptsDialog.test.tsxindex abe40bc9e..168668c19 100644--- a/ui/src/components/workbench/GlobalPromptsDialog.test.tsx+++ b/ui/src/components/workbench/GlobalPromptsDialog.test.tsx@@ -18,21 +18,38 @@ afterEach(() => {vi.restoreAllMocks();});-describe('native global prompts', () => {- // Growing the Agent catalog must not invent a native prompt file for Avibe.- // The sync payload is as important as the tabs: a hidden target is still a write.- it('offers and synchronizes only native backend files', async () => {- const files = ['claude', 'opencode', 'codex', 'vibey'].map((backend) => ({- backend, content: 'Instructions', path: `/fixture/${backend}/AGENTS.md`,- filename: 'AGENTS.md', exists: true, read_error: false,- }));+describe('global prompts', () => {+ const file = (backend: string) => ({+ backend, content: 'Instructions', path: `/fixture/${backend}/AGENTS.md`,+ filename: 'AGENTS.md', exists: true, read_error: false,+ });++ // The server owns which backends have a global file: Vibey's in the Avibe home, and each+ // native CLI's. The dialog lists exactly those, in catalog order with Vibey first, and the+ // sync payload covers every listed file and nothing else: a hidden target is still a write.+ it('offers and synchronizes the files the server lists, in catalog order', async () => {+ const files = ['claude', 'opencode', 'codex', 'vibey'].map(file);mocks.getGlobalPrompts.mockResolvedValue({ backends: files });mocks.saveGlobalPrompts.mockResolvedValue({ backends: files });vi.spyOn(window, 'confirm').mockReturnValue(true);render(<GlobalPromptsDialog open onClose={vi.fn()} />);+ await screen.findByRole('tab', { name: 'Vibey' });+ expect(screen.getAllByRole('tab').map((tab) => tab.textContent)).toEqual(['Vibey', 'Claude Code', 'Codex', 'OpenCode']);+ expect(screen.getByRole('tab', { name: 'Vibey' }).getAttribute('aria-selected')).toBe('true');+ fireEvent.click(screen.getByRole('button', { name: 'globalPrompts.sync' }));+ await waitFor(() => expect(mocks.saveGlobalPrompts).toHaveBeenCalledWith({+ content: 'Instructions', backends: ['vibey', 'claude', 'codex', 'opencode'],+ }));+ });++ it('never invents a file the server does not list', async () => {+ const files = ['claude', 'codex', 'opencode'].map(file);+ mocks.getGlobalPrompts.mockResolvedValue({ backends: [...files, file('cursor')] });+ mocks.saveGlobalPrompts.mockResolvedValue({ backends: files });+ vi.spyOn(window, 'confirm').mockReturnValue(true);+ render(<GlobalPromptsDialog open onClose={vi.fn()} />);await screen.findByRole('tab', { name: 'Claude Code' });expect(screen.getAllByRole('tab').map((tab) => tab.textContent)).toEqual(['Claude Code', 'Codex', 'OpenCode']);- expect(screen.queryByRole('tab', { name: 'Vibey' })).toBeNull();fireEvent.click(screen.getByRole('button', { name: 'globalPrompts.sync' }));await waitFor(() => expect(mocks.saveGlobalPrompts).toHaveBeenCalledWith({content: 'Instructions', backends: ['claude', 'codex', 'opencode'],diff --git a/ui/src/components/workbench/GlobalPromptsDialog.tsx b/ui/src/components/workbench/GlobalPromptsDialog.tsxindex fb6a307d1..6918a4154 100644--- a/ui/src/components/workbench/GlobalPromptsDialog.tsx+++ b/ui/src/components/workbench/GlobalPromptsDialog.tsx@@ -10,47 +10,44 @@ import { useToast } from '../../context/ToastContext';import { Dialog, DialogContent, DialogDescription, DialogTitle } from '../ui/dialog';import { Button } from '../ui/button';import { MarkdownEditor } from '../ui/markdown-editor';-import { NATIVE_BACKEND_ORDER as BACKEND_ORDER, BACKEND_LABEL, BACKEND_TEXT, BACKEND_DOT } from '../../lib/backendAccent';-import type { NativeCliBackend as Backend } from '@/lib/agentBackends';+import { BACKEND_ORDER, BACKEND_LABEL, BACKEND_TEXT, BACKEND_DOT, type Backend } from '../../lib/backendAccent';type FileMeta = { path: string; filename: string; exists: boolean; readError: boolean };-const emptyStringMap = () => Object.fromEntries(BACKEND_ORDER.map((id) => [id, ''])) as Record<Backend, string>;-const emptyMetaMap = () => Object.fromEntries(BACKEND_ORDER.map((id) => [id, null])) as Record<Backend, FileMeta | null>;+// The backends with a global file, as the server lists them (Vibey's in the Avibe+// home, and each native CLI's), in the canonical BACKEND_ORDER: the server owns+// which backends have one, so the dialog never invents a file or drops a listed one.+const backendsOf = (files: GlobalPromptFile[]): Backend[] =>+ BACKEND_ORDER.filter((backend) => files.some((f) => f.backend === backend));-// Index an API response (one entry per backend) into a per-backend map over the-// canonical BACKEND_ORDER, so missing/extra ids never desync the editor state.-const mapContent = (files: GlobalPromptFile[]): Record<Backend, string> => {- const out = emptyStringMap();- for (const backend of BACKEND_ORDER) out[backend] = files.find((f) => f.backend === backend)?.content ?? '';- return out;-};-const mapMeta = (files: GlobalPromptFile[]): Record<Backend, FileMeta | null> => {- const out = emptyMetaMap();- for (const backend of BACKEND_ORDER) {- const file = files.find((f) => f.backend === backend);- out[backend] = file- ? { path: file.path, filename: file.filename, exists: file.exists, readError: file.read_error }- : null;- }- return out;-};+// Index an API response (one entry per backend) into a per-backend map, so+// missing/extra ids never desync the editor state.+const mapContent = (files: GlobalPromptFile[]): Partial<Record<Backend, string>> =>+ Object.fromEntries(backendsOf(files).map((backend) => [backend, files.find((f) => f.backend === backend)?.content ?? '']));+const mapMeta = (files: GlobalPromptFile[]): Partial<Record<Backend, FileMeta>> =>+ Object.fromEntries(+ backendsOf(files).map((backend) => {+ const file = files.find((f) => f.backend === backend)!;+ return [backend, { path: file.path, filename: file.filename, exists: file.exists, readError: file.read_error }];+ }),+ );// Edit each backend's *global* instructions file from one place — the global// twin of the per-project AGENTS.md editor. Backends are tabs; each carries its// own in-memory draft seeded from the loaded file, so edits across tabs survive-// switching until the user Saves (one backend) or Syncs (overwrites all three-// with the active draft). Reuses the shared MarkdownEditor surface.+// switching until the user Saves (one backend) or Syncs (overwrites every listed+// file with the active draft). Reuses the shared MarkdownEditor surface.export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void }> = ({ open, onClose }) => {const { t } = useTranslation();const api = useApi();const { showToast } = useToast();const [loading, setLoading] = useState(true);- const [saved, setSaved] = useState<Record<Backend, string>>(emptyStringMap);- const [drafts, setDrafts] = useState<Record<Backend, string>>(emptyStringMap);- const [meta, setMeta] = useState<Record<Backend, FileMeta | null>>(emptyMetaMap);- const [active, setActive] = useState<Backend>('claude');+ const [order, setOrder] = useState<Backend[]>([]);+ const [saved, setSaved] = useState<Partial<Record<Backend, string>>>({});+ const [drafts, setDrafts] = useState<Partial<Record<Backend, string>>>({});+ const [meta, setMeta] = useState<Partial<Record<Backend, FileMeta>>>({});+ const [active, setActive] = useState<Backend | null>(null);const [busy, setBusy] = useState(false);// Load every backend's file once per open and seed both the saved baseline@@ -59,10 +56,13 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => voidif (!open) return;let cancelled = false;setLoading(true);- setActive('claude');api.getGlobalPrompts().then((res) => {if (cancelled) return;+ const listed = backendsOf(res.backends);+ setOrder(listed);+ // The first listed backend: the built-in one, which leads every backend list.+ setActive(listed[0] ?? null);setSaved(mapContent(res.backends));setDrafts(mapContent(res.backends));setMeta(mapMeta(res.backends));@@ -81,13 +81,13 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => voidif (!open) return null;- const isDirty = (backend: Backend) => drafts[backend] !== saved[backend];- const anyDirty = BACKEND_ORDER.some(isDirty);- // Sync overwrites every backend, so any unreadable target (not just the+ const isDirty = (backend: Backend) => (drafts[backend] ?? '') !== (saved[backend] ?? '');+ const anyDirty = order.some(isDirty);+ // Sync overwrites every listed file, so any unreadable target (not just the// active one) must block it — otherwise sync would clobber a file whose// contents were never shown, defeating the read-error safeguard.- const anyReadError = BACKEND_ORDER.some((backend) => meta[backend]?.readError);- const activeMeta = meta[active];+ const anyReadError = order.some((backend) => meta[backend]?.readError);+ const activeMeta = active ? meta[active] : undefined;// Fold the refreshed file list back into the saved baseline + metadata// (clearing the active tab's dirty state) without disturbing drafts the user@@ -104,10 +104,10 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void};const handleSave = async () => {- if (busy || !isDirty(active) || meta[active]?.readError) return;+ if (busy || !active || !isDirty(active) || meta[active]?.readError) return;setBusy(true);try {- const res = await api.saveGlobalPrompts({ content: drafts[active], backends: [active] });+ const res = await api.saveGlobalPrompts({ content: drafts[active] ?? '', backends: [active] });applyResult(res.backends);showToast(t('globalPrompts.saved', { backend: BACKEND_LABEL[active] }), 'success');} catch {@@ -118,11 +118,11 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void};const handleSync = async () => {- if (busy || anyReadError) return;+ if (busy || !active || anyReadError) return;if (!window.confirm(t('globalPrompts.syncConfirm', { backend: BACKEND_LABEL[active] }))) return;setBusy(true);try {- const res = await api.saveGlobalPrompts({ content: drafts[active], backends: [...BACKEND_ORDER] });+ const res = await api.saveGlobalPrompts({ content: drafts[active] ?? '', backends: [...order] });applyResult(res.backends);// Every backend now holds the active content — reflect it across all tabs// so they read clean and show the synced text.@@ -161,7 +161,7 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void<>{/* Backend tabs — accent-colored, with a dot marking unsaved edits. */}<div role="tablist" className="flex items-center gap-1 border-b border-border px-3">- {BACKEND_ORDER.map((backend) => {+ {order.map((backend) => {const activeTab = backend === active;return (<Button@@ -190,14 +190,17 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void</div>{/* Tip — the exact file being edited + what it does, in plain terms. */}- {activeMeta && (+ {active && activeMeta && (<div className="flex flex-col gap-0.5 border-b border-border bg-surface-2 px-5 py-2"><span className="font-mono text-[11px] text-foreground">{activeMeta.path}</span>{activeMeta.readError ? (<span className="text-[11px] leading-relaxed text-gold-ink">{t('globalPrompts.readError')}</span>) : (<span className="text-[11px] leading-relaxed text-muted">- {t('globalPrompts.tipEffect', { backend: BACKEND_LABEL[active] })}+ {/* Vibey reads its file every Turn; the CLIs at the start of a session. */}+ {active === 'vibey'+ ? t('globalPrompts.tipEffectVibey')+ : t('globalPrompts.tipEffect', { backend: BACKEND_LABEL[active] })}{!activeMeta.exists && <> · {t('globalPrompts.missingHint')}</>}</span>)}@@ -213,8 +216,10 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => void</div>) : (<MarkdownEditor- value={drafts[active]}- onChange={(next) => setDrafts((prev) => ({ ...prev, [active]: next }))}+ value={active ? (drafts[active] ?? '') : ''}+ onChange={(next) => {+ if (active) setDrafts((prev) => ({ ...prev, [active]: next }));+ }}placeholder={t('globalPrompts.placeholder')}onSubmit={handleSave}/>@@ -241,7 +246,7 @@ export const GlobalPromptsDialog: React.FC<{ open: boolean; onClose: () => voidvariant="brand"size="sm"onClick={handleSave}- disabled={busy || loading || !!activeMeta?.readError || !isDirty(active)}+ disabled={busy || loading || !active || !!activeMeta?.readError || !isDirty(active)}>{busy && <Loader2 className="size-3.5 animate-spin" />}{t('globalPrompts.save')}diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex f584831c7..0eb9e15a8 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -4210,11 +4210,12 @@"description": "Edit each backend's global instructions file — applied ahead of every agent's system prompt on this machine.","placeholder": "Write global instructions for this backend in Markdown…","tipEffect": "Prepended to the system prompt of every {{backend}} agent. New sessions pick it up.",+ "tipEffectVibey": "Loaded into the system prompt of every Vibey agent at the start of each Turn, ahead of the project's AGENTS.md files. An edit applies on the next Turn.","missingHint": "this file doesn't exist yet — saving creates it","readError": "Couldn't read this file (not valid UTF-8). Fix it on disk before editing it here.","save": "Save","sync": "Sync to all backends",- "syncConfirm": "Overwrite all three backends' global prompt files with {{backend}}'s current content?",+ "syncConfirm": "Overwrite every backend's global prompt file with {{backend}}'s current content?","saved": "Saved {{backend}}'s global prompt.","synced": "Synced to all backends.","discardConfirm": "You have unsaved changes. Close and discard them?"diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 1e427b3de..2232fa589 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -4210,11 +4210,12 @@"description": "分别编辑各 backend 的全局指令文件,会加在本机所有 agent 系统提示词的最前面。","placeholder": "用 Markdown 写下该 backend 的全局指令…","tipEffect": "会加在 {{backend}} 所有 agent 系统提示词的最前面,新会话自动生效。",+ "tipEffectVibey": "每个 Turn 开始时加载进所有 Vibey agent 的系统提示词,排在项目的 AGENTS.md 之前;改动在下一个 Turn 生效。","missingHint": "该文件尚不存在,保存后会自动创建","readError": "无法读取该文件(不是有效的 UTF-8),请先在磁盘上修复后再编辑。","save": "保存","sync": "一键同步到全部 backend",- "syncConfirm": "用 {{backend}} 的当前内容覆盖全部三个 backend 的全局提示词文件?",+ "syncConfirm": "用 {{backend}} 的当前内容覆盖全部 backend 的全局提示词文件?","saved": "已保存 {{backend}} 的全局提示词。","synced": "已同步到全部 backend。","discardConfirm": "有未保存的修改,确定关闭并丢弃吗?"diff --git a/vibe/global_agents_md.py b/vibe/global_agents_md.pyindex 473d7e24f..15c5b8539 100644--- a/vibe/global_agents_md.py+++ b/vibe/global_agents_md.py@@ -1,14 +1,15 @@"""Read/write each agent backend's *global* instructions file.-These are the user-level "global system prompt" files the agent CLIs read at-the start of every session, ahead of any project- or agent-specific prompt:+These are the user-level "global system prompt" files each backend reads ahead+of any project- or agent-specific prompt:+- ``vibey`` -> ``<Avibe home>/AGENTS.md`` (default ``~/.avibe/AGENTS.md``; read every Turn, C-7 tools.md section 9)- ``claude`` -> ``~/.claude/CLAUDE.md`` (Claude Code "user memory")- ``codex`` -> ``$CODEX_HOME/AGENTS.md`` (default ``~/.codex/AGENTS.md``)- ``opencode`` -> ``~/.config/opencode/AGENTS.md`` (OpenCode global rules)This is the *global* twin of :mod:`vibe.project_agents_md`, which edits a single-project's ``AGENTS.md``. The Web UI "Global prompts" dialog edits all three from+project's ``AGENTS.md``. The Web UI "Global prompts" dialog edits all of them fromone place and can sync one backend's content over the others.Path resolution reuses the existing per-backend home resolvers@@ -16,6 +17,9 @@ Path resolution reuses the existing per-backend home resolversso we always point at the directory the live CLI actually consults — including``CLAUDE_CONFIG_DIR`` / ``CODEX_HOME`` overrides.+Vibey is no CLI: its file is where :func:`config.paths.get_global_instructions_path`+says, the one owner of that path, so it follows ``AVIBE_HOME`` rather than ``home``.+The functions are deliberately pure filesystem helpers keyed by backend id,accepting an optional ``home`` override so they stay unit-testable in isolation(the HTTP layer passes none and they resolve the real user home).@@ -27,7 +31,8 @@ from collections.abc import Iterablefrom pathlib import Pathfrom config.atomic_io import write_atomic-from modules.agents.catalog import NATIVE_CLI_BACKENDS, is_agent_backend+from config.paths import get_global_instructions_path+from modules.agents.catalog import AGENT_BACKENDSfrom vibe.claude_config import get_claude_homefrom vibe.codex_config import get_codex_homefrom vibe.opencode_config import get_opencode_config_paths@@ -39,6 +44,10 @@ GLOBAL_INSTRUCTION_FILENAME: dict[str, str] = {"codex": "AGENTS.md","opencode": "AGENTS.md",}+#: Every backend with a global instructions file, in catalog order: Vibey, built in, and the native CLIs.+GLOBAL_PROMPT_BACKENDS: tuple[str, ...] = tuple(+ backend for backend in AGENT_BACKENDS if backend == "vibey" or backend in GLOBAL_INSTRUCTION_FILENAME+)def _opencode_global_dir(home: Path | None = None) -> Path:@@ -56,6 +65,8 @@ def _opencode_global_dir(home: Path | None = None) -> Path:def global_instruction_path(backend: str, home: Path | None = None) -> Path:"""Resolve the absolute path to *backend*'s global instructions file."""+ if backend == "vibey":+ return get_global_instructions_path()if backend == "claude":return get_claude_home(home) / GLOBAL_INSTRUCTION_FILENAME["claude"]if backend == "codex":@@ -87,7 +98,7 @@ def read_global_agents_md(backend: str, home: Path | None = None) -> dict:return {"backend": backend,"path": str(path),- "filename": GLOBAL_INSTRUCTION_FILENAME[backend],+ "filename": path.name,"content": content,"exists": exists,"read_error": read_error,@@ -95,8 +106,8 @@ def read_global_agents_md(backend: str, home: Path | None = None) -> dict:def read_all_global_agents_md(home: Path | None = None) -> list[dict]:- """Return the editor seed for every known backend, in catalog order."""- return [read_global_agents_md(backend, home) for backend in NATIVE_CLI_BACKENDS]+ """Return the editor seed for every backend with a global file, in catalog order."""+ return [read_global_agents_md(backend, home) for backend in GLOBAL_PROMPT_BACKENDS]def write_global_agents_md(backend: str, content: str, home: Path | None = None) -> dict:@@ -121,7 +132,7 @@ def write_many_global_agents_md("""targets: list[str] = []for backend in backends:- if not is_agent_backend(backend) or backend not in GLOBAL_INSTRUCTION_FILENAME:+ if backend not in GLOBAL_PROMPT_BACKENDS:raise ValueError(f"Unsupported agent backend: {backend!r}")targets.append(backend)if not targets:diff --git a/vibe/ui_server.py b/vibe/ui_server.pyindex bca13b6ba..f8a9fcd8a 100644--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@ -8911,9 +8911,9 @@ def global_prompts_get():"""Read every backend's *global* instructions file for the editor.The global twin of the per-project AGENTS.md editor: each backend's- user-level prompt file (claude→~/.claude/CLAUDE.md, codex→~/.codex/AGENTS.md,- opencode→~/.config/opencode/AGENTS.md) that the CLI prepends to every- session's system prompt.+ user-level prompt file (vibey→~/.avibe/AGENTS.md, claude→~/.claude/CLAUDE.md,+ codex→~/.codex/AGENTS.md, opencode→~/.config/opencode/AGENTS.md) that it+ puts ahead of every system prompt."""from vibe.global_agents_md import read_all_global_agents_md