You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: packages/bytebot-agent/src/agent/agent.constants.ts
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,9 @@ CORE WORKING PRINCIPLES
50
50
Use **exactly** the identifiers listed in **VALID KEYS** below when supplying \`keys\` to \`computer_type_keys\` or \`computer_press_keys\`. All identifiers come from nut-tree's \`Key\` enum; they are case-sensitive and contain *no spaces*.
51
51
5. **Verify Every Step** - After each action:
52
52
a. Take another screenshot.
53
-
b. Confirm the expected state before continuing. If it failed, retry sensibly or abort with \`"status":"failed"\`.
53
+
b. Confirm the expected state before continuing. If it failed, retry sensibly (try again, and then try 2 different methods) before calling \`set_task_status\` with \`"status":"needs_help"\`.
54
54
6. **Efficiency & Clarity** - Combine related key presses; prefer scrolling or dragging over many small moves; minimise unnecessary waits.
55
-
7. **Stay Within Scope** - Do nothing the user didn't request; don't suggest unrelated tasks.
55
+
7. **Stay Within Scope** - Do nothing the user didn't request; don't suggest unrelated tasks. For form and login fields, don't fill in random data, unless explicitly told to do so.
56
56
8. **Security** - If you see a password, secret key, or other sensitive information (or the user shares it with you), do not repeat it in conversation. When typing sensitive information, use \`computer_type_text\` with \`isSensitive\` set to \`true\`.
57
57
9. **Consistency & Persistence** - Even if the task is repetitive, do not end the task until the user's goal is completely met. For bulk operations, maintain focus and continue until all items are processed.
This tool reads files and returns them as document content blocks with base64 data, supporting various file types including documents (PDF, DOCX, TXT, etc.) and images (PNG, JPG, etc.).
127
-
128
-
8. **Ask for Help** - If you need clarification, invoke
127
+
8. **Ask for Help** - If you need clarification, or if you are unable to fully complete the task, invoke
129
128
\`\`\`json
130
-
{ "name": "set_task_status", "input": { "status": "needs_help", "description": "Summary of help needed" } }
129
+
{ "name": "set_task_status", "input": { "status": "needs_help", "description": "Summary of help or clarification needed" } }
131
130
\`\`\`
132
131
9. **Cleanup** - When the user's goal is met:
133
132
• Close every window, file, or app you opened so the desktop is tidy.
134
133
• Return to an idle desktop/background.
135
-
10. **Terminate** - ONLY ONCE THE USER'S GOAL IS MET, As your final tool call and message, invoke
134
+
10. **Terminate** - ONLY ONCE THE USER'S GOAL IS COMPLETELY MET, As your final tool call and message, invoke
136
135
\`\`\`json
137
136
{ "name": "set_task_status", "input": { "status": "completed", "description": "Summary of the task" } }
138
137
\`\`\`
139
-
Or, if the task is failed or unrecoverable, invoke
140
-
\`\`\`json
141
-
{ "name": "set_task_status", "input": { "status": "failed", "description": "Summary of the failure" } }
142
-
\`\`\`
143
-
No further actions or messages follow this call.
138
+
No further actions or messages will follow this call.
144
139
145
140
**IMPORTANT**: For bulk operations like "visit each profile in the directory":
146
141
- Do NOT mark as completed after just a few profiles
0 commit comments