danielhanchen commited on
Commit
713e4a4
·
verified ·
1 Parent(s): f021f01

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +514 -3
README.md CHANGED
@@ -1,3 +1,514 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - fr
5
+ - de
6
+ - es
7
+ - pt
8
+ - it
9
+ - ja
10
+ - ko
11
+ - ru
12
+ - zh
13
+ - ar
14
+ - fa
15
+ - id
16
+ - ms
17
+ - ne
18
+ - pl
19
+ - ro
20
+ - sr
21
+ - sv
22
+ - tr
23
+ - uk
24
+ - vi
25
+ - hi
26
+ - bn
27
+ license: apache-2.0
28
+ library_name: vllm
29
+ inference: false
30
+ base_model:
31
+ - mistralai/Mistral-Small-3.1-24B-Instruct-2503
32
+ extra_gated_description: >-
33
+ If you want to learn more about how we process your personal data, please read
34
+ our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
35
+ pipeline_tag: text2text-generation
36
+ ---
37
+
38
+ # Devstral Small 1.1
39
+
40
+ Devstral is an agentic LLM for software engineering tasks built under a collaboration between [Mistral AI](https://mistral.ai/) and [All Hands AI](https://www.all-hands.dev/) 🙌. Devstral excels at using tools to explore codebases, editing multiple files and power software engineering agents. The model achieves remarkable performance on SWE-bench which positionates it as the #1 open source model on this [benchmark](#benchmark-results).
41
+
42
+ It is finetuned from [Mistral-Small-3.1](https://huggingface.co/mistralai/Mistral-Small-3.1-24B-Base-2503), therefore it has a long context window of up to 128k tokens. As a coding agent, Devstral is text-only and before fine-tuning from `Mistral-Small-3.1` the vision encoder was removed.
43
+
44
+ For enterprises requiring specialized capabilities (increased context, domain-specific knowledge, etc.), we will release commercial models beyond what Mistral AI contributes to the community.
45
+
46
+ Learn more about Devstral in our [blog post](https://mistral.ai/news/devstral).
47
+
48
+ **Updates compared to [`Devstral Small 1.0`](https://huggingface.co/mistralai/Devstral-Small-2505):**
49
+ - Improved performance, please refer to the [benchmark results](#benchmark-results).
50
+ - `Devstral Small 1.1` is still great when paired with OpenHands. This new version also generalizes better to other prompts and coding environments.
51
+
52
+
53
+ ## Key Features:
54
+ - **Agentic coding**: Devstral is designed to excel at agentic coding tasks, making it a great choice for software engineering agents.
55
+ - **lightweight**: with its compact size of just 24 billion parameters, Devstral is light enough to run on a single RTX 4090 or a Mac with 32GB RAM, making it an appropriate model for local deployment and on-device use.
56
+ - **Apache 2.0 License**: Open license allowing usage and modification for both commercial and non-commercial purposes.
57
+ - **Context Window**: A 128k context window.
58
+ - **Tokenizer**: Utilizes a Tekken tokenizer with a 131k vocabulary size.
59
+
60
+
61
+ ## Benchmark Results
62
+
63
+ ### SWE-Bench
64
+
65
+ Devstral Small 1.1 achieves a score of **52.4%** on SWE-Bench Verified, outperforming Devstral Small 1.0 by +5,6% and the second best state of the art model by +10.2%.
66
+
67
+ | Model | Agentic Scaffold | SWE-Bench Verified (%) |
68
+ |--------------------|--------------------|------------------------|
69
+ | Devstral Small 1.1 | OpenHands Scaffold | **52.4** |
70
+ | Devstral Small 1.0 | OpenHands Scaffold | *46.8* |
71
+ | GPT-4.1-mini | OpenAI Scaffold | 23.6 |
72
+ | Claude 3.5 Haiku | Anthropic Scaffold | 40.6 |
73
+ | SWE-smith-LM 32B | SWE-agent Scaffold | 40.2 |
74
+ | Skywork SWE | OpenHands Scaffold | 38.0 |
75
+ | DeepSWE | R2E-Gym Scaffold | 42.2 |
76
+
77
+
78
+ When evaluated under the same test scaffold (OpenHands, provided by All Hands AI 🙌), Devstral exceeds far larger models such as Deepseek-V3-0324 and Qwen3 232B-A22B.
79
+
80
+ ![SWE Benchmark](assets/swe_benchmark.png)
81
+
82
+ ## Usage
83
+
84
+ We recommend to use Devstral with the [OpenHands](https://github.com/All-Hands-AI/OpenHands/tree/main) scaffold.
85
+ You can use it either through our API or by running locally.
86
+
87
+ ### API
88
+ Follow these [instructions](https://docs.mistral.ai/getting-started/quickstart/#account-setup) to create a Mistral account and get an API key.
89
+
90
+ Then run these commands to start the OpenHands docker container.
91
+ ```bash
92
+ export MISTRAL_API_KEY=<MY_KEY>
93
+
94
+ mkdir -p ~/.openhands && echo '{"language":"en","agent":"CodeActAgent","max_iterations":null,"security_analyzer":null,"confirmation_mode":false,"llm_model":"mistral/devstral-small-2507","llm_api_key":"'$MISTRAL_API_KEY'","remote_runtime_resource_factor":null,"github_token":null,"enable_default_condenser":true}' > ~/.openhands-state/settings.json
95
+
96
+ docker pull docker.all-hands.dev/all-hands-ai/runtime:0.48-nikolaik
97
+
98
+ docker run -it --rm --pull=always \
99
+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.48-nikolaik \
100
+ -e LOG_ALL_EVENTS=true \
101
+ -v /var/run/docker.sock:/var/run/docker.sock \
102
+ -v ~/.openhands:/.openhands \
103
+ -p 3000:3000 \
104
+ --add-host host.docker.internal:host-gateway \
105
+ --name openhands-app \
106
+ docker.all-hands.dev/all-hands-ai/openhands:0.48
107
+ ```
108
+
109
+ ### Local inference
110
+
111
+ The model can also be deployed with the following libraries:
112
+ - [`vllm (recommended)`](https://github.com/vllm-project/vllm): See [here](#vllm-recommended)
113
+ - [`mistral-inference`](https://github.com/mistralai/mistral-inference): See [here](#mistral-inference)
114
+ - [`transformers`](https://github.com/huggingface/transformers): See [here](#transformers)
115
+ - [`LMStudio`](https://lmstudio.ai/): See [here](#lmstudio)
116
+ - [`llama.cpp`](https://github.com/ggml-org/llama.cpp): See [here](#llama.cpp)
117
+ - [`ollama`](https://github.com/ollama/ollama): See [here](#ollama)
118
+
119
+
120
+ #### vLLM (recommended)
121
+
122
+ <details>
123
+ <summary>Expand</summary
124
+
125
+ We recommend using this model with the [vLLM library](https://github.com/vllm-project/vllm)
126
+ to implement production-ready inference pipelines.
127
+
128
+ **_Installation_**
129
+
130
+ Make sure you install [`vLLM >= 0.9.1`](https://github.com/vllm-project/vllm/releases/tag/v0.9.1):
131
+
132
+ ```
133
+ pip install vllm --upgrade
134
+ ```
135
+
136
+ Also make sure to have installed [`mistral_common >= 1.7.0`](https://github.com/mistralai/mistral-common/releases/tag/v1.7.0).
137
+
138
+ ```
139
+ pip install mistral-common --upgrade
140
+ ```
141
+
142
+ To check:
143
+ ```
144
+ python -c "import mistral_common; print(mistral_common.__version__)"
145
+ ```
146
+
147
+ You can also make use of a ready-to-go [docker image](https://github.com/vllm-project/vllm/blob/main/Dockerfile) or on the [docker hub](https://hub.docker.com/layers/vllm/vllm-openai/latest/images/sha256-de9032a92ffea7b5c007dad80b38fd44aac11eddc31c435f8e52f3b7404bbf39).
148
+
149
+ **_Launch server_**
150
+
151
+ We recommand that you use Devstral in a server/client setting.
152
+
153
+ 1. Spin up a server:
154
+
155
+ ```
156
+ vllm serve mistralai/Devstral-Small-2507 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2
157
+ ```
158
+
159
+
160
+ 2. To ping the client you can use a simple Python snippet.
161
+
162
+ ```py
163
+ import requests
164
+ import json
165
+ from huggingface_hub import hf_hub_download
166
+
167
+
168
+ url = "http://<your-server-url>:8000/v1/chat/completions"
169
+ headers = {"Content-Type": "application/json", "Authorization": "Bearer token"}
170
+
171
+ model = "mistralai/Devstral-Small-2507"
172
+
173
+ def load_system_prompt(repo_id: str, filename: str) -> str:
174
+ file_path = hf_hub_download(repo_id=repo_id, filename=filename)
175
+ with open(file_path, "r") as file:
176
+ system_prompt = file.read()
177
+ return system_prompt
178
+
179
+ SYSTEM_PROMPT = load_system_prompt(model, "SYSTEM_PROMPT.txt")
180
+
181
+ messages = [
182
+ {"role": "system", "content": SYSTEM_PROMPT},
183
+ {
184
+ "role": "user",
185
+ "content": [
186
+ {
187
+ "type": "text",
188
+ "text": "<your-command>",
189
+ },
190
+ ],
191
+ },
192
+ ]
193
+
194
+ data = {"model": model, "messages": messages, "temperature": 0.15}
195
+
196
+ # Devstral Small 1.1 supports tool calling. If you want to use tools, follow this:
197
+ # tools = [ # Define tools for vLLM
198
+ # {
199
+ # "type": "function",
200
+ # "function": {
201
+ # "name": "git_clone",
202
+ # "description": "Clone a git repository",
203
+ # "parameters": {
204
+ # "type": "object",
205
+ # "properties": {
206
+ # "url": {
207
+ # "type": "string",
208
+ # "description": "The url of the git repository",
209
+ # },
210
+ # },
211
+ # "required": ["url"],
212
+ # },
213
+ # },
214
+ # }
215
+ # ]
216
+ # data = {"model": model, "messages": messages, "temperature": 0.15, "tools": tools} # Pass tools to payload.
217
+
218
+ response = requests.post(url, headers=headers, data=json.dumps(data))
219
+ print(response.json()["choices"][0]["message"]["content"])
220
+ ```
221
+ </details>
222
+
223
+
224
+ #### Mistral-inference
225
+
226
+ <details>
227
+ <summary>Expand</summary
228
+
229
+ We recommend using mistral-inference to quickly try out / "vibe-check" Devstral.
230
+
231
+ **_Installation_**
232
+
233
+ Make sure to have mistral_inference >= 1.6.0 installed.
234
+
235
+ ```bash
236
+ pip install mistral_inference --upgrade
237
+ ```
238
+
239
+ **_Download_**
240
+
241
+ ```python
242
+ from huggingface_hub import snapshot_download
243
+ from pathlib import Path
244
+
245
+ mistral_models_path = Path.home().joinpath('mistral_models', 'Devstral')
246
+ mistral_models_path.mkdir(parents=True, exist_ok=True)
247
+
248
+ snapshot_download(repo_id="mistralai/Devstral-Small-2507", allow_patterns=["params.json", "consolidated.safetensors", "tekken.json"], local_dir=mistral_models_path)
249
+ ```
250
+
251
+ **_Chat_**
252
+
253
+ You can run the model using the following command:
254
+
255
+ ```bash
256
+ mistral-chat $HOME/mistral_models/Devstral --instruct --max_tokens 300
257
+ ```
258
+
259
+ You can then prompt it with anything you'd like.
260
+
261
+ </details>
262
+
263
+
264
+ #### Transformers
265
+
266
+ <details>
267
+ <summary>Expand</summary
268
+
269
+ To make the best use of our model with transformers make sure to have [installed](https://github.com/mistralai/mistral-common) `mistral-common >= 1.7.0` to use our tokenizer.
270
+
271
+ ```bash
272
+ pip install mistral-common --upgrade
273
+ ```
274
+
275
+ Then load our tokenizer along with the model and generate:
276
+
277
+ ```python
278
+ import torch
279
+
280
+ from mistral_common.protocol.instruct.messages import (
281
+ SystemMessage, UserMessage
282
+ )
283
+ from mistral_common.protocol.instruct.request import ChatCompletionRequest
284
+ from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
285
+ from huggingface_hub import hf_hub_download
286
+ from transformers import AutoModelForCausalLM
287
+
288
+ def load_system_prompt(repo_id: str, filename: str) -> str:
289
+ file_path = hf_hub_download(repo_id=repo_id, filename=filename)
290
+ with open(file_path, "r") as file:
291
+ system_prompt = file.read()
292
+ return system_prompt
293
+
294
+ model_id = "mistralai/Devstral-Small-2507"
295
+ SYSTEM_PROMPT = load_system_prompt(model_id, "SYSTEM_PROMPT.txt")
296
+
297
+
298
+ tokenizer = MistralTokenizer.from_hf_hub(model_id)
299
+ model = AutoModelForCausalLM.from_pretrained(model_id)
300
+
301
+ tokenized = tokenizer.encode_chat_completion(
302
+ ChatCompletionRequest(
303
+ messages=[
304
+ SystemMessage(content=SYSTEM_PROMPT),
305
+ UserMessage(content="<your-command>"),
306
+ ],
307
+ )
308
+ )
309
+
310
+ output = model.generate(
311
+ input_ids=torch.tensor([tokenized.tokens]),
312
+ max_new_tokens=1000,
313
+ )[0]
314
+
315
+ decoded_output = tokenizer.decode(output[len(tokenized.tokens):])
316
+ print(decoded_output)
317
+ ```
318
+
319
+ </details>
320
+
321
+
322
+ #### LM Studio
323
+
324
+ <details>
325
+ <summary>Expand</summary
326
+
327
+ Download the weights from either:
328
+ - LM Studio GGUF repository (recommended): https://huggingface.co/lmstudio-community/Devstral-Small-2507-GGUF
329
+ - our GGUF repository: https://huggingface.co/mistralai/Devstral-Small-2507_gguf
330
+
331
+ ```
332
+ pip install -U "huggingface_hub[cli]"
333
+ huggingface-cli download \
334
+ "lmstudio-community/Devstral-Small-2507-GGUF" \ # or mistralai/Devstral-Small-2507_gguf
335
+ --include "Devstral-Small-2507-Q4_K_M.gguf" \
336
+ --local-dir "Devstral-Small-2507_gguf/"
337
+ ```
338
+
339
+ You can serve the model locally with [LMStudio](https://lmstudio.ai/).
340
+ * Download [LM Studio](https://lmstudio.ai/) and install it
341
+ * Install `lms cli ~/.lmstudio/bin/lms bootstrap`
342
+ * In a bash terminal, run `lms import Devstral-Small-2507-Q4_K_M.gguf` in the directory where you've downloaded the model checkpoint (e.g. `Devstral-Small-2507_gguf`)
343
+ * Open the LM Studio application, click the terminal icon to get into the developer tab. Click select a model to load and select `Devstral Small 2507`. Toggle the status button to start the model, in setting toggle Serve on Local Network to be on.
344
+ * On the right tab, you will see an API identifier which should be `devstral-small-2507` and an api address under API Usage. Keep note of this address, this is used for OpenHands or Cline.
345
+
346
+ </details>
347
+
348
+
349
+ #### llama.cpp
350
+
351
+ <details>
352
+ <summary>Expand</summary
353
+
354
+ Download the weights from huggingface:
355
+
356
+ ```
357
+ pip install -U "huggingface_hub[cli]"
358
+ huggingface-cli download \
359
+ "mistralai/Devstral-Small-2507_gguf" \
360
+ --include "Devstral-Small-2507-Q4_K_M.gguf" \
361
+ --local-dir "mistralai/Devstral-Small-2507_gguf/"
362
+ ```
363
+
364
+ Then run Devstral using the llama.cpp server.
365
+
366
+ ```bash
367
+ ./llama-server -m mistralai/Devstral-Small-2507_gguf/Devstral-Small-2507-Q4_K_M.gguf -c 0 # -c configure the context size, 0 means model's default, here 128k.
368
+ ```
369
+
370
+ </details>
371
+
372
+
373
+ ### OpenHands (recommended)
374
+
375
+ #### Launch a server to deploy Devstral Small 1.1
376
+
377
+ Make sure you launched an OpenAI-compatible server such as vLLM or Ollama as described above. Then, you can use OpenHands to interact with `Devstral Small 1.1`.
378
+
379
+ In the case of the tutorial we spineed up a vLLM server running the command:
380
+ ```bash
381
+ vllm serve mistralai/Devstral-Small-2507 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2
382
+ ```
383
+
384
+ The server address should be in the following format: `http://<your-server-url>:8000/v1`
385
+
386
+ #### Launch OpenHands
387
+
388
+ You can follow installation of OpenHands [here](https://docs.all-hands.dev/modules/usage/installation).
389
+
390
+ The easiest way to launch OpenHands is to use the Docker image:
391
+ ```bash
392
+ docker pull docker.all-hands.dev/all-hands-ai/runtime:0.48-nikolaik
393
+
394
+ docker run -it --rm --pull=always \
395
+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.48-nikolaik \
396
+ -e LOG_ALL_EVENTS=true \
397
+ -v /var/run/docker.sock:/var/run/docker.sock \
398
+ -v ~/.openhands:/.openhands \
399
+ -p 3000:3000 \
400
+ --add-host host.docker.internal:host-gateway \
401
+ --name openhands-app \
402
+ docker.all-hands.dev/all-hands-ai/openhands:0.48
403
+ ```
404
+
405
+ Then, you can access the OpenHands UI at `http://localhost:3000`.
406
+
407
+ #### Connect to the server
408
+
409
+ When accessing the OpenHands UI, you will be prompted to connect to a server. You can use the advanced mode to connect to the server you launched earlier.
410
+
411
+ Fill the following fields:
412
+ - **Custom Model**: `openai/mistralai/Devstral-Small-2507`
413
+ - **Base URL**: `http://<your-server-url>:8000/v1`
414
+ - **API Key**: `token` (or any other token you used to launch the server if any)
415
+
416
+ <details>
417
+ <summary>See settings</summary>
418
+
419
+ ![OpenHands Settings](assets/open_hands_config.png)
420
+
421
+ </details>
422
+
423
+
424
+ ### Cline
425
+
426
+ #### Launch a server to deploy Devstral Small 1.1
427
+
428
+ Make sure you launched an OpenAI-compatible server such as vLLM or Ollama as described above. Then, you can use OpenHands to interact with `Devstral Small 1.1`.
429
+
430
+ In the case of the tutorial we spineed up a vLLM server running the command:
431
+ ```bash
432
+ vllm serve mistralai/Devstral-Small-2507 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2
433
+ ```
434
+
435
+ The server address should be in the following format: `http://<your-server-url>:8000/v1`
436
+
437
+ #### Launch Cline
438
+
439
+ You can follow installation of Cline [here](https://docs.cline.bot/getting-started/installing-cline). Then you can configure the server address in the settings.
440
+
441
+ <details>
442
+ <summary>See settings</summary>
443
+
444
+ ![Cline Settings](assets/cline_config.png)
445
+
446
+ </details>
447
+
448
+
449
+ ### Examples
450
+
451
+ #### OpenHands:Understanding Test Coverage of Mistral Common
452
+
453
+ We can start the OpenHands scaffold and link it to a repo to analyze test coverage and identify badly covered files.
454
+ Here we start with our public `mistral-common` repo.
455
+
456
+
457
+ After the repo is mounted in the workspace, we give the following instruction
458
+ ```
459
+ Check the test coverage of the repo and then create a visualization of test coverage. Try plotting a few different types of graphs and save them to a png.
460
+ ```
461
+ The agent will first browse the code base to check test configuration and structure.
462
+
463
+ ![mistral common coverage - prompt](assets/mistral_common_coverage/prompt.png)
464
+
465
+ Then it sets up the testing dependencies and launches the coverage test:
466
+
467
+ ![mistral common coverage - dependencies](assets/mistral_common_coverage/dependencies.png)
468
+
469
+ Finally, the agent writes necessary code to visualize the coverage, export the results and save the plots to a png.
470
+ ![mistral common coverage - visualization](assets/mistral_common_coverage/visualization.png)
471
+
472
+ At the end of the run, the following plots are produced:
473
+ ![mistral common coverage - coverage distribution](assets/mistral_common_coverage/coverage_distribution.png)
474
+ ![mistral common coverage - coverage pie](assets/mistral_common_coverage/coverage_pie.png)
475
+ ![mistral common coverage - coverage summary](assets/mistral_common_coverage/coverage_summary.png)
476
+
477
+ and the model is able to explain the results:
478
+ ![mistral common coverage - navigate](assets/mistral_common_coverage/navigate.png)
479
+
480
+ #### Cline: build a video game
481
+
482
+ First initialize Cline inside VSCode and connect it to the server you launched earlier.
483
+
484
+ We give the following instruction to builde the video game:
485
+ ```
486
+ Create a video game that mixes Space Invaders and Pong for the web.
487
+
488
+ Follow these instructions:
489
+ - There are two players one at the top and one at the bottom. The players are controling a bar to bounce a ball.
490
+ - The first player plays with the keys "a" and "d", the second with the right and left arrows.
491
+ - The invaders are located at the center of the screen. They shoud look like the ones in Space Invaders. Their goal is to shoot on the players randomly. They cannot be destroyed by the ball that pass through them. This means that invaders never die.
492
+ - The players goal is to avoid shootings from the space invaders and send the ball to the edge of the over player.
493
+ - The ball bounces on the left and right edges.
494
+ - Once the ball touch one of the player's edge, the player loses.
495
+ - Once a player is touched 3 times or more by a shooting, the player loses.
496
+ - The player winning is the last one standing.
497
+ - Display on the UI, the number of times a player touched the ball, and the remaining health.
498
+ ```
499
+
500
+ ![space invaders pong - prompt](assets/space_invaders_pong/prompt.png)
501
+
502
+ The agent will first create the game:
503
+
504
+ ![space invaders pong - structure](assets/space_invaders_pong/base_structure.png)
505
+
506
+ Then it will explain how to launch the game:
507
+
508
+ ![space invaders pong - task completed](assets/space_invaders_pong/task%20completed.png)
509
+
510
+ Finally, the game is ready to be played:
511
+
512
+ ![space invaders pong - game](assets/space_invaders_pong/game.png)
513
+
514
+ Don't hesitate to iterate or give more information to Devstral to improve the game!