MoonshotAI / MoonshotAI/kimi-cli

Kimi CLI is prompting for approval in yolo mode

Open
#2,448 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What version of Kimi Code CLI is running?

Kimi Code v0.12.0

Which open platform/subscription were you using?

the one with the api key

Which model were you using?

k2.6

What platform is your computer?

debian

What issue are you seeing?

I'm in yolo mode, but keep getting prompted for approval to write a file. I think this is when the agent is writing a file outside of the CWD, eg. in /tmp

What steps can reproduce the bug?

Use the thing in yolo mode, have it create a file in /tmp

What is the expected behavior?

Creates the file without approval

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Kimi Code v0.12.0 on Debian with yolo mode and a file write under /tmp, then trace the approval handling for paths outside the current working directory. Done means the file is created without an approval prompt in yolo mode, with a regression test covering this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.