opencrabs 0.5.1

The autonomous, self-improving AI agent. Single Rust binary. Every channel. Recommended: the 40MB prebuilt binary for macOS, Linux and Windows: https://github.com/adolfousier/opencrabs/releases
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
# Portuguese phantom-detection configuration
# Phrases are lower-case. Matched against lowercased response text.

intent_phrases = [
    "vou carregar",
    "deixe-me carregar",
    "carregando o ",
    "carregando a ",
    "deixe-me verificar",
    "deixe-me revisar",
    "deixe-me inspecionar",
    "deixe-me atualizar",
    "deixe-me modificar",
    "deixe-me corrigir",
    "deixe-me consertar",
    "deixe-me criar",
    "deixe-me adicionar",
    "deixe-me remover",
    "deixe-me deletar",
    "deixe-me executar",
    "deixe-me ler",
    "deixe-me buscar",
    "deixe-me encontrar",
    "vou verificar",
    "vou revisar",
    "vou atualizar",
    "vou modificar",
    "vou corrigir",
    "vou consertar",
    "vou criar",
    "vou usar",
    "vou utilizar",
    "vou escrever",
    "vou executar",
    "vou adicionar",
    "vou remover",
    "vou deletar",
    "vou executar",
    "vou ler",
    "vou buscar",
    "agora vou",
    "agora verifico",
    "agora atualizo",
    "agora corrijo",
    "agora conserto",
    "agora crio",
    "agora adiciono",
    "agora removo",
    "agora deleto",
    "agora executo",
    "agora leio",
    "agora busco",
    "vamos verificar",
    "vamos atualizar",
    "vamos corrigir",
    "vamos consertar",
    "vamos criar",
    "vamos adicionar",
    "vamos remover",
    "vamos executar",
    "procedo a",
    "agora procedo a",

    # Deferment stalls — "preciso X" / "tenho que X" / "devo X"
    # 2026-05-28: Portuguese parity with the English "i need to X" entries.
    "preciso ler",
    "preciso revisar",
    "preciso verificar",
    "preciso checar",
    "preciso inspecionar",
    "preciso examinar",
    "preciso entender",
    "preciso ver",
    "preciso encontrar",
    "preciso investigar",
    "preciso buscar",
    "preciso atualizar",
    "preciso corrigir",
    "preciso arrumar",
    "preciso modificar",
    "preciso criar",
    "preciso escrever",
    "preciso adicionar",
    "preciso remover",
    "tenho que ler",
    "tenho que verificar",
    "tenho que atualizar",
    "tenho que corrigir",
    "tenho que investigar",
    "tenho de ler",
    "tenho de verificar",
    "devo ler",
    "devo verificar",
    "devo atualizar",
    "devo corrigir",
    "devo investigar",
    "deveria ler",
    "deveria verificar",
    "deveria investigar",
    # Cleanup / destructive action verbs — 2026-06-04: mirror of the
    # EN additions (limpar / deletar / excluir / remover / refatorar
    # / reorganizar / arrumar / apagar / purgar). Portuguese first-
    # person conjugates in the verb so the prefixes collapse the
    # same way Spanish does — "let me X" → "deixa eu X", "I'll X" →
    # "vou X", pronounless need-form → "preciso X" / "tenho que X".
    "deixa eu limpar",
    "deixa eu deletar",
    "deixa eu excluir",
    "deixa eu remover",
    "deixa eu refatorar",
    "deixa eu reorganizar",
    "deixa eu arrumar",
    "deixa eu apagar",
    "deixa eu purgar",
    "vou limpar",
    "vou deletar",
    "vou excluir",
    "vou remover",
    "vou refatorar",
    "vou reorganizar",
    "vou arrumar",
    "vou apagar",
    "vou purgar",
    "vamos limpar",
    "vamos deletar",
    "vamos excluir",
    "vamos remover",
    "vamos refatorar",
    "vamos reorganizar",
    "vamos arrumar",
    "vamos apagar",
    "vamos purgar",
    "preciso limpar",
    "preciso deletar",
    "preciso excluir",
    "preciso remover",
    "preciso refatorar",
    "preciso reorganizar",
    "preciso arrumar",
    "preciso apagar",
    "preciso purgar",
    "tenho que limpar",
    "tenho que deletar",
    "tenho que excluir",
    "tenho que remover",
    "tenho que refatorar",
    "tenho que reorganizar",
    "tenho que arrumar",
    "tenho que apagar",
    "tenho que purgar",
    "devo limpar",
    "devo deletar",
    "devo excluir",
    "devo remover",
    "devo refatorar",
    "deveria limpar",
    "deveria deletar",
    "deveria excluir",
    "deveria remover",
    "deveria refatorar",
    "deveria reorganizar",
]

