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
feat(cortex-prompt-harness): remove WORKSPACE_CLEANUP section from top-agent prompts
- Remove SECTION_WORKSPACE_CLEANUP constant and all references
- Remove WORKSPACE_CLEANUP from TOP_AGENT_SECTION_NAMES array
- Remove WORKSPACE_CLEANUP from TopAgentPromptBuilder sections
- Remove .without_section("WORKSPACE_CLEANUP") from presets
- Update module documentation
- Update tests that referenced WORKSPACE_CLEANUP
All sections are now unconditionally included in the system prompt.
Copy file name to clipboardExpand all lines: src/cortex-prompt-harness/src/prompts/top_agent.rs
+5-50Lines changed: 5 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@
9
9
//! - Concise, direct, and friendly communication
10
10
//! - Multiple tool calling patterns
11
11
//! - Background process management
12
-
//! - Workspace cleanup before completion
13
12
//!
14
13
//! # Usage
15
14
//!
@@ -23,7 +22,7 @@
23
22
//! let custom = TopAgentPromptBuilder::new()
24
23
//! .with_code_execution()
25
24
//! .with_file_operations()
26
-
//! .without_section("WORKSPACE_CLEANUP")
25
+
//! .without_section("GEOMETRIC_DATA")
27
26
//! .build();
28
27
//! ```
29
28
@@ -411,24 +410,6 @@ The example was generated from different input data. Your output WILL have diffe
411
410
412
411
**When values differ from example:** That's expected. Stop. Do not adjust. Move on. Do not add offsets, base addresses, or any transformations to match example values."#;
Before marking a task complete, clean up any artifacts that could interfere with verification or leave the workspace in a messy state:
418
-
419
-
- **Generated artifacts**: Remove compiled files, build outputs, and cache directories that you created during the task (e.g., `__pycache__`, `.pyc`, `node_modules` if you installed them, `dist/`, `build/`, `*.egg-info`).
420
-
- **Temporary files**: Delete any temporary files, logs, or scratch files you created for debugging or testing (e.g., `*.tmp`, `*.log`, test scripts you added).
421
-
- **Intermediate outputs**: Clean up any intermediate files from multi-step processes that aren't part of the final deliverable.
422
-
423
-
**Guidelines:**
424
-
- Only remove artifacts YOU created during this task, never pre-existing files.
425
-
- If unsure whether a file existed before, leave it alone.
426
-
- Keep files that are explicitly required by the task or verification.
427
-
- Use `rm -rf` cautiously and only on directories you created.
428
-
- When in doubt, list files before removing: `ls -la` first, then targeted removal.
429
-
430
-
This ensures the workspace remains clean for verification tests and doesn't contain artifacts that could cause false positives or negatives."#;
431
-
432
413
/// Ambition vs precision guidance section.
433
414
pubconstSECTION_AMBITION_PRECISION:&str = r#"## Ambition vs. Precision
434
415
@@ -933,25 +914,6 @@ The example was generated from different input data. Your output WILL have diffe
933
914
934
915
---
935
916
936
-
## Workspace Cleanup (GC)
937
-
938
-
Before marking a task complete, clean up any artifacts that could interfere with verification or leave the workspace in a messy state:
939
-
940
-
- **Generated artifacts**: Remove compiled files, build outputs, and cache directories that you created during the task (e.g., `__pycache__`, `.pyc`, `node_modules` if you installed them, `dist/`, `build/`, `*.egg-info`).
941
-
- **Temporary files**: Delete any temporary files, logs, or scratch files you created for debugging or testing (e.g., `*.tmp`, `*.log`, test scripts you added).
942
-
- **Intermediate outputs**: Clean up any intermediate files from multi-step processes that aren't part of the final deliverable.
943
-
944
-
**Guidelines:**
945
-
- Only remove artifacts YOU created during this task, never pre-existing files.
946
-
- If unsure whether a file existed before, leave it alone.
947
-
- Keep files that are explicitly required by the task or verification.
948
-
- Use `rm -rf` cautiously and only on directories you created.
949
-
- When in doubt, list files before removing: `ls -la` first, then targeted removal.
950
-
951
-
This ensures the workspace remains clean for verification tests and doesn't contain artifacts that could cause false positives or negatives.
952
-
953
-
---
954
-
955
917
## Ambition vs. Precision
956
918
957
919
For tasks that have no prior context (i.e. the user is starting something brand new), you should feel free to be ambitious and demonstrate creativity with your implementation.
0 commit comments