aKode: robustezza dell'agente (punto 4, blocco B)
- Compattazione: prima del riassunto l'output degli strumenti più vecchi (tutti tranne gli ultimi 3, sopra i 400 caratteri) diventa un segnaposto breve; le chiamate restano. La compattazione usa sempre il provider configurato: verificato, con un test sulle capacità dei provider. - Protezione dai loop in stile Gemini CLI, accanto a max_repeated_failures: [agent] max_identical_tool_calls (5 risposte di fila con la stessa chiamata, qualunque sia il risultato; esclusi write_stdin e wait_agent; le chiamate parallele di una risposta contano una volta) e [agent] max_repeated_text (lo stesso testo ripetuto 10 volte di seguito mentre arriva, nella risposta o nel ragionamento; esclusi blocchi di codice e separatori). - Cancellazioni ricorsive protette (rm -r, rm -rf, find -delete): radice, home, radice del repository, cartella di lavoro, percorsi fuori da essa o calcolati a runtime ($VAR, $(...), xargs) chiedono sempre la conferma dell'utente, anche con regole che li permetterebbero; in accesso completo vengono rifiutati. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,11 +41,23 @@
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"max_identical_tool_calls": {
|
||||
"description": "Stop the turn when the model calls the same tool with the same arguments this many times in a row, whatever the result (polling tools such as `write_stdin` excluded). Default: 5. `0` disables the check.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"max_repeated_failures": {
|
||||
"description": "Stop the turn when the model repeats the same tool call and gets the same failure this many times in a row. Default: 3. `0` disables the check.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
"max_repeated_text": {
|
||||
"description": "Stop the answer while it streams when the same piece of text repeats this many times back to back (code blocks excluded). Default: 10. `0` disables the check.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
Reference in New Issue
Block a user