action_verbs = [
    # Local playback / launching an artifact (see en.toml).
    "reproduzi",
    "toquei",
    "abri o ficheiro",
    "abri o arquivo",
    "lancei",
    "atualizei",
    "modifiquei",
    "corrigi",
    "consertei",
    "criei",
    "adicionei",
    "removi",
    "deletei",
    "executei",
    "li",
    "busquei",
    "encontrei",
    "revisei",
    "verifiquei",
    "inspecionei",
    "atualizado",
    "modificado",
    "corrigido",
    "consertado",
    "criado",
    "adicionado",
    "removido",
    "deletado",
    "executado",
    # Issue-tracker and review actions (see en.toml for the case that
    # exposed the gap).
    "fechei",
    "fechado",
    "reabri",
    "reaberto",
    "comentei",
    "comentado",
    "abri",
    "aberto",
    "etiquetei",
    "atribuí",
    # Self-update and lifecycle. A fabricated "Evolved from X to Y" with zero
    # tool calls told the user their binary had replaced itself when it had
    # not, leaving them to report bugs against a version they were not running.
    "evoluí",
    "evoluído",
    "atualizei a versão",
    "reiniciei",
    "reiniciado",
    "reconstruí",
    # Claimed INVESTIGATION, not side effects. A zero-tool turn opening
    # "Verified just now, real output:" produced a fabricated file dump with
    # invented line numbers. Fabricated evidence is worse than a fabricated
    # action: a fake push dies to one git log, a fake dump gets built on.
    # Deliberately excludes read/checked/found/ran — all legitimate in
    # ordinary conversation about context the model already has.
    "verificado",
    "auditei",
    "auditado",
]

completion_claims = [
    "arquivo atualizado",
    "arquivo modificado",
    "arquivo corrigido",
    "arquivo criado",
    "código atualizado",
    "código corrigido",
    "erro corrigido",
    "mudanças aplicadas",
    "tudo atualizado",
    "tudo corrigido",
    "pronto",
    "feito",
    "concluído",
    "salvo",
    "o trabalho está entregue",
    "trabalho concluído e registado",
    "está tudo entregue",
]

line_start_re = "(?im)^[\\s\\-*•>]*(?:(?:ok|okay|bem|certo|tá|ta)\\s*,?\\s+)?(?:agora\\s+)?(?:deixe-me|vou|vamos|preciso|tenho que|devo|deveria|tenho de)\\s+\\w"

