Repository navigation
角色可以有自己的推理强度 - #455
Merged
Merged
角色可以有自己的推理强度#455
Conversation
之前一个项目只有一个 effort,四个角色共用。现在每个角色可以单独设一个,没设的 用项目的:ARGUS_SKILL_<ROLE>_REASONING_EFFORT(MANAGER / PLANNER / ENGINEER / REVIEWER),空值表示改回用项目的。记在 project.json 的 efforts 里,新项目沿用 上一个项目的设置,和项目级 effort 一样。 设置接口、/config、快照里每个角色显示的 effort 都按角色取值。模型仍是全项目一个。 网页上还没有分角色的选择控件,目前只能通过设置接口改;角色面板会显示各自的值。 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Open
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.
为什么
一个项目之前只有一个 effort,四个角色共用。想让干活的工程师用 low、其余角色用 medium 这样的搭配,没有办法设。
改了什么
ARGUS_SKILL_MANAGER_REASONING_EFFORT、..._PLANNER_...、..._ENGINEER_...、..._REVIEWER_...,走原来的POST /api/projects/<id>/config/set。空值、auto、default表示改回用项目的。project.json的efforts里;全部清空后这个字段不保留。efforts,和项目级 effort 的做法一致。/config和快照里每个角色的 effort 按角色取值,角色面板因此会显示各自的值。docs/typescript-core.md加了一句说明。没做的
网页上没有加分角色的选择控件,现在只能通过设置接口改。
验证
projects.test.ts:设置、读取、清除一个角色的 effort;不存在的角色名和非法取值被拒绝。flow.test.ts:有自己 effort 的角色按自己的调用,其余按项目的。--preview-url的两个 CLI 测试),基线上同样失败。🤖 Generated with Claude Code