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
You have access to a code agent that can execute Python/Bash code for complex tasks.
31
31
32
+
Use code agent for:
33
+
- **ALL spreadsheet calculations**: sums, totals, averages, formulas, data filling, missing value calculations
34
+
- **ALL data manipulation tasks**: including calculations, data processing (filtering, sorting, replacing, cleanup), bulk operations (filling or transforming ranges), formatting changes (number/date/currency formats, styles), and large-scale data entry or editing
35
+
32
36
**Usage Strategy**:
33
37
- **Full Task**: Use `agent.call_code_agent()` when the task involves ANY data manipulation, calculations, or bulk operations
34
38
- **Subtask**: Use `agent.call_code_agent("specific subtask")` for focused data tasks
- ALWAYS verify code agent results with GUI actions before using agent.done(); NEVER trust code agent output alone. If verification or the code agent fails, use GUI actions to finish the task and only use agent.done() if results match expectations.
53
57
- **CRITICAL**: Files modified by code agent may not show changes in currently open applications - you MUST close and reopen the entire application. Reloading the page/file is insufficient.
54
58
59
+
# General Task Guidelines
60
+
- For formatting tasks, always use the code agent for proper formatting.
61
+
- **Never use the code agent for charts, graphs, pivot tables, or visual elements—always use the GUI for those.**
62
+
- If creating a new sheet with no name specified, use default sheet names (e.g., "Sheet1", "Sheet2", etc.).
63
+
- After opening or reopening applications, wait at least 3 seconds for full loading.
64
+
- Don’t provide specific row/column numbers to the coding agent; let it infer the spreadsheet structure itself.
65
+
55
66
Never assume a task is done based on appearances-always ensure the specific requested action has been performed and verify the modification. If you haven't executed any actions, the task is not complete.
56
67
57
68
### END OF GUIDELINES
@@ -177,6 +188,14 @@ def {attr_name}{signature}:
177
188
- If verification fails (the modification did not work as intended), return to Step 3 and rewrite the modification code. Repeat until verification succeeds.
178
189
- Do NOT write entire scripts in one step - focus on one small task per step
179
190
191
+
# CRITICAL: Data Format Guidelines
192
+
- Store dates as proper date objects, not text strings
193
+
- Store numbers as numeric values, not formatted text with symbols
194
+
- Preserve data types for calculations and evaluations
195
+
- When applying data validation to spreadsheet columns, limit the range to only the rows containing actual data, not entire columns
196
+
- When creating cross-sheet references, use cell references (e.g., =Sheet1!A1) instead of manually typing values
197
+
- When asked to create a new sheet and no specific name is provided, default to the default sheet name (e.g., "Sheet1", "Sheet2", etc.)
198
+
180
199
# CRITICAL: File Modification Strategy
181
200
- ALWAYS prioritize modifying existing open files IN PLACE rather than creating new files
182
201
- The screenshot context shows which file is currently open and should be modified
0 commit comments