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.

fix(vibey): describe the built-in Vibey Agent as the agent its preamble names (#2456)

Call White3387b4526034
diff --git a/core/vibe_agents.py b/core/vibe_agents.py
index 2dafa7b15..4ff3a40e4 100644
--- a/core/vibe_agents.py
+++ b/core/vibe_agents.py
@@ -55,6 +55,10 @@ BUILTIN_DEFAULT_AGENT_METADATA = {"builtin": True, "builtin_default": True, "loc
BUILTIN_BACKEND_ENABLED_META_KEY = "backend_enabled"
# Catalog-owned: only the store writes them, and only on rows it created (``source == "builtin"``).
BUILTIN_AGENT_MARKER_KEYS = frozenset((*BUILTIN_DEFAULT_AGENT_METADATA, BUILTIN_BACKEND_ENABLED_META_KEY))
+# The description a built-in Agent is created with. The built-in backend's Agent is Vibey, as its system prompt
+# says (``modules/agents/vibey/prompt.py``); the prompt's Agents roster (``core/prompts/harness-agents.md``)
+# lists this description beside that identity.
+_BUILTIN_AGENT_DESCRIPTIONS = {"vibey": "Vibey, the official agent of Avibe."}
AGENT_ARCHIVE_METADATA_KEY = "_avibe_archive"
ARCHIVED_AGENT_NAME_PREFIX = "_"
LEGACY_ARCHIVED_AGENT_NAME_PREFIX = "_archived_"
@@ -1704,7 +1708,9 @@ class VibeAgentStore:
return self.create(
name=agent_name,
backend=backend,
- description=f"Default Agent for the {display_name_for_backend(backend)} backend.",
+ description=_BUILTIN_AGENT_DESCRIPTIONS.get(
+ backend, f"Default Agent for the {display_name_for_backend(backend)} backend."
+ ),
source="builtin",
metadata=metadata,
enabled=True,
diff --git a/tests/test_vibey_backend_registration.py b/tests/test_vibey_backend_registration.py
index ec331c276..2cde00ad6 100644
--- a/tests/test_vibey_backend_registration.py
+++ b/tests/test_vibey_backend_registration.py
@@ -74,6 +74,22 @@ def test_the_startup_sync_leaves_the_built_in_vibey_agent_enabled(tmp_path, sqli
store.close()
+def test_the_built_in_vibey_agent_is_described_as_the_agent_its_preamble_names(tmp_path, sqlite_db_factory):
+ """The Agents roster in the system prompt lists this description beside the preamble's identity, so the two
+ must agree; the native backends' built-in Agents keep the generic description."""
+ store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))
+ try:
+ store.ensure_builtin_default_agents(["claude"])
+
+ # The owner's wording, stated here rather than read from the code it checks.
+ assert store.get_builtin_default_agent_for_backend("vibey").description == "Vibey, the official agent of Avibe."
+ assert store.get_builtin_default_agent_for_backend("claude").description == (
+ "Default Agent for the Claude Code backend."
+ )
+ finally:
+ store.close()
+
+
def test_vibey_agent_can_be_created_listed_selected_and_routed(tmp_path, sqlite_db_factory):
"""The store and shared run-target resolver must agree on the fourth backend."""
store = VibeAgentStore(sqlite_db_factory(tmp_path / "agents.sqlite"))