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:
- 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:
Priority order:
- Explicit path (shell.path)
- SHELL environment variable (Git Bash sets this)
- Auto-detect based on shell.preferred setting
- PowerShell fallback (backwards compatible)
Example config:
[shell]
path = "C:/Program Files/Git/bin/bash.exe"
# OR
preferred = "bash" # "auto" (default), "powershell", "bash"
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
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