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.

6.3 KB
Raw Blame

Vibey is the built-in backend

Owner decision (2026-10-06)

Vibey is Avibe's own agent and takes part in the platform's core operation. It is listed first in every backend list, it is always enabled, and it cannot be turned off.

Change contract

  • One descriptor fact. AgentBackendDescriptor.builtin marks the built-in backend (vibey). BUILTIN_AGENT_BACKENDS and is_builtin_backend() derive from it; the generated UI catalog projects it as builtin. No consumer special-cases the id.
  • Order. AGENT_BACKEND_REGISTRY lists vibey first, and registry order is the one display order: Settings → Backends, the Models page routes (MODEL_HUB_BACKENDS is now the registry order, whose ordering had no processing meaning), the Agent create picker, the Agents page groups and filter, the Global prompts tabs (the UI's BACKEND_ORDER, derived from the catalog; the separate agentOrder is gone), and IM routing pickers. Native backends therefore read OpenCode, Claude Code, Codex everywhere a backend list is shown.
  • The replacement rank. Which Agent a new install records first, and which recorded defaults are kept, is owned by vibey-default-agent.md. implicit_default_rank (modules/agents/catalog.py) is the rule for a replacement: a backend or Agent picked because the recorded one cannot be used. There the built-in backend comes last, so it is chosen only when nothing else is enabled. Every replacement goes through it: the built-in sync's replacement of a missing or disabled default, the effective-default fallbacks (resolve_effective_default_agent, _effective_default_agent), the per-principal fallback (resolve_usable_default_agent), the archived default's replacement after its same-backend preference, and the IM routing modal's fallback selection. DEFAULT_AGENT_BACKEND stays opencode; it is reached only when no Agent row resolves at all.
  • Always on, by construction. The built-in backend has no agents.<id> section; like any unknown agents.* key, one in a config file or a POST /api/config body is ignored and never saved. The controller registers the adapter at startup and never unregisters it; runtime renewal is a no-op for it.
  • Built-in Agent. get_builtin_default_agent_for_backend is the one owner of built-in identity: the oldest row the store created and marked for the backend (source == "builtin" and the built-in markers, neither of which a caller can write), under any name; the released legacy instance default (default) counts only if marked. The built-in markers (builtin, builtin_default, lock_delete, backend_enabled) are a projection only the store writes: create and update drop them from caller metadata and keep the row's own. ensure_builtin_default_agents always includes the built-in backend and creates its row when it is missing, so the row exists and is enabled when controller startup's sync returns (Model Hub seeds the Vibey supply onto it next). It is created at its backend id (vibey), or at the next free name (vibey-2) when a user's own Agent, which a released build may hold, already has vibey. VibeAgentStore.update refuses to disable it (agent_always_enabled); its model, effort, prompt and description stay editable.
  • Backend choices route to the built-in. A routing picker that chooses a backend saves that backend's built-in Agent's name (VibeAgentStore.routing_name_for_backend), never the backend id. A routing value that equals a backend id stands for that backend only for the native backends, whose released routing can hold one; vibey in routing is always an Agent name.
  • Refusal. PATCH /api/agents/<built-in name> (vibey on a fresh install) with enabled: false returns 400 agent_always_enabled; the CLI reports the same code.
  • UI. The built-in backend shows a "Built-in" badge where other backends have their enable switch, in the list and on its page. The built-in Agent's enable switch is locked on. Users meet the backend as Vibey (the catalog's display_name), drawn with the mascot mark (BACKEND_BRAND_MARKS.vibey).
  • Model Hub cannot supply. hub_supply_block(backend, hub_config) (config/v2_config.py) is the one owner of why the Model Hub leaves a backend no model to run on now. The shared model gate and the adapter's preflight render its copy (hub_supply_refusal), get_backend_connection reports such a backend unready, and GET /api/config carries it as agent_supply_blocks, which the Backends pages show. The backend stays listed and enabled in every case.
    • A legacy disabled gateway or runtime recovery state: its row says "Gateway unavailable", its page links to Models for recovery, and a Turn refuses with errors.modelGatewayOff. Model Hub is enabled by default and the experimental Models Start/Stop switch is retired; the backend lifecycle API and safety gates remain intact.
    • Model Hub disabled on the instance (VIBE_MODEL_HUB_ENABLED=0): a backend without its own CLI gets every model through the Hub, so its row says "Model Hub disabled", its page says so without a Models link, and a Turn refuses with errors.modelHubDisabled.
    • No source may supply a backend without its own CLI (no_source): owned by vibey-default-agent.md §2.

Known by design

  • The setup wizard draws Vibey first, as the coordinator, ahead of the native setup sequence (Claude Code, Codex, OpenCode: nativeOrder), and Vibey alone can complete setup. That is the owner's follow-up decision, delivered by feat/vibey-setup-wizard; see setup-three-screen/contracts.md §C4 (D3). Which Agent a new install records as its default is owned by vibey-default-agent.md.
  • Setup onboarding is therefore not CLI-only (owner override, 2026-10-07, of the registration contract's "native setup onboarding remains CLI-only"): the built-in backend is a setup card with no CLI to detect, install or enable. Native import and the global native prompt files remain CLI-only.
  • The Agents page detail panel mirrors is_builtin_default_agent from the Agent's source and markers; setupTargets.isBuiltinAgent reads the markers, which callers can no longer write.
  • Making Vibey the default for new chats was a separate owner decision, recorded in vibey-default-agent.md.