Agent should stop/discourage destructive behavior
Author: abhipatel12Created Mar 16, 2026Updated Sep 17, 2026
Labelspriority/p2area/agentkind/customer-issue🔒 maintainer onlyworkstream-rollupstatus/bot-triaged
In certain cases (complex git operations, branch management, etc), the model can occasionally use commands like git reset or --force when a safer alternative is possible.
Additionally, when maintaining resources such as DBs, etc, we should ensure that the model understands the dangers of modifying resources without a way of reverting any accidental destructive behavior.
Ideally, we can capture this type of behavior and add behavioral evals to ensure it does not happen.
Source: google-gemini/gemini-cli