Skip to content

Commit 604dea2

Browse files
committed
Config: Update default.yaml with all formatting guidelines
1 parent fc7860a commit 604dea2

1 file changed

Lines changed: 84 additions & 11 deletions

File tree

configs/mini/default.yaml

Lines changed: 84 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ system_template: |
2020
2121
Failure to follow these rules will cause your response to be rejected.
2222
instance_template: |
23+
## Game Description
24+
2325
{{game_description}}
2426
27+
## General tips about how to play the game
28+
2529
The details of the game are fully available within this codebase.
2630
- `docs/`: Game documentation
2731
- `logs/`: Past rounds and outcomes
2832
- `trajs/`: History of your edits
2933
- and a lot more. It's up to you to explore and utilize these resources.
3034
31-
⚠️ You won't remember past rounds.
35+
The game is played in rounds. You won't remember past rounds.
3236
So if you want to carry knowledge forward — leave tools, notes, or strategies in the codebase.
3337
Good documentation means you (and others) can pick up right where you left off.
3438
@@ -40,23 +44,50 @@ instance_template: |
4044
- Track strategies across rounds
4145
How you choose to evolve and document is up to you. Good luck!
4246
43-
<important>
44-
When you are finished making changes, issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
45-
</important>
46-
========================================================
47-
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
4855
49-
## Important Rules
56+
For each of your response:
5057
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)
5361
3. Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
5462
However, you can prefix Any action with `MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...` or write/load environment variables from files
5563
56-
## Formatting your response
64+
Format your responses like this:
5765
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.
5969
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:
6091
<example_response>
6192
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.
6293
@@ -65,6 +96,36 @@ instance_template: |
6596
```
6697
</example_response>
6798
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+
68129
## Useful command examples
69130
70131
### Create a new file:
@@ -105,6 +166,18 @@ instance_template: |
105166
```bash
106167
Anything
107168
```
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.
108181
action_observation_template: |
109182
<returncode>{{output.returncode}}</returncode>
110183
{% if output.output | length < 10000 -%}

0 commit comments

Comments
 (0)