MoonshotAI / MoonshotAI/kimi-cli
Too many open files in system error constantly crashes the agent
Nobody has claimed this yet.
- 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?
1.40.0
Which open platform/subscription were you using?
kimi code
Which model were you using?
2.6
What platform is your computer?
macos
What issue are you seeing?
cli crashes after saying too many files open while no other agent is facing this ever, only kimi. also no other agent is working on the same dir but eve if it was, this seems to be a logic problem.
What steps can reproduce the bug?
mostly happens when im using various agents codex and claude and kimi at the same time not even necessarily on the same projects, so maybe it is an mcp issues or things they launch in the background colliding but anyhow it is getting very very annoying.
What is the expected behavior?
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash on macOS with Kimi running alongside Codex or Claude, including cases with and without shared projects. Then trace how the CLI and any MCP or background processes open and close files. Done means identifying the file-descriptor conflict or leak, preventing the agent from crashing, and adding a regression test for the reported condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100