[codex] Refine BetterGPT skill routing#4
Draft
XiXiphus wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
重构 BetterGPT:对齐 Codex 的轻量路由层
摘要
default、explorer、docs_researcher、reviewer、worker)对齐,通过 intent mapping 把旧版框架标签映射过去。背景与动机
旧版 BetterGPT 更像一个通用个人提示包,放在当前 Codex 运行时里反复出现这些问题:
BetterSubagents把trellis-check等标签当成可调用的agent_typespawn_agent实际能力对不上(只支持default/explorer/docs_researcher/reviewer/worker)BetterLanguage的 banned-phrase policyAGENTS.md,不该混在技能逻辑里变更内容
BetterGPT(入口路由)BetterGPT只做入口路由,frontmatter 的description保持简短、以路由为导向。AGENTS.md。改前 → 改后
BetterLanguageconversation-pragmatics.md替代僵硬的 banned-phrase 做法。BetterSubagentsagent_type传进去。agents.max_depth = 1时,subagent 不能再 spawn subagent。Intent 映射
code-mapperexplorersearch-specialistexplorer或轻量defaultfrontend-developerworker+BetterFrontendrefactoring-specialistworker+BetterVibebrowser-debuggerexplorertrellis-implementworker+BetterTrellistrellis-checkreviewer+BetterTrellistrellis-researchexplorer或docs_researchertrellis-check/frontend-developer直接传给spawn_agentBetterTrellis$start、continue、$finish-work、record-session。.codex/*被当作 hook 已在运行BetterFrontendmax(原行数 + 80, 原行数 × 2),除非用户要求重设计。8px)。BetterVibe仓库改动
BetterGPT包同步到skills/BetterGPT。BetterLanguage/references/banned-phrases.md→conversation-pragmatics.md。tests/test_skill_repo.py中的预期文件列表。测试计划
diff -qr— 本地安装的 BetterGPT 和仓库副本一致description长度在预算内(各技能约 ≤ 33 词)/home/hpcdudu/Documents/bettergpt-blackbox-lab搭建 black-box lab(git init,无 remote)场景
apply_discount+python -m unittest tests/test_calculator.py$better-frontend,仪表盘 ≤ 114 行,可见文本 / CSS 检查BetterLanguage— 「收口」「如果需要的话」不再绝对禁用BetterTrellis— 只有.trellis/config.yaml和 spec 时,不声称 hook 已生效BetterVibe— 在 Trellis spec 下将后端 HTML 渲染标为最小边界问题BetterSubagents— 旧标签映射到可调用类型;保留max_depth = 1命令
结果: 仓库测试 35/35 通过;black-box lab 2/2 通过。
权衡
subagent 映射规则在
BetterSubagents/SKILL.md、agent-registry.md、dispatch-rules.md中故意重复,这样常见路径不用加载深层引用也能走通;未来代理类型变更需要同步更新这三处。