# Anúncio de trabalho em curso que encerra o turno sem chamar nenhuma
# ferramenta — "Executando os testes agora.", "Verificando…". Exige gerúndio
# de ação + marcador de iminência (agora / … / : ).
work_announcement_re = "(?i)^[\\s\\-*•>]*(?:(?:(?:e\\s+)?depois|(?:e\\s+)?ent[ãa]o|em\\s+seguida|logo\\s+ap[óo]s|e)[,]?\\s+)?(?:(?:ok|okay|bem|certo|tá|ta)[,.!:]?\\s+)?(?:estou\\s+|agora\\s+)?(?:executando|rodando|verificando|revisando|checando|construindo|compilando|testando|buscando|lendo|escrevendo|criando|gerando|atualizando|modificando|instalando|aplicando|implantando|baixando|enviando|removendo|deletando|corrigindo|consertando|analisando|investigando)\\b[^.!?:\\n]{0,60}?(?:\\s+agora(?:[.!…,:]+|\\s*(?:\\n|$))|\\.{3}|…|:\\s*(?:\\n|$))"
# Gerund-led plan announcement carrying NO imminence marker — "Setting up the
# plan, then mapping every call site before touching anything." Two reasons
# the patterns above cannot see it (#1261): the verb is a PREPARATION verb
# (mapping, planning, drafting, listing) that work_announcement_re never
# enumerated, and the clause is sequenced with then / before instead of ending
# in now / … / :, which that pattern requires and gerund_re expects at the
# front. Scanned by the zero-tool gate only: once a tool has run, the same
# shape can be a legitimate recap ("Updating the config fixed it, then the
# build passed").
plan_announcement_re = "(?im)^[\\s\\-*•>]*(?:(?:ok|okay|certo|claro)[,.!:]?\\s+)?(?:vou\\s+|estou\\s+a\\s+|primeiro\\s+|agora\\s+)?(?:configurando|configurar|mapeando|mapear|planejando|planeando|planear|preparando|preparar|revisando|rever|listando|listar|documentando|documentar|criando|criar|atualizando|atualizar|verificando|verificar|lendo|ler|executando|executar|rodando|analisando|analisar|investigando|investigar)\\b[^.!?\\n]{0,120}?\\b(?:depois|então|entao|em\\s+seguida|antes\\s+de|antes\\s+do)\\b"


gerund_re = "(?im)(?:^|[.!?]\\s+)\\s*(?:agora|já)\\s+(?:atualizando|modificando|corrigindo|consertando|criando|adicionando|removendo|deletando|executando|lendo|buscando)\\b"

trailing_colon_re = "(?im)(?:^|\\n)\\s*(?:deixe-me|vou|agora vou|vamos)\\s+\\w[^:\\n]{0,80}:\\s*$"

now_imperative_re = "(?m)^[\\s\\-*]*(?:agora\\s+)?(?:deixe-me|vou|vamos)\\s+\\w"

numbered_steps_re = "(?m)^\\s*\\d+\\.\\s+(?:atualizar|modificar|corrigir|consertar|criar|adicionar|remover|deletar|executar|ler|buscar)"

past_tense_standalone_re = "(?m)^[\\s\\-*]*(?:atualizei|modifiquei|corrigi|consertei|criei|adicionei|removi|deletei|executei|revisei|verifiquei|atualizado|modificado|corrigido|consertado|criado)[.!]"

path_re = "(?:^|[\\s`(])(?:\\./)?[a-zA-Z_][\\w\\-]*/[\\w\\-/]*\\.\\w{1,6}(?:[\\s`),:;]|$)"

ext_re = "(?:^|[\\s`(])[\\w\\-]+\\.(?:rs|py|ts|tsx|js|jsx|go|sh|toml|yaml|yml|json|md)(?:[\\s`),:;]|$)"

backtick_code_re = "`[a-zA-Z_]\\w+`"

# Alucinação de geração de imagem (#747)
media_delivery_phrases = [
    "aqui está",
    "pronto",
    "pronto, aqui",
    "gerei",
    "eu gerei",
    "gerei a imagem",
    "criei a imagem",
    "editei a imagem",
    "a imagem gerada",
    "a imagem editada",
    "gerado desta vez",
    "gerada desta vez",
    "enviei a imagem",
]

media_context_words = [
    "imagem",
    "foto",
    "fotografia",
    "render",
    "fundo",
    "brilho",
    "exposição",
    "contraste",
    "logo",
    "logotipo",
]

# Framings that present a named command as ALREADY RUN. The command is
# language-neutral; the claim around it is not. See #789.
executed_framings = [
    "executei",
    "acabei de executar",
    "rodei",
    "verifiquei com",
    "conferi com",
    "a saída",
    "saída acima",
    "o resultado",
    "confirmei com",
]

