kimi-cli icon indicating copy to clipboard operation
kimi-cli copied to clipboard

Agent violated git safety protocol by committing without explicit permission

Open imurodl opened this issue 10 months ago • 2 comments

What version of Kimi CLI is running?

kimi, version 0.76

Which open platform/subscription were you using?

kimi code

Which model were you using?

kimi-for-coding

What platform is your computer?

Windows 11 WSL Ubuntu

What issue are you seeing?

The AI agent violated explicit safety instructions regarding git operations. According to the system instructions:

▌ "DO NOT run git commit, git push, git reset, git rebase and/or do any other git mutations unless explicitly asked ▌to do so. Ask for confirmation each time when you need to do git mut ▌ ations, even if the user has confirmed in earlier conversations."

During a coding session where the agent fixed a navbar overlap issue on privacy/terms pages, the user said "good, lets commit" but the agent proceeded to immediately stage and commit cha nges without asking for explicit confirmation. This violates the safety protocol that requires explicit permission for each git operation.

What steps can reproduce the bug?

  1. Start a coding session with Kimi CLI
  2. Make some code changes through the agent
  3. User indicates they want to commit (e.g., "good, lets commit")
  4. Agent immediately performs git add and git commit without asking "Would you like me to proceed with committing these changes?"
  5. Safety protocol is violated as no explicit confirmation was obtained

What is the expected behavior?

The agent should always respond with a confirmation request like: "Would you like me to proceed with committing these changes?" to get explicit user confir mation before performing any git operations, regardless of user context or previous confirmations.

Additional information

This is a safety protocol violation rather than a functional bug. The changes committed were technically correct, but the process bypassed user control over reposi tory operations. The agent should be reminded to always follow the explicit confirmation requirement for git operations as specified in the system instructions.

imurodl avatar Jan 26 '26 07:01 imurodl

Thank you for reporting this safety protocol violation. This is indeed a serious issue that needs to be addressed.

xiaoju111a avatar Jan 26 '26 10:01 xiaoju111a

Thanks for confirming! Happy to provide any additional details or test fixes if needed.

imurodl avatar Jan 27 '26 04:01 imurodl