- DSLZL💀2026-08-1930170
声明
本帖使用社区开源推广,符合推广要求。我申明并遵循社区要求的以下内容:
- 我的帖子已经打上 开源推广 标签: 是
- 我的开源项目完整开源,无未开源部分: 是
- 我的开源项目已链接认可 LINUX DO 社区: 是
- 我帖子内的项目介绍,AI 生成、润色内容部分已截图发出: 是
- 以上选择我承诺是永久有效的,接受社区和佬友监督: 是
以下为项目介绍正文内容,AI 生成、润色内容已使用截图方式发出
旨在不会影响原有的 CODEX CLI 环境下,复用并运行
在 CODEX CLI 内调用子代理后停止无限轮询,并在所有子代理完成后,读取结论/反馈并执行下一步工作,有效的减少了使用子代理时产生大量反复且无用的上下文
使用
npm install -g @dslzl/csa安装后,使用csa install与csa uninstall即可,也可以使用npx @dslzl/csa install/uninstall(可用 bun 替代 npm , bunx 替代 npx )正在开发中,使用 Codex CLI 与 GPT 辅助开发,有 BUG 请反馈,若不想等待 Action 编译,可自行编译 Patch Codex CLI 使用

TUI 演示 (此为 GIF 动图,若发现不会动可以点一下试试)

github.com
GitHub - DSLZL/CSA: CSA manager and compatibility patches for...
CSA manager and compatibility patches for side-by-side patched Codex CLI builds
PS:默默吐槽一下无限轮询真不行吧,来试试吧
主楼 - DSLZL💀2026-08-2130170
- DSLZL💀2026-08-2130170
有没有人说一下 fork_turn 这玩意对于 default、worker、explorer 这三个方向的子代理具体是加上高效还是不加上高效? ^-^
- DSLZL💀2026-08-2330170
- owwkmidream2026-08-2330961
- DSLZL💀2026-08-2930170
现在更新到 v0.150.1 了,子代理TUI改了很多, README.md 文件也改了一番,佬可以看一看试着用了
- owwkmidream2026-08-2930961
是想用一下,目前有点难用。首先pnpm装的全局包检测不到,切换到npm后,执行install又报错```
csa install
Available patched Codex CLI releases:
1) Codex 0.150.1 rust-v0.150.1-native-join-p8 x86_64-pc-windows-msvc installable
2) Codex 0.149.0 rust-v0.149.0-native-join-p3 x86_64-pc-windows-msvc requires official Codex 0.149.0; installed is 0.150.1
3) Codex 0.148.0 rust-v0.148.0-native-join-p1 x86_64-pc-windows-msvc requires official Codex 0.148.0; installed is 0.150.1
Select an installable release number: 1
{
"error": {
"code": "unsupported_manifest",
"message": "only patch sets 1, 2, 3, 4, 5, 6, and 7 are supported"
},
"schema": 1
}
```
- owwkmidream2026-08-2930961
我晕了,pnpm add -g给我装的0.1.2,非latest
- owwkmidream2026-08-2930961
› Codex couldn't start because its local database appears to be damaged. Run `codex doctor` to check your setup and get next-step guidance. If this keeps happening, share the technical details below when asking for help. Technical details: Location: C:\Users\Anne\.codex\state_5.sqlite Cause: failed to initialize state runtime at C:\Users\Anne\.codex: failed to migrate state DB at C:\Users\Anne\.codex\state_5.sqlite: migration 1 was previously applied but has been modified: migration 1 was previously applied but has been modified ERROR: failed to initialize sqlite local db at C:\Users\Anne\.codex\state_5.sqlite: failed to initialize state runtime at C:\Users\Anne\.codex: failed to migrate state DB at C:\Users\Anne\.codex\state_5.sqlite: migration 1 was previously applied but has been modified: migration 1 was previously applied but has been modified ```patch后的cli不能复用以前的数据吧,如果是这样使用这个项目的代价有点高 - pie_z2026-08-2924376
fork turns一定要说明不要使用fork turns = all,all会让subagent继承主agent的所有的上下文,模型类型和思考深度,一般不用比较好吧,或者fork turns最近相关的几轮,这个我没测试过
不过轮询问题可以让GPT开完subagent然后使用wait agent这个工具等待吧
- DSLZL💀2026-08-2930170
我考虑的是尽量复用的,后面我再调整一下
- DSLZL💀2026-08-2930170
- DSLZL💀2026-08-2930170
- Huangyue2026-08-319261
Linux x64 下执行
csa install失败。我的环境:```
Codex: 0.151.0
系统: Linux x86_64
CSA Manager target: x86_64-unknown-linux-gnu
``但当前rust-v0.151.0-native-join-p10的 Linux x64 artifact 使用的是:``
x86_64-unknown-linux-musl
``执行:``
csa install
``报错:``
[no_installable_compatibility_releases]
no formal compatibility release matches this Manager target and official Codex version
``看起来 CSA 目前要求 Manager target 与 patched Codex artifact target 完全一致,因此gnu和musl` 无法匹配。大概问了一下gpt,给的建议是:
- 让
x86_64-unknown-linux-gnu使用对应的 musl artifact;- 提供 GNU 版本的 Linux artifact;
完整信息:```
Official Codex: 0.151.0
Manager target: x86_64-unknown-linux-gnu
Patched artifact target: x86_64-unknown-linux-musl
```麻烦佬确认一下。 - DSLZL💀2026-08-3130170
目前刚搞多平台,还在修修补补,我这边搞好之后会和佬说一下
- DSLZL💀2026-09-0130170
佬现在可以试试了,记得更新一下版本
- DSLZL💀2026-09-0430170
出来 GPT-6 Aster 后, Codex 更新好快,花了老旧才更新到了 v0.153.2
- Huangyue2026-09-079261
我又来了佬友~催更 ^-^
给
CSA-codex提了一个issue,主要是针对csa uninstall后,切回官方codex时由于sqlite文件被修改导致无法启动codex的问题。虽然可以通过删除sqlite文件后codex resume --all做修复另外给
CSA提了个PR,给linux系统做了一些兼容性修复。非常好项目,期待更新 ^-^ ~
- DSLZL💀2026-09-0730170
我去居然有 PR 了,十分感谢佬 ^-^
毕竟我电脑硬盘小再装虚拟机就塞不下 rust 的缓存了,所以没办法搞 linux 和 macos 的测试
我今明两天会针对诸如 fork_turn 的这种上下文的东西做改动,追上最新版并提交后会合并佬的 PR
- Huangyue2026-09-079261
期待佬友更新^-^