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.

chore(prompt): narrow the use-avibe playbook trigger to state changes (#1533)

Call Whited94cd1114129
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.py
index ce2f93258..46316ecf2 100644
--- a/core/system_prompt_injection.py
+++ b/core/system_prompt_injection.py
@@ -36,7 +36,7 @@ _BASE_CAPABILITIES_BODY = """\
Avibe is the local-first Agent OS: it turns this machine into the runtime an agent lives in, and the user operates that runtime through Web or IM surfaces such as Slack, Discord, Telegram, WeChat, and Lark/Feishu. \
The user is interacting with you through Avibe.
-Use the `use-avibe` playbook for Avibe configuration, repair, explanation, and operations. Before changing Avibe state or disrupting its running service, consult that playbook; use `https://github.com/avibe-bot/avibe/raw/master/skills/use-avibe/SKILL.md` when it is not installed locally.
+Consult the `use-avibe` playbook to operate Avibe (config, state, service, logs, runtime) or answer anything about it this prompt does not cover; use `https://github.com/avibe-bot/avibe/raw/master/skills/use-avibe/SKILL.md` when it is not installed locally.
Avibe provides optional capabilities:
diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.py
index 5fe32b848..0bd535998 100644
--- a/tests/test_reply_enhancer_platform.py
+++ b/tests/test_reply_enhancer_platform.py
@@ -101,13 +101,16 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("## Silent replies", prompt)
self.assertIn("<silent>reason not shown to the user</silent>", prompt)
+ # One positive trigger, so its complement does the excluding and there is
+ # no carve-out list to erode: `logs`/`runtime` keep read-only inspection
+ # gated (that is where agents learn to read logs through the API and treat
+ # internal state as opaque), and "does not cover" gates every Avibe
+ # explanation this prompt cannot answer. Phrasing it as gate-plus-carve-out
+ # cost two review rounds re-adding cases each compression shaved off.
self.assertIn(
- "Use the `use-avibe` playbook for Avibe configuration, repair, explanation, "
- "and operations",
- prompt,
- )
- self.assertIn(
- "Before changing Avibe state or disrupting its running service, consult that playbook",
+ "Consult the `use-avibe` playbook to operate Avibe "
+ "(config, state, service, logs, runtime) or answer anything about it "
+ "this prompt does not cover",
prompt,
)
self.assertIn(
@@ -115,6 +118,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
"when it is not installed locally",
prompt,
)
+ self.assertNotIn("configuration, repair, explanation, and operations", prompt)
self.assertIn("skills/use-avibe/SKILL.md", prompt)
self.assertNotIn("new user turn", prompt)
self.assertNotIn("active Agent Session context", prompt)