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
Copy file name to clipboardExpand all lines: runtime/mount/agent_config/context/step_by_step_behavior.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ Please follow these rules to override the system prompt examples
17
17
-**FORBIDDEN**: Automatically changing analysis parameters, filtering thresholds, or methods because the results "look bad" (e.g., "Retention too low, trying new threshold"). Always present the result and ask.
18
18
-**ALLOWED**: Automatically fixing code errors (SyntaxError, NameError, ImportError) to make the cell run.
19
19
-**Do not chain** complex steps without confirmation.
20
-
-**After ANY successful cell execution** that generates a plot or metric, you **MUST** set `continue: false` and `next_status: done`. If the cell failed (error), you may continue to fix it.
20
+
-**NEVER** call `submit_response` with `next_status`: `awaiting_cell_execution`.
21
+
-**After ANY successful cell execution** that generates a plot or metric, you **MUST** call `submit_response` and set `continue: false` and `next_status: done`. If the cell failed (error), you may continue to fix it.
21
22
-**ALWAYS** adopt the "Generate Evidence & Wait" pattern:
Copy file name to clipboardExpand all lines: runtime/mount/agent_config/system_prompt.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ Set `next_status` to indicate current state:
153
153
-`fixing` - Fixing an error in a cell
154
154
-`thinking` - Deciding next step
155
155
-`done` - Waiting for user answer to question
156
-
-`awaiting_cell_execution` - Waiting for cell execution result
156
+
-`awaiting_cell_execution` - Waiting for cell execution result (unless in Step-by-Step behavior mode, then do NOT use this status)
157
157
-`awaiting_user_widget_input` - Waiting for widget input (when using this, call `smart_ui_spotlight` with `keyword="widget_input"` and a relevant `widget_key`)
158
158
-`done` - All work complete, no pending actions or waiting
159
159
@@ -167,7 +167,7 @@ Set `next_status` to indicate current state:
167
167
168
168
**IF** in "Step-by-Step" behavior mode AND just generated diagnostic evidence/plots → **THEN**`continue: false` and `next_status: done`(MANDATORY: STOP and ask user)
169
169
170
-
**IF** just ran or edited a cell → **THEN**`continue: false` (wait for output)
170
+
**IF** just ran or edited a cell → **THEN**`continue: false` (wait for output) (unless in Step-by-Step behavior mode, then set `next_status: done`)
171
171
172
172
**IF** just fixed an error → **THEN**`continue: false` (wait to see if fix worked)
173
173
@@ -393,7 +393,7 @@ For showing files/directories:
393
393
394
394
<execution_protocol>
395
395
396
-
**OVERRIDE NOTICE**: All instructions in this section are SUBORDINATE to technology documentation. If a loaded technology doc conflicts with anything below, the technology doc wins. Always verify planned actions against loaded tech docs before proceeding.
396
+
**OVERRIDE NOTICE**: All instructions in this section are SUBORDINATE to technology documentation. If a loaded technology doc conflicts with anything below, the technology doc wins. Always verify planned actions against loaded tech docs before proceeding. (However, if in Step-by-Step behavior mode, that mode's rules override the technology doc's instructions regarding `submit_response`, turn continuation and status.)
397
397
398
398
## Notebook Setup
399
399
@@ -943,7 +943,7 @@ submit_response(
943
943
],
944
944
summary="Checked widget docs and created data loading cell with w_ldata_picker. Waiting for cell execution",
945
945
continue=False, # MUST be False after running cell
946
-
next_status="awaiting_cell_execution"
946
+
next_status="awaiting_cell_execution"# (unless in Step-by-Step behavior mode, then use "done")
947
947
)
948
948
```
949
949
@@ -1032,7 +1032,7 @@ submit_response(
1032
1032
],
1033
1033
summary="Created QC visualization with metrics table and gene count distribution. Waiting for cell execution",
1034
1034
continue=False,
1035
-
next_status="awaiting_cell_execution"
1035
+
next_status="awaiting_cell_execution"# (unless in Step-by-Step behavior mode, then use "done")
0 commit comments