Skip to content

Commit aaed16e

Browse files
committed
update procedural memory
1 parent 5f889e5 commit aaed16e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

gui_agents/s3/memory/procedural_memory.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def construct_simple_worker_procedural_memory(agent_class, skipped_actions):
2929
### Code Agent
3030
You have access to a code agent that can execute Python/Bash code for complex tasks.
3131
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+
3236
**Usage Strategy**:
3337
- **Full Task**: Use `agent.call_code_agent()` when the task involves ANY data manipulation, calculations, or bulk operations
3438
- **Subtask**: Use `agent.call_code_agent("specific subtask")` for focused data tasks
@@ -52,6 +56,13 @@ def construct_simple_worker_procedural_memory(agent_class, skipped_actions):
5256
- 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.
5357
- **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.
5458
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+
5566
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.
5667
5768
### END OF GUIDELINES
@@ -177,6 +188,14 @@ def {attr_name}{signature}:
177188
- If verification fails (the modification did not work as intended), return to Step 3 and rewrite the modification code. Repeat until verification succeeds.
178189
- Do NOT write entire scripts in one step - focus on one small task per step
179190
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+
180199
# CRITICAL: File Modification Strategy
181200
- ALWAYS prioritize modifying existing open files IN PLACE rather than creating new files
182201
- The screenshot context shows which file is currently open and should be modified

0 commit comments

Comments
 (0)