You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, kimi-cli currently hardcodes PowerShell as the shell for executing commands. This causes significant issues because:
LLMs are trained primarily on bash syntax - Most LLMs generate bash commands by default
Common bash patterns fail in PowerShell:
• ls -la && cat file.txt → Error: '&&' is not a valid statement separator
• export VAR=value → Error: export is not recognized
• cat file | grep pattern → Pipeline syntax differs
Standard Unix tools unavailable - PowerShell lacks grep, awk, sed, ls by default
Proposed Solution
Add a [shell] configuration section to ~/.kimi/config.toml with hybrid detection:
This discussion was converted from issue #792 on February 05, 2026 10:11.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What feature would you like to see?
On Windows, kimi-cli currently hardcodes PowerShell as the shell for executing commands. This causes significant issues because:
• ls -la && cat file.txt → Error: '&&' is not a valid statement separator
• export VAR=value → Error: export is not recognized
• cat file | grep pattern → Pipeline syntax differs
Proposed Solution
Add a [shell] configuration section to ~/.kimi/config.toml with hybrid detection:
Priority order:
Example config:
Benefits
• LLM-generated bash commands work correctly
• Cross-platform consistency
• Zero-config for Git Bash users (just launch from Git Bash)
• Backwards compatible (default unchanged)
──────────────────────────────────────────────────────────────────────
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions