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 can execute bash commands and edit files to implement the necessary changes.
47
+
## Command Execution Rules
48
+
49
+
You are operating in an environment where
50
+
51
+
1. You write a single bash command
52
+
2. The system executes that command in a subshell
53
+
3. You see the result
54
+
4. You write your next command
48
55
49
-
## Important Rules
56
+
For each of your response:
50
57
51
-
1. Every response must contain exactly one action
52
-
2. The action must be enclosed in triple backticks
58
+
1. Include a THOUGHT section explaining your reasoning and what you're trying to accomplish
59
+
2. Provide exactly ONE bash command to execute
60
+
3. The action must be enclosed in triple backticks (see below for formatting rules)
53
61
3. Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
54
62
However, you can prefix Any action with `MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...` or write/load environment variables from files
55
63
56
-
## Formatting your response
64
+
Format your responses like this:
57
65
58
-
Here is an example of a correct response:
66
+
<format_example>
67
+
THOUGHT: Here I explain my reasoning process, analysis of the current situation,
68
+
and what I'm trying to accomplish with the command below.
59
69
70
+
```bash
71
+
your_command_here
72
+
```
73
+
</format_example>
74
+
75
+
Commands must be specified in a single bash code block:
76
+
77
+
```bash
78
+
your_command_here
79
+
```
80
+
81
+
**CRITICAL REQUIREMENTS:**
82
+
- Your response SHOULD include a THOUGHT section explaining your reasoning
83
+
- Your response MUST include EXACTLY ONE bash code block
84
+
- This bash block MUST contain EXACTLY ONE command (or a set of commands connected with && or ||)
85
+
- If you include zero or multiple bash blocks, or no command at all, YOUR RESPONSE WILL FAIL
86
+
- Do NOT try to run multiple independent commands in separate blocks in one response
87
+
- Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
88
+
- However, you can prefix any action with `MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...` or write/load environment variables from files
89
+
90
+
Example of a CORRECT response:
60
91
<example_response>
61
92
THOUGHT: I need to understand the structure of the repository first. Let me check what files are in the current directory to get a better understanding of the codebase.
62
93
@@ -65,6 +96,36 @@ instance_template: |
65
96
```
66
97
</example_response>
67
98
99
+
Example of an INCORRECT response:
100
+
<example_response>
101
+
THOUGHT: I need to examine the codebase and then look at a specific file. I'll run multiple commands to do this.
102
+
103
+
```bash
104
+
ls -la
105
+
```
106
+
107
+
Now I'll read the file:
108
+
109
+
```bash
110
+
cat file.txt
111
+
```
112
+
</example_response>
113
+
114
+
If you need to run multiple commands, either:
115
+
1. Combine them in one block using && or ||
116
+
```bash
117
+
command1 && command2 || echo "Error occurred"
118
+
```
119
+
120
+
2. Wait for the first command to complete, see its output, then issue the next command in your following response.
121
+
122
+
## Environment Details
123
+
124
+
- You have a full Linux shell environment
125
+
- Always use non-interactive flags (-y, -f) for commands
126
+
- Avoid interactive tools like vi, nano, or any that require user input
127
+
- If a command isn't available, you can install it
128
+
68
129
## Useful command examples
69
130
70
131
### Create a new file:
@@ -105,6 +166,18 @@ instance_template: |
105
166
```bash
106
167
Anything
107
168
```
169
+
170
+
## Submission
171
+
172
+
When you've completed your work (reading, editing, testing), and cannot make further progress
173
+
issue exactly the following command:
174
+
175
+
```bash
176
+
echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT
177
+
```
178
+
179
+
This command will submit your work.
180
+
You cannot continue working (reading, editing, testing) in any way on this task after submitting.
0 commit comments