• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cdx
V2EX  ›  程序员

因为 Tibo 不让用 sub2api,所以我给 Zed 里的 Codex 加了行级代码 Review

  •  
  •   cdx · Aug 21 · 1627 views
    This topic created in 39 days ago, the information mentioned may be changed or developed.

    平时使用 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 Changes
    

    效果:

    仓库地址: codex-acp github

    如果想在 zed 中使用 claude code 也支持 single_file_review,可以使用: claude-agent-acp github

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2626 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:55 · PVG 21:55 · LAX 06:55 · JFK 09:55
    ♥ Do have faith in what you're doing.