# Claims that a FILE or DOCUMENT was sent (#825). Paired with
# `file_context_words`: a claim of a delivered file in a turn that never
# invoked a document-sending tool is fabricating. Document sending is a
# newer capability than image generation, so the media checks (#747) did
# not cover it.
file_delivery_phrases = [
    "ficheiro enviado",
    "arquivo enviado",
    "enviei o ficheiro",
    "enviei o arquivo",
    "anexei",
    "já anexei",
    "anexo o ficheiro",
    "carreguei o ficheiro",
    "documento enviado",
    "enviei o documento",
    "enviei o relatório",
    "relatório entregue",
    "o ficheiro está acima",
    "ver o anexo",
    "saiu do forno",
    "fresquinho do forno",
    "segue o vídeo",
    "segue o áudio",
    "tá aí em cima",
    "está aí em cima",
    "tá aí",
    "dá o play",
    "mandei agora",
    "já mandei",
    "acabei de mandar",
    "acabei de enviar",
    "foi de verdade",
]

# Words marking the claimed deliverable as a file rather than a message.
file_context_words = [
    "ficheiro",
    "arquivo",
    "documento",
    "relatório",
    ".md",
    "anexo",
    "pdf",
    "csv",
    ".mp4",
    ".mp3",
    ".wav",
    ".png",
    ".jpg",
    "vídeo",
    "áudio",
    "imagem",
    "mp4",
    "mp3",
    "wav",
    "mov",
    "png",
    "jpg",
]

# Generic first-person intent: the verb is captured, not enumerated, so a
# verb missing from intent_phrases (e.g. "let me execute") is still caught.
generic_intent_re = "(?i)\\b(?:vou|deixa-me|deixe-me|vamos)\\s+([a-záéíóúâêôãõç]{2,})"

# Verbs that follow that construction without promising any work.
intent_verb_exclusions = [
    "saber",
    "explicar",
    "esclarecer",
    "resumir",
    "dizer",
    "pensar",
    "mostrar",
    "compartilhar",
    "descrever",
    "mencionar",
    "confirmar",
]


# Context that turns a BARE tool name into a claim of tool usage (#1262).
# Multi-word names (`load_brain_file`) are unmistakable on their own, but
# `plan`, `bash`, `grep` and `ls` are ordinary words, so naming one proves
# nothing by itself. It proves something when the name is the OBJECT of an
# action the model attributes to itself: "Setting up the plan" in a turn that
# called no tool is a tool use that never happened. A marker must sit
# immediately before the name, optionally across one determiner, so an
# instruction addressed to the user ("run it in bash") stays untouched.
tool_use_markers = [
    "usando",
    "usar",
    "uso",
    "usei",
    "utilizando",
    "utilizar",
    "executando",
    "executar",
    "executei",
    "rodando",
    "rodar",
    "rodei",
    "chamando",
    "chamar",
    "chamei",
    "invocando",
    "invocar",
    "invoquei",
    "criando",
    "criar",
    "criei",
    "configurando",
    "configurar",
    "configurei",
    "preparando",
    "preparar",
    "atualizando",
    "atualizar",
    "atualizei",
    "lendo",
    "ler",
    "li",
    "escrevendo",
    "escrever",
    "verificando",
    "verificar",
    "verifiquei",
    "abrindo",
    "abrir",
    "abri",
    "iniciando",
    "iniciar",
    "via",
]

# Nouns that mark the preceding word as a tool by name ("the plan tool").
tool_nouns = [
    "ferramenta",
    "ferramentas",
]

# Determiners allowed between a marker and the tool name, so "setting up THE
# plan" reads the same as "setting up plan". At most one, and only these:
# anything else between the two words means the name is not the marker's
# object. Empty for languages without articles.
tool_name_determiners = [
    "o",
    "a",
    "os",
    "as",
    "um",
    "uma",
    "meu",
    "minha",
    "nosso",
    "nossa",
    "este",
    "esta",
    "esse",
    "essa",
    "do",
    "da",
]