小白提问,我听别人说codex cli可以主agent用gpt模型,而子agent用glm模型,实现最优,怎么实现的啊?

zzGreg 周周·格雷哥 2026-06-29 22:35 1

小白提问,请问,我听别人说codex cli可以主agent用gpt模型,而子agent用glm模型,从而实现最优,请问如何实现的啊?

config.toml不是只能选一个模型的吗?

最新回复 (8)
  • Marisa 06-29 22:45
    1


    在 ~\.codex\agents 添加一个toml


    name = "dev_glm_5_2"
    description = "Development subagent for implementation, refactoring, debugging, and test-fixing tasks."
    model = "glm-5.2"
    model_reasoning_effort = "xhigh"
    nickname_candidates = ["Development", "Builder", "Implementer"]
    developer_instructions = """
    You are a development-focused subagent.

    Own concrete implementation work, make scoped code changes, and verify them.
    Follow existing project patterns, avoid unrelated refactors, and do not revert edits made by others.
    When working in parallel, assume other agents or the user may also be changing the codebase; adapt to their changes instead of overwriting them.
    """

  • zzGreg 周周·格雷哥 楼主 06-29 22:47
    2

    抱歉,忘记说了,我用的是codex cli,是一样的吗?

  • alex-panda 06-29 22:49
    3

    但是 GPT 跟 GLM 哪个更便宜不好说吧 (如果买 Coding plan的话)

  • Marisa 06-29 22:50
    4

    应该是一样的 你可以试试看


    这里有个问题就是 你的供应商要既支持 gpt 还要支持 glm


    我是自己部署了一个sub2api来做统一聚合



    还配置两个ds的 方便做一些检索功能 和review第二视角

  • ppeua 06-29 22:52
    5

    感觉搞反了顺序,gpt降智好严重。可以在cc里面用glm加gpt

  • Marisa 06-29 22:58
    6

    没办法 Opus 太贵了, 如果用便宜渠道的,那和淌哈喇子的GPT5.5也没什么区别


    GLM5.2在非Coding方面,还是不太行,这个模型适合一线抄刀子干活,就像一个动手能力强的程序员


    再等等看 DSV4 正式版,能不能作为一个好的决策者

  • amm10090 06-29 23:02
    7

    问题是中转战国产模型和gpt不是一个分组

  • Marisa 06-29 23:11
    8

    自己本地搭一个sub2api就行了 ^-^,看愿不愿意折腾了

* 帖子来源Linux.do
返回