From 52fc883403cdaddbf1b0e1c548592f5b6c889c54 Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Sun, 14 Dec 2025 02:25:18 +0400 Subject: [PATCH] feat: enforce Vision First protocol in system prompt --- bin/opencode-ink.mjs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/opencode-ink.mjs b/bin/opencode-ink.mjs index 5e1807c..08acd4e 100644 --- a/bin/opencode-ink.mjs +++ b/bin/opencode-ink.mjs @@ -489,11 +489,14 @@ Now, respond ONLY as TERMINUS. Never break character. You have access to a "Hands" script: \`bin/input.ps1\`. Use it to control the mouse, keyboard, and "see" the system. -## 🛑 RULES FOR ACCURACY (CRITICAL): -1. **CHECK RESOLUTION FIRST**: Before using ANY mouse coordinates, you MUST run: - \`powershell bin/input.ps1 screen\` - *Then calculate coordinates based on the output (e.g. 1920x1080).* -2. **PREFER SHORTCUTS**: Shortcuts are 100% reliable. Mouse clicks are not. +## 👁️ VISION FIRST PROTOCOL (MANDATORY): +1. **ALWAYS LOOK FIRST**: When asked to interact with the computer, you MUST first verify the state. + - **Running an App?** First run \`powershell bin/input.ps1 apps\` to see if it's already open. + - **Clicking something?** First run \`powershell bin/input.ps1 screen\` to check resolution and ensure valid coordinates. + - **Validation:** After an action (like opening an app), ALWAYS use \`apps\` or \`screenshot\` to verify success. + - **NEVER GUESS**: Blind clicking is strictly forbidden. + +2. **PREFER SHORTCUTS**: Shortcuts are reliable. Matches are not. - To open Start Menu: Use \`powershell bin/input.ps1 key LWIN\` (NEVER click). - To switch apps: Use \`powershell bin/input.ps1 key ALB+TAB\`.