各位在 Windows 下使用 codex 是用的什么终端工具

3 月 25 日
 SilenceLL

我感觉他在 Windows 下真的有点蠢,不管是 cmd 还是 powershell 各种工具调用都在反复试,运行的又慢。

然后就想着迁移到 wsl ,代码还是在 Windows 系统,结果 codex 跑的各种编译测试又慢的要命。

顺着这个思路我把代码也丢到 wsl 了,但是 Windows 上面通过 idea 运行 wsl 的项目又慢的要命。

气的我把家里的笔记本带来公司干活了。

7045 次点击
所在节点    程序员
36 条回复
lagrange7
3 月 25 日
微软推出的 powershell 很好用 简洁,个性化强
acrisliu
3 月 26 日
“但是 Windows 上面通过 idea 运行 wsl 的项目又慢的要命。”
你用的哪个版本?新版本(貌似 2025.3 )或者更早,能原生直接打开 WSL 中的项目(官方叫 Open WSL project natively as local projects ),很丝滑。
stoicb
3 月 26 日
cli
DAMNCRAB
3 月 26 日
Jonz
3 月 26 日
不用自带的 Windows PowerShell,去下载 PowerShell7 来用
a0210077
3 月 26 日
Windows 下运行并不慢。PowerShell7 + Codex CLI + VS Code

PowerShell7 更好支持 UTF-8 编码显示( codex 自己说的)
Codex CLI 吃 HTTPS_PROXY 系统变量,用 PowerShell 设置系统变量再启动,不用上系统代理和 TUN 模式,也不干扰其他程序
doraemonki
3 月 26 日
https://github.com/yotsuda/PowerShell.MCP

Windows 上面真心推荐这个 mcp 代替内置 bash 。先安装 pwsh7 ,然后全局提示词加上下面的话,让 codex 比你更懂 Windows ,除了终端弹的有点多没啥大毛病😂

Always use the `mcp__PowerShell` tool instead of the built-in tool for all command execution. Exception: for Codex-injected helper commands such as `apply_patch` and `applypatch`, use the built-in `pwsh` shell.
asd999cxcx
3 月 26 日
@acrisliu 但是这样所有的 agent 得装在 wsl 吧?我尝试使用 acp 就是这样,每次通过原生模式打开 acp 在 windows 本地就会出问题
acrisliu
3 月 26 日
@asd999cxcx 目前 IDEA 上的 ACP 还不支持 WSL ,官网有说明,等后续更新吧。我直接在 WSL 里面用 Junie CLI 之类的了。
asd999cxcx
3 月 26 日
@acrisliu 终端中使用么
SilenceLL
3 月 26 日
@acrisliu #22 是可以,但是大型项目可以很明显的感觉到运行慢太多了。所以我又放弃了。
qianlifeng
3 月 26 日
codex desktop 不是挺好用的
youshangdemajia
3 月 26 日
Codex app 有权限问题,没法执行 cargo check 。不知道为什么要封装成 Windows app
shitshit666
3 月 26 日
@weixiaoyun 没这么麻烦,直接装一个新版的 powershell7 就行了,他会自己去用新版的,新版的没有乱码
prosgtsr
3 月 26 日
@Danswerme PowerShell7
linmq
8 月 30 日
windows terminal + powershell7

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/1201056

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX