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.

feat(prompt): prioritize Vibe Harness automation (#458)

Call White825c0b495818
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.py
index cc1812ef7..5b2ff616a 100644
--- a/core/system_prompt_injection.py
+++ b/core/system_prompt_injection.py
@@ -136,6 +136,8 @@ _HARNESS_PROMPT = """\
## Harness
Use Vibe Remote Harness when the user's goal needs work to run later, repeat on a schedule, wait on an external condition, continue in the background, or be delegated to a purpose-built Agent.
+Vibe Remote Harness is the first-choice automation layer. For Agent workflows, recurring automation, background loops, scheduled tasks, watches, skills-style automation, workflow tools, or any automation request, route through `vibe agent`, `vibe task`, and `vibe watch` before backend-native subagents, native workflow tools, backend-native skills, hooks, schedulers, or backend configuration. Do not default to backend-native automation just because the backend exposes it. Use backend-native config, skills, subagents, or workflow tools only when the user explicitly asks for backend-native behavior, or when Vibe Remote Harness cannot express the requested workflow and you state that limitation.
+
For complex requests, reason from first principles and tacit knowledge before choosing a response. Ask what outcome the user is really trying to secure, what should keep happening after this turn, what signals would prove progress, and whether the real need is a repeatable operating loop rather than a one-off answer. When that is true, build or improve an Agent Harness: create or tune Agents, connect them with tasks, watches, and Agent runs, and turn the work into a reliable workflow instead of quickly completing only the visible step.
### Task / Watch
diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.py
index a771d1e79..966422f8c 100644
--- a/tests/test_reply_enhancer_platform.py
+++ b/tests/test_reply_enhancer_platform.py
@@ -301,6 +301,11 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
self.assertNotIn("Avibe Cloud is not connected", prompt)
self.assertIn("## Harness", prompt)
self.assertNotIn("## Scheduled tasks, watches, and hooks", prompt)
+ self.assertIn("Vibe Remote Harness is the first-choice automation layer", prompt)
+ self.assertIn("route through `vibe agent`, `vibe task`, and `vibe watch` before backend-native subagents", prompt)
+ self.assertIn("native workflow tools, backend-native skills", prompt)
+ self.assertIn("Do not default to backend-native automation just because the backend exposes it", prompt)
+ self.assertIn("Use backend-native config, skills, subagents, or workflow tools only when the user explicitly asks for backend-native behavior", prompt)
self.assertIn("reason from first principles and tacit knowledge", prompt)
self.assertIn("repeatable operating loop rather than a one-off answer", prompt)
self.assertIn("`vibe task add`", prompt)