google-gemini / google-gemini/gemini-cli

Agent should stop/discourage destructive behavior

Open
#22,672 3 comments 1 reaction 0 assignees View on GitHub
🔒 maintainer only area/agent kind/customer-issue priority/p2 status/bot-triaged workstream-rollup
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.