[BUG] cygpath calls on Windows seems to slown down agent a lot
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 6 comments · opened Nov 27, 2025 · closed Jan 13, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The clauding animation is pausing. CC freezes for a 1 to 5 seconds doing something in backgroud, so I inspected the task manager and seen cygpath long calls exactly the times CC freezes.
I think this is last weeks issue.
What Should Happen?
No freezes :)
Error Messages/Logs
Steps to Reproduce
Just usual CC sessions. After 1-5 messages these freezes appears.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.55 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
VSCode integrated terminal - PowerShell
6 Comments
Hey, there is my research results with Opus on this issue.
Measure-Command { & "C:\Program Files\Git\bin\bash.exe" -c "echo hello" } , in my windows TotalMilliseconds : 121.2469 . but claude code read file really very slow when need read multi files. @honix
@honix i add CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\usr\bin\bash.exe in env and C:\Program Files\Git\usr\bin in path , become a bit smoother
@honix One FileRead call invoked cygpath -u over 20 times, causing extremely slow file reading.
It seems it much better in recent versions of Claude Code. The 2.1.6 (Claude Code) doesnt hangs file reads or something, it feels smooth now.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.