Tech
[程序员] 因为 Tibo 不让用 sub2api,所以我给 Zed 里的 Codex 加了行级代码 Review
平时使用 sub2api 反代模型在 cursor 用自己的模型,但是现在用 sub2api 会减少额度,又想开发时用自己订阅的 gpt,还想自己决定每一行代码的改动
之前在用 zed 时就知道可以调 codex 来使用,但是后面不支持外部 agent 的 single_file_review 就不怎么用了
研究了一下,使用 acp adapter 监听 codex app-server 的 fileChange 事件来实现
原理:
Zed <── ACP ──> codex-acp <── JSON-RPC ──> Codex App Server
│
└── fileChange
├── restore the pre-change file state
└── fs/write_text_file(newText) → Zed Review Chan...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX