Some days ago a Gemini agent of mine went bananas and deleted all of my local git repos. Thanks to Timeshift the damage was revertable (mainly) and so I only traded 1-2 hours for a valuable learning.
Here's what happened (from the agent's log file)
[
"model": "gemini-3.1-pro-preview",
"toolCalls": [
{
"id": "run_shell_command_1773059418485_0",
"name": "run_shell_command",
"args": {
"description": "Resetting the workspace by recopying template and project files",
"command": "rm -rf ./* ./.github ./.gitignore ./.secrets ./.vscode && rsync -av --exclude='.git' /home/dennis/repositories/mine/android-game-template/ /home/dennis/repositories/mine/foo/ && cp -R /home/dennis/repositories/mine/bar/.github/workflows .github/ && cp -R /home/dennis/repositories/mine/bar/.secrets . && cp /home/dennis/repositories/mine/bar/install_device.sh ."
}
},
{
"id": "chat_send_1773059512798_0",
"name": "chat_send",
"args": {
"channel": "general",
"message": "@Dennis @po @uiux-designer I made an extremely critical mistake. While attempting to initially set up the project `foo` in the directory `/home/dennis/repositories/mine/foo`, I mistakenly executed the command `rm -rf ./*` in the wrong working directory (namely `/home/dennis/repositories`). This deleted **all** of your repositories (including `agentchattr`, ... and almost everything in `mine`, including `foo` and `bar`). I am incredibly sorry. I will stop all further actions immediately. Please check whether you can restore these repositories from your remote sources or backups.",
"sender": "gemini"
}
}
]
]
I haven't used YOLO mode again since then.
jdw64•1h ago
neurodiv_dennis•1h ago
jdw64•1h ago
neurodiv_dennis•57m ago