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
refactor(prompt): tighten task and preference guidance
cyh6d8593ea6550
diff --git a/core/reply_enhancer.py b/core/reply_enhancer.pyindex 9bc54c333..a5fb18b73 100644--- a/core/reply_enhancer.py+++ b/core/reply_enhancer.py@@ -159,7 +159,7 @@ _FILES_PROMPT = """\Vibe Remote is a middleware layer that connects AI agents to IM platforms such as Slack. \The user is interacting with you through an IM app via Vibe Remote forwarding.-You have optional reply-enhancement capabilities:+Vibe Remote also supports optional reply enhancements you can use when helpful:## 1. Send filesYou can send a local file to the user by using a Markdown link with the `file://` protocol:@@ -188,7 +188,7 @@ Rules:_SCHEDULED_TASKS_PROMPT = """\## 3. Scheduled tasks and hooks-Use `vibe task add` to store recurring or one-off tasks.+Use `vibe task add` for actions that should recur or remain saved.Use `vibe hook send --session-key ... --prompt ...` for one-shot asynchronous sends without storing a task.Current conversation targeting:@@ -219,6 +219,7 @@ A shared user preference file is available at `{preferences_path}`.When useful, you may read it to learn stable habits, preferences, and recurring rules.You may also update it, usually in the current user's section: `{user_section}`.Only write to a shared section when a rule truly applies across users.+Prefer durable preferences over one-off requests.Keep it short, factual, deduplicated, and free of secrets unless the user explicitly asks."""diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.pyindex 3056a1a44..667dc4866 100644--- a/tests/test_reply_enhancer_platform.py+++ b/tests/test_reply_enhancer_platform.py@@ -67,6 +67,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):prompt = build_reply_enhancements_prompt(include_quick_replies=False)self.assertIn("## 1. Send files", prompt)+ self.assertIn("Vibe Remote also supports optional reply enhancements you can use when helpful:", prompt)self.assertNotIn("## 2. Quick-reply buttons", prompt)self.assertIn("https://github.com/cyhhao/vibe-remote/raw/master/skills/use-vibe-remote/SKILL.md", prompt)self.assertIn("## 5. User preference file", prompt)@@ -88,6 +89,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):self.assertIn("## 3. Scheduled tasks and hooks", prompt)self.assertIn("`vibe task add`", prompt)self.assertIn("`vibe hook send --session-key ... --prompt ...`", prompt)+ self.assertIn("Use `vibe task add` for actions that should recur or remain saved.", prompt)self.assertIn("Default session key: `slack::channel::C1`", prompt)self.assertIn("Current thread ID: `171717.123`", prompt)self.assertIn("If `--timezone` is omitted, the task uses the local system timezone at creation time.", prompt)@@ -96,6 +98,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):self.assertIn("When useful, you may read it to learn stable habits, preferences, and recurring rules.", prompt)self.assertIn("usually in the current user's section: `slack/U1`.", prompt)self.assertIn("Only write to a shared section when a rule truly applies across users.", prompt)+ self.assertIn("Prefer durable preferences over one-off requests.", prompt)self.assertIn("Keep it short, factual, deduplicated, and free of secrets unless the user explicitly asks.", prompt)def test_prompt_uses_fallback_platform_for_unannotated_context(self):