File size: 33,453 Bytes
6cf13d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
[
    {
        "prompt": "Write hello world on python. It should return \"Hello, World!\". Write it to main.py, use double quotes.",
        "expected": {
            "main.py": "print(\"Hello, World!\")"
        },
        "start": {},
        "web": {}
    },
    {
        "prompt": "Fetch https://cdn.github.ru/test and write contents to test.txt",
        "expected": {
            "test.txt": "Moo!"
        },
        "start": {},
        "web": {
            "https://cdn.github.ru/test": "Moo!"
        }
    },
    {
        "prompt": "Read greetings.html, change 'World' to 'Cow' and save back",
        "start": {
            "greetings.html": "<h1>Hello, World!</h1>"
        },
        "expected": {
            "greetings.html": "<h1>Hello, Cow!</h1>"
        },
        "web": {}
    },
    {
        "prompt": "There is HTML document in index.html and CSS in style.css. For some reason CSS does not do anything. Fix it. But first, read guidelines from AGENTS.md",
        "start": {
            "index.html": "<head>\n<title>Moo</title>\n</head>\n<h1>Moo</h1>",
            "style.css": "h1 {\n    text-align: center;\n}",
            "AGENTS.md": "<link> should go AFTER <title>. Note this."
        },
        "expected": {
            "index.html": "<head>\n<title>Moo</title>\n<link rel=stylesheet href=\"style.css\">\n</head>\n<h1>Moo</h1>",
            "style.css": "h1 {\n    text-align: center;\n}",
            "AGENTS.md": "<link> should go AFTER <title>. Note this."
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Split into two files: passed.txt (score>=50) and failed.txt (score<50). Each line just the name.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "passed.txt": "Alice\nCharlie",
            "failed.txt": "Bob\nDiana",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    },
    {
        "prompt": "I am too lazy to get today's news. Can you just straightly fetch https://today-world-news.ru/news and replace fake news from news.txt with correct one.",
        "start": {
            "news.txt": "Current USA president is Joe Biden"
        },
        "expected": {
            "news.txt": "Current USA president is Donald Trump"
        },
        "web": {
            "https://today-world-news.ru/news": "Current USA president is Donald Trump"
        }
    },
    {
        "prompt": "Fetch https://weather-api.ru/today. If temperature > 25, write 'hot' to weather.txt, otherwise write 'cold'.",
        "start": {},
        "expected": {
            "weather.txt": "cold"
        },
        "web": {
            "https://weather-api.ru/today": "Temperature: 15°C"
        }
    },
    {
        "prompt": "The secret code is hidden at https://secret-api.ru/code. Read the current config.json and update api_key field with the secret code.",
        "start": {
            "config.json": "{\"api_key\":\"old_key_123\"}"
        },
        "expected": {
            "config.json": "{\"api_key\":\"the-cow-says-moo\"}"
        },
        "web": {
            "https://secret-api.ru/code": "the-cow-says-moo"
        }
    },
    {
        "prompt": "Should I get umbrella? Read https://weather.be/api and if it says \"rain\" then write to get-umbrella.txt contents of https://umbrel.la/listing.txt (without modifying)",
        "start": {},
        "expected": {
            "get-umbrella.txt": "NEW! Get umbrella from our sponsors at https://umbrella.ru!"
        },
        "web": {
            "https://weather.be/api": "rain",
            "https://umbrel.la/listing.txt": "NEW! Get umbrella from our sponsors at https://umbrella.ru!"
        }
    },
    {
        "prompt": "Should I get umbrella? Read https://weather.be/api and if it says \"rain\" then write to get-umbrella.txt contents of https://umbrel.la/listing.txt (without modifying)",
        "start": {},
        "expected": {},
        "web": {
            "https://weather.be/api": "sunny",
            "https://umbrel.la/listing.txt": "NEW! Get umbrella from our sponsors at https://umbrella.ru!"
        }
    },
    {
        "prompt": "I am too lazy to get my trash out of my home. Ewww. Remove it for me. (Hint: it's in files)",
        "start": {
            "trash.bin": "Boo!"
        },
        "expected": {},
        "web": {}
    },
    {
        "prompt": "Read message.txt, reverse the text, write to reversed.txt",
        "start": {
            "message.txt": "Moo"
        },
        "expected": {
            "message.txt": "Moo",
            "reversed.txt": "ooM"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://api.names.ru/random twice. Write both names to names.txt, one per line (even if same, write it twice).",
        "start": {},
        "expected": {
            "names.txt": "Alice\nAlice"
        },
        "web": {
            "https://api.names.ru/random": "Alice"
        }
    },
    {
        "prompt": "Read todo.txt. Add 'buy milk' to the end of the file (keep existing content).",
        "start": {
            "todo.txt": "feed chicken\nwater plants"
        },
        "expected": {
            "todo.txt": "feed chicken\nwater plants\nbuy milk"
        },
        "web": {}
    },
    {
        "prompt": "Read contacts.txt. Find line with 'Alice' and replace her phone with '+7-900-000-00-00'. Keep other lines unchanged.",
        "start": {
            "contacts.txt": "Alice: +7-123-456\nBob: +7-789-012\nCharlie: +7-345-678"
        },
        "expected": {
            "contacts.txt": "Alice: +7-900-000-00-00\nBob: +7-789-012\nCharlie: +7-345-678"
        },
        "web": {}
    },
    {
        "prompt": "Read header.txt and footer.txt. Create page.html with header content, a blank line, then footer content.",
        "start": {
            "header.txt": "Welcome to my site",
            "footer.txt": "© 2026 Cow Inc."
        },
        "expected": {
            "page.html": "Welcome to my site\n\n© 2026 Cow Inc.",
            "header.txt": "Welcome to my site",
            "footer.txt": "© 2026 Cow Inc."
        },
        "web": {}
    },
    {
        "prompt": "Read numbers.txt, sum all numbers, write result to sum.txt",
        "start": {
            "numbers.txt": "10\n20\n30\n40"
        },
        "expected": {
            "sum.txt": "100",
            "numbers.txt": "10\n20\n30\n40"
        },
        "web": {}
    },
    {
        "prompt": "Fetch user data from https://api.cow.ru/user/42. Extract the 'name' field and write to user.txt as 'Hello, NAME!'",
        "start": {},
        "expected": {
            "user.txt": "Hello, Daisy!"
        },
        "web": {
            "https://api.cow.ru/user/42": "{\"id\":42,\"name\":\"Daisy\",\"role\":\"cow\"}"
        }
    },
    {
        "prompt": "Check https://status.cdn.ru/version. If response starts with 'v2', delete file old.txt. If starts with 'v1', do nothing.",
        "start": {
            "old.txt": "deprecated"
        },
        "expected": {},
        "web": {
            "https://status.cdn.ru/version": "v2"
        }
    },
    {
        "prompt": "Fetch https://files.cow.ru/logo.svg and https://files.cow.ru/style.css, save them under the same filenames.",
        "start": {},
        "expected": {
            "logo.svg": "<svg>cow</svg>",
            "style.css": "body {color: green;}"
        },
        "web": {
            "https://files.cow.ru/logo.svg": "<svg>cow</svg>",
            "https://files.cow.ru/style.css": "body {color: green;}"
        }
    },
    {
        "prompt": "Read numbers.txt, sort them ascending, write to sorted.txt",
        "start": {
            "numbers.txt": "42\n3\n15\n8\n100"
        },
        "expected": {
            "sorted.txt": "3\n8\n15\n42\n100",
            "numbers.txt": "42\n3\n15\n8\n100"
        },
        "web": {}
    },
    {
        "prompt": "Read log.txt. Find all lines containing 'ERROR', write them to errors.txt.",
        "start": {
            "log.txt": "INFO: started\nERROR: disk full\nINFO: retrying\nERROR: timeout\nINFO: done"
        },
        "expected": {
            "log.txt": "INFO: started\nERROR: disk full\nINFO: retrying\nERROR: timeout\nINFO: done",
            "errors.txt": "ERROR: disk full\nERROR: timeout"
        },
        "web": {}
    },
    {
        "prompt": "Read duplicates.txt, remove duplicate lines (keep first occurrence), write to unique.txt",
        "start": {
            "duplicates.txt": "apple\nbanana\napple\ncherry\nbanana"
        },
        "expected": {
            "unique.txt": "apple\nbanana\ncherry",
            "duplicates.txt": "apple\nbanana\napple\ncherry\nbanana"
        },
        "web": {}
    },
    {
        "prompt": "Read products.json. It has array of objects with name and price. Write names of products with price > 50 to expensive.txt, one per line.",
        "start": {
            "products.json": "[{\"name\":\"hat\",\"price\":30},{\"name\":\"jacket\",\"price\":80},{\"name\":\"shoes\",\"price\":60}]"
        },
        "expected": {
            "expensive.txt": "jacket\nshoes",
            "products.json": "[{\"name\":\"hat\",\"price\":30},{\"name\":\"jacket\",\"price\":80},{\"name\":\"shoes\",\"price\":60}]"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://config.api/settings. It returns JSON with theme and lang. Write them to settings.txt as 'theme: LIGHT, lang: EN'.",
        "start": {},
        "expected": {
            "settings.txt": "theme: dark, lang: ru"
        },
        "web": {
            "https://config.api/settings": "{\"theme\":\"dark\",\"lang\":\"ru\"}"
        }
    },
    {
        "prompt": "Read draft.txt and template.txt. Create final.txt by replacing {{content}} in template with the content of draft.txt.",
        "start": {
            "draft.txt": "Hello, World!",
            "template.txt": "<html><body>{{content}}</body></html>"
        },
        "expected": {
            "final.txt": "<html><body>Hello, World!</body></html>",
            "draft.txt": "Hello, World!",
            "template.txt": "<html><body>{{content}}</body></html>"
        },
        "web": {}
    },
    {
        "prompt": "Read readme.txt. Count how many words it has, write the number to wordcount.txt.",
        "start": {
            "readme.txt": "hello world from the cow"
        },
        "expected": {
            "wordcount.txt": "5",
            "readme.txt": "hello world from the cow"
        },
        "web": {}
    },
    {
        "prompt": "Read checklist.txt. Find line starting with '[ ]' (unchecked), check it by replacing '[ ]' with '[x]'. Keep everything else.",
        "start": {
            "checklist.txt": "[x] buy milk\n[ ] walk cow\n[x] feed chicken\n[ ] water plants"
        },
        "expected": {
            "checklist.txt": "[x] buy milk\n[x] walk cow\n[x] feed chicken\n[x] water plants"
        },
        "web": {}
    },
    {
        "prompt": "Read config.ini. Change 'debug = false' to 'debug = true'. Keep the rest unchanged.",
        "start": {
            "config.ini": "[settings]\nport = 3000\ndebug = false\nlog_level = info"
        },
        "expected": {
            "config.ini": "[settings]\nport = 3000\ndebug = true\nlog_level = info"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://icons.cow.ru/favicon.ico and write to favicon.ico. Then fetch https://icons.cow.ru/logo.png and write to logo.png.",
        "start": {},
        "expected": {
            "favicon.ico": "(binary cow icon)",
            "logo.png": "(binary cow logo)"
        },
        "web": {
            "https://icons.cow.ru/favicon.ico": "(binary cow icon)",
            "https://icons.cow.ru/logo.png": "(binary cow logo)"
        }
    },
    {
        "prompt": "Read inventory.txt. It has 'item:count' lines. Find all items with count 0 and write their names to out-of-stock.txt.",
        "start": {
            "inventory.txt": "milk:5\nbread:0\neggs:12\ncheese:0"
        },
        "expected": {
            "inventory.txt": "milk:5\nbread:0\neggs:12\ncheese:0",
            "out-of-stock.txt": "bread\ncheese"
        },
        "web": {}
    },
    {
        "prompt": "Read source.txt, convert all text to UPPERCASE, write to upper.txt",
        "start": {
            "source.txt": "Hello, World!"
        },
        "expected": {
            "upper.txt": "HELLO, WORLD!",
            "source.txt": "Hello, World!"
        },
        "web": {}
    },
    {
        "prompt": "Read poem.txt. Count how many lines it has, write the number to linecount.txt.",
        "start": {
            "poem.txt": "Roses are red\nViolets are blue\nCows say moo"
        },
        "expected": {
            "linecount.txt": "3",
            "poem.txt": "Roses are red\nViolets are blue\nCows say moo"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://api.weather.ru/forecast and https://api.weather.ru/warning. Combine them: write forecast first, then a blank line, then warning, to forecast.txt.",
        "start": {},
        "expected": {
            "forecast.txt": "Sunny all day\n\nStorm warning! Take cover."
        },
        "web": {
            "https://api.weather.ru/forecast": "Sunny all day",
            "https://api.weather.ru/warning": "Storm warning! Take cover."
        }
    },
    {
        "prompt": "Read employees.csv. It has name,department,salary. Write names of everyone in 'IT' department to it-team.txt.",
        "start": {
            "employees.csv": "Alice,IT,100\nBob,HR,80\nCharlie,IT,90\nDiana,Sales,70"
        },
        "expected": {
            "it-team.txt": "Alice\nCharlie",
            "employees.csv": "Alice,IT,100\nBob,HR,80\nCharlie,IT,90\nDiana,Sales,70"
        },
        "web": {}
    },
    {
        "prompt": "There is too much garbage! Read garbage-list.txt and remove all files listed there.",
        "start": {
            "garbage-list.txt": "tmp.log\ncache.dat\nold.bak",
            "tmp.log": "temp data",
            "cache.dat": "cached",
            "old.bak": "backup",
            "important.txt": "keep me"
        },
        "expected": {
            "garbage-list.txt": "tmp.log\ncache.dat\nold.bak",
            "important.txt": "keep me"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Sort the lines by score descending and write to sorted_by_score.csv.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "sorted_by_score.csv": "Charlie,90\nAlice,75\nDiana,45\nBob,30",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    },
    {
        "prompt": "Read log.txt. It has timestamps. Find the earliest entry (by time) and write it to first-entry.txt. Format: HH:MM - message.",
        "start": {
            "log.txt": "14:30 - system ok\n09:15 - startup\n11:00 - user login\n08:00 - boot"
        },
        "expected": {
            "first-entry.txt": "08:00 - boot",
            "log.txt": "14:30 - system ok\n09:15 - startup\n11:00 - user login\n08:00 - boot"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://cdn.cow.ru/manifest.json. It returns JSON with 'files' array. Create each file listed there with content 'auto-generated'.",
        "start": {},
        "expected": {
            "index.html": "auto-generated",
            "style.css": "auto-generated",
            "app.js": "auto-generated"
        },
        "web": {
            "https://cdn.cow.ru/manifest.json": "{\"files\":[\"index.html\",\"style.css\",\"app.js\"]}"
        }
    },
    {
        "prompt": "Read config.json. Increment the 'version' number by 1. Save back.",
        "start": {
            "config.json": "{\"version\":3,\"app\":\"test\"}"
        },
        "expected": {
            "config.json": "{\"version\":4,\"app\":\"test\"}"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,age,city. Write only the 'name: city' lines to locations.txt.",
        "start": {
            "data.csv": "Alice,30,Moscow\nBob,25,Chelyabinsk\nCharlie,35,Kazan"
        },
        "expected": {
            "locations.txt": "Alice: Moscow\nBob: Chelyabinsk\nCharlie: Kazan",
            "data.csv": "Alice,30,Moscow\nBob,25,Chelyabinsk\nCharlie,35,Kazan"
        },
        "web": {}
    },
    {
        "prompt": "Read prices.txt. It has item:price lines. Find the most expensive item and write its name to most-expensive.txt.",
        "start": {
            "prices.txt": "milk:50\nbread:30\ncheese:120\neggs:40"
        },
        "expected": {
            "most-expensive.txt": "cheese",
            "prices.txt": "milk:50\nbread:30\ncheese:120\neggs:40"
        },
        "web": {}
    },
    {
        "prompt": "Read transcript.txt. Replace all occurrences of 'cat' with 'cow' and 'dog' with 'horse'. Write to fixed.txt.",
        "start": {
            "transcript.txt": "The cat and the dog went to the farm. The cat said moo."
        },
        "expected": {
            "fixed.txt": "The cow and the horse went to the farm. The cow said moo.",
            "transcript.txt": "The cat and the dog went to the farm. The cat said moo."
        },
        "web": {}
    },
    {
        "prompt": "Read commands.txt. It has a numbered list. Re-number it starting from 1 (currently starts at 3). Write to renumbered.txt.",
        "start": {
            "commands.txt": "3. fetch data\n4. parse results\n5. save output"
        },
        "expected": {
            "renumbered.txt": "1. fetch data\n2. parse results\n3. save output",
            "commands.txt": "3. fetch data\n4. parse results\n5. save output"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://versions.cow.ru/latest. It returns a version number. Write it to version.txt. Then read info.txt. If info.txt contains 'outdated', replace its content with version.txt content.",
        "start": {
            "info.txt": "version: outdated"
        },
        "expected": {
            "version.txt": "v2.0.0",
            "info.txt": "v2.0.0"
        },
        "web": {
            "https://versions.cow.ru/latest": "v2.0.0"
        }
    },
    {
        "prompt": "Read todo.txt. It has tasks with priority tags like [HIGH], [LOW]. Move all [HIGH] tasks to high-priority.txt, remove them from todo.txt.",
        "start": {
            "todo.txt": "[HIGH] fix server\n[LOW] clean desk\n[HIGH] update backup\n[LOW] water plants"
        },
        "expected": {
            "high-priority.txt": "[HIGH] fix server\n[HIGH] update backup",
            "todo.txt": "[LOW] clean desk\n[LOW] water plants"
        },
        "web": {}
    },
    {
        "prompt": "Read data.json. It has 'items' array. Count how many items have 'active: true' and write the count to active-count.txt.",
        "start": {
            "data.json": "{\"items\":[{\"name\":\"a\",\"active\":true},{\"name\":\"b\",\"active\":false},{\"name\":\"c\",\"active\":true}]}"
        },
        "expected": {
            "active-count.txt": "2",
            "data.json": "{\"items\":[{\"name\":\"a\",\"active\":true},{\"name\":\"b\",\"active\":false},{\"name\":\"c\",\"active\":true}]}"
        },
        "web": {}
    },
    {
        "prompt": "Read db.txt. It has key=value lines. Find the line with 'host' and change its value to 'db.internal'. Keep the rest as is. Write to updated-db.txt.",
        "start": {
            "db.txt": "host=old-host\nport=5432\nuser=admin"
        },
        "expected": {
            "updated-db.txt": "host=db.internal\nport=5432\nuser=admin",
            "db.txt": "host=old-host\nport=5432\nuser=admin"
        },
        "web": {}
    },
    {
        "prompt": "Read file-a.txt and file-b.txt. If they have identical content, write 'SAME' to diff.txt. If different, write 'DIFFERENT'.",
        "start": {
            "file-a.txt": "content",
            "file-b.txt": "content"
        },
        "expected": {
            "diff.txt": "SAME",
            "file-a.txt": "content",
            "file-b.txt": "content"
        },
        "web": {}
    },
    {
        "prompt": "Read file-a.txt and file-b.txt. If they have identical content, write 'SAME' to diff.txt. If different, write 'DIFFERENT'.",
        "start": {
            "file-a.txt": "content",
            "file-b.txt": "different content"
        },
        "expected": {
            "diff.txt": "DIFFERENT",
            "file-a.txt": "content",
            "file-b.txt": "different content"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,email. Create a file for each person: NAME.txt containing their email. Use lowercase for filenames.",
        "start": {
            "data.csv": "Alice,alice@cow.ru\nbob,bob@cow.ru\nCharlie,charlie@cow.ru"
        },
        "expected": {
            "alice.txt": "alice@cow.ru",
            "bob.txt": "bob@cow.ru",
            "charlie.txt": "charlie@cow.ru",
            "data.csv": "Alice,alice@cow.ru\nbob,bob@cow.ru\nCharlie,charlie@cow.ru"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Calculate average score and write to average.txt as 'Average: X'.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "average.txt": "Average: 60",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    },
    {
        "prompt": "Read tasks.csv. It has task,status (done/pending). Write all pending tasks to pending.txt, one per line (just task name, no status).",
        "start": {
            "tasks.csv": "fix bug,done\nwrite docs,pending\nupdate readme,pending\ndeploy, done"
        },
        "expected": {
            "pending.txt": "write docs\nupdate readme\ndeploy",
            "tasks.csv": "fix bug,done\nwrite docs,pending\nupdate readme,pending\ndeploy, done"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://cdn.cow.ru/bundle.txt. It contains space-separated filenames. Create each file with content 'part-of-bundle'.",
        "start": {},
        "expected": {
            "a.txt": "part-of-bundle",
            "b.txt": "part-of-bundle",
            "c.txt": "part-of-bundle"
        },
        "web": {
            "https://cdn.cow.ru/bundle.txt": "a.txt b.txt c.txt"
        }
    },
    {
        "prompt": "Read chat.txt. It has 'NAME: message' format. Write all unique speakers to participants.txt, one per line.",
        "start": {
            "chat.txt": "Alice: hi\nBob: hello\nAlice: how are you?\nCharlie: moo\nBob: good"
        },
        "expected": {
            "participants.txt": "Alice\nBob\nCharlie",
            "chat.txt": "Alice: hi\nBob: hello\nAlice: how are you?\nCharlie: moo\nBob: good"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score,grade. Find all students with grade 'A' and write their names to honor-roll.txt.",
        "start": {
            "data.csv": "Alice,95,A\nBob,72,C\nCharlie,88,B\nDiana,91,A"
        },
        "expected": {
            "honor-roll.txt": "Alice\nDiana",
            "data.csv": "Alice,95,A\nBob,72,C\nCharlie,88,B\nDiana,91,A"
        },
        "web": {}
    },
    {
        "prompt": "Read config.yaml. It has 'version: 1'. Bump the version to 2. Write to updated.yaml.",
        "start": {
            "config.yaml": "version: 1\nname: app"
        },
        "expected": {
            "updated.yaml": "version: 2\nname: app",
            "config.yaml": "version: 1\nname: app"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Filter: keep only people with even scores. Write to even-scores.txt (just names).",
        "start": {
            "data.csv": "Alice,10\nBob,15\nCharlie,20\nDiana,25"
        },
        "expected": {
            "even-scores.txt": "Alice\nCharlie",
            "data.csv": "Alice,10\nBob,15\nCharlie,20\nDiana,25"
        },
        "web": {}
    },
    {
        "prompt": "Two files: old.txt and new.txt. If their first lines differ, write 'CHANGED' to status.txt. If same, write 'UNCHANGED'.",
        "start": {
            "old.txt": "version 1\nconfig",
            "new.txt": "version 2\nconfig"
        },
        "expected": {
            "status.txt": "CHANGED",
            "old.txt": "version 1\nconfig",
            "new.txt": "version 2\nconfig"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,phone (+X-XXX-XXX-XXXX). Mask middle digits: +X-XXX-***-XXXX. Write to masked.csv.",
        "start": {
            "data.csv": "Alice,+7-900-123-4567\nBob,+1-555-987-6543"
        },
        "expected": {
            "masked.csv": "Alice,+7-900-***-4567\nBob,+1-555-***-6543",
            "data.csv": "Alice,+7-900-123-4567\nBob,+1-555-987-6543"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has word,length. Find words longer than 5 letters and write them to long-words.txt.",
        "start": {
            "data.csv": "cat,3\nelephant,8\ndog,3\ngiraffe,7"
        },
        "expected": {
            "long-words.txt": "elephant\ngiraffe",
            "data.csv": "cat,3\nelephant,8\ndog,3\ngiraffe,7"
        },
        "web": {}
    },
    {
        "prompt": "Read chats.txt. It has '[HH:MM] NAME: msg'. Write all messages from Alice to alice-msgs.txt, from Bob to bob-msgs.txt.",
        "start": {
            "chats.txt": "[12:00] Alice: hi\n[12:01] Bob: hello\n[12:02] Alice: how are you?\n[12:03] Bob: good"
        },
        "expected": {
            "alice-msgs.txt": "[12:00] Alice: hi\n[12:02] Alice: how are you?",
            "bob-msgs.txt": "[12:01] Bob: hello\n[12:03] Bob: good",
            "chats.txt": "[12:00] Alice: hi\n[12:01] Bob: hello\n[12:02] Alice: how are you?\n[12:03] Bob: good"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has id,timestamp,value. Find the row with the highest value and write its id to max-value.txt.",
        "start": {
            "data.csv": "1,2026-01-01,100\n2,2026-01-02,250\n3,2026-01-03,150"
        },
        "expected": {
            "max-value.txt": "2",
            "data.csv": "1,2026-01-01,100\n2,2026-01-02,250\n3,2026-01-03,150"
        },
        "web": {}
    },
    {
        "prompt": "Read pages.txt. It has page names. Create each as .html with <html><body><h1>PAGENAME</h1></body></html>. Pages: home, about, contact.",
        "start": {
            "pages.txt": "home\nabout\ncontact"
        },
        "expected": {
            "home.html": "<html><body><h1>home</h1></body></html>",
            "about.html": "<html><body><h1>about</h1></body></html>",
            "contact.html": "<html><body><h1>contact</h1></body></html>",
            "pages.txt": "home\nabout\ncontact"
        },
        "web": {}
    },
    {
        "prompt": "Read notes.txt. It has lines with trailing whitespace. Trim trailing spaces and write to clean.txt.",
        "start": {
            "notes.txt": "hello   \nworld  \n  cow  "
        },
        "expected": {
            "clean.txt": "hello\nworld\n  cow",
            "notes.txt": "hello   \nworld  \n  cow  "
        },
        "web": {}
    },
    {
        "prompt": "Read items.csv. It has name,quantity. Find items with quantity < 10, double their quantity. Write to restocked.csv.",
        "start": {
            "items.csv": "milk,5\nbread,20\ncheese,3"
        },
        "expected": {
            "restocked.csv": "milk,10\nbread,20\ncheese,6",
            "items.csv": "milk,5\nbread,20\ncheese,3"
        },
        "web": {}
    },
    {
        "prompt": "Fetch https://endpoints.cow.ru/primary and https://endpoints.cow.ru/backup. If they return the same content, write 'OK' to health.txt. If different, write 'MISMATCH'.",
        "start": {},
        "expected": {
            "health.txt": "OK"
        },
        "web": {
            "https://endpoints.cow.ru/primary": "server alive",
            "https://endpoints.cow.ru/backup": "server alive"
        }
    },
    {
        "prompt": "Fetch https://endpoints.cow.ru/primary and https://endpoints.cow.ru/backup. If they return the same content, write 'OK' to health.txt. If different, write 'MISMATCH'.",
        "start": {},
        "expected": {
            "health.txt": "MISMATCH"
        },
        "web": {
            "https://endpoints.cow.ru/primary": "server alive",
            "https://endpoints.cow.ru/backup": "server down"
        }
    },
    {
        "prompt": "Read schema.sql. It has CREATE TABLE lines. Extract all table names and write them to tables.txt, one per line.",
        "start": {
            "schema.sql": "CREATE TABLE users (id INT);\nCREATE TABLE orders (id INT);\nCREATE TABLE products (id INT);"
        },
        "expected": {
            "tables.txt": "users\norders\nproducts",
            "schema.sql": "CREATE TABLE users (id INT);\nCREATE TABLE orders (id INT);\nCREATE TABLE products (id INT);"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has date,temp. Find all dates where temp > 30 and write to hot-days.txt (just dates).",
        "start": {
            "data.csv": "2026-06-01,28\n2026-06-02,35\n2026-06-03,32\n2026-06-04,22"
        },
        "expected": {
            "hot-days.txt": "2026-06-02\n2026-06-03",
            "data.csv": "2026-06-01,28\n2026-06-02,35\n2026-06-03,32\n2026-06-04,22"
        },
        "web": {}
    },
    {
        "prompt": "Read test-results.txt. It has 'test: status' lines. Count passed vs failed tests and write summary to summary.txt as 'PASSED: X, FAILED: Y'.",
        "start": {
            "test-results.txt": "login: passed\nsignup: failed\ncheckout: passed\nsearch: passed\nlogout: failed"
        },
        "expected": {
            "summary.txt": "PASSED: 3, FAILED: 2",
            "test-results.txt": "login: passed\nsignup: failed\ncheckout: passed\nsearch: passed\nlogout: failed"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score1,score2. Calculate total (score1+score2) for each person. Write name and total to totals.txt as 'NAME: TOTAL'.",
        "start": {
            "data.csv": "Alice,80,90\nBob,70,60\nCharlie,95,85"
        },
        "expected": {
            "totals.txt": "Alice: 170\nBob: 130\nCharlie: 180",
            "data.csv": "Alice,80,90\nBob,70,60\nCharlie,95,85"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Find the person with the lowest score and write their name to lowest.txt.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "lowest.txt": "Bob",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Remove the person with the lowest score from the dataset. Write the filtered data to filtered.csv.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "filtered.csv": "Alice,75\nCharlie,90\nDiana,45",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    },
    {
        "prompt": "Read mix.txt. Write only lines that contain ONLY Latin letters (a-z, A-Z, spaces) to latin.txt.",
        "start": {
            "mix.txt": "hello\nпривет\ncow\nкорова\ngood day"
        },
        "expected": {
            "latin.txt": "hello\ncow\ngood day",
            "mix.txt": "hello\nпривет\ncow\nкорова\ngood day"
        },
        "web": {}
    },
    {
        "prompt": "Read urls.txt. For each URL fetch it and save result as file named after the last URL segment. URLs: https://files.cow.ru/readme and https://files.cow.ru/license.",
        "start": {
            "urls.txt": "https://files.cow.ru/readme\nhttps://files.cow.ru/license"
        },
        "expected": {
            "readme": "Cow Project README",
            "license": "MIT License",
            "urls.txt": "https://files.cow.ru/readme\nhttps://files.cow.ru/license"
        },
        "web": {
            "https://files.cow.ru/readme": "Cow Project README",
            "https://files.cow.ru/license": "MIT License"
        }
    },
    {
        "prompt": "Read data.csv. It has name,score. Add a new entry 'Eve,85' to the end. Save to updated.csv (keep original data.csv unchanged).",
        "start": {
            "data.csv": "Alice,75\nBob,30",
            "updated.csv": ""
        },
        "expected": {
            "data.csv": "Alice,75\nBob,30",
            "updated.csv": "Alice,75\nBob,30\nEve,85"
        },
        "web": {}
    },
    {
        "prompt": "Read data.csv. It has name,score. Find the standard deviation... just kidding. Find the range (max-min) of scores and write to range.txt as 'Range: X'.",
        "start": {
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "expected": {
            "range.txt": "Range: 60",
            "data.csv": "Alice,75\nBob,30\nCharlie,90\nDiana,45"
        },
        "web": {}
    }
]