feat: team config + role definitions (Phase 2 of Agent Teams)#134
Open
LeoLin990405 wants to merge 2 commits intobfly123:mainfrom
Open
feat: team config + role definitions (Phase 2 of Agent Teams)#134LeoLin990405 wants to merge 2 commits intobfly123:mainfrom
LeoLin990405 wants to merge 2 commits intobfly123:mainfrom
Conversation
Add a/b/c/d... shorthand aliases for providers so users can type `ask a "hello"` instead of `ask codex "hello"`. - New lib/aliases.py: 3-layer config (defaults < ~/.ccb/ < .ccb/) - Updated bin/ask: alias resolution before parse_qualified_provider - New test/test_aliases.py: 22 tests covering all paths Relates to bfly123#81
…ly123#81) Add team configuration system allowing named agents with provider, model, role, and skills. Team agent names override aliases. - New lib/team_config.py: team config loading from .ccb/team.json - Updated bin/ask: team agent resolution (priority over aliases) - New test/test_team_config.py: 38 tests covering all paths Example .ccb/team.json: { "name": "dev-team", "strategy": "skill_based", "agents": [ {"name": "researcher", "provider": "gemini", "model": "3f", "role": "research"}, {"name": "coder", "provider": "codex", "model": "o3", "role": "implementation"} ] } Usage: ask researcher "hello" → routes to gemini Relates to bfly123#81
This was referenced Mar 11, 2026
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.
Summary / 概述
Phase 2 of Agent Teams (#81): 添加 team 配置系统,支持命名 agent 及角色定义。
Adds team configuration with named agents, provider/model binding, roles, and skills.
新文件 / New Files
lib/team_config.py(129 行) — Team 配置加载、agent 解析、名称解析test/test_team_config.py(387 行) — 38 个测试覆盖所有路径修改 / Modified
bin/ask— 集成 team agent 解析,优先级:team agents > aliases > direct providers使用方式 / Usage
创建
.ccb/team.json(项目级)或~/.ccb/team.json(全局):Create
.ccb/team.json(project) or~/.ccb/team.json(global):{ "name": "dev-team", "description": "开发团队 / Development team", "strategy": "skill_based", "agents": [ {"name": "researcher", "provider": "gemini", "model": "3f", "role": "research", "skills": ["frontend", "analysis"]}, {"name": "coder", "provider": "codex", "model": "o3", "role": "implementation", "skills": ["python", "rust"]}, {"name": "reviewer", "provider": "claude", "role": "review", "skills": ["security", "architecture"]} ] }用 team agent 名称路由 / Route by team agent name:
设计要点 / Design
.ccb/team.json覆盖全局~/.ccb/team.jsonbin/ask客户端Agent 字段 / Agent Fields
nameprovidermodelroleskills阶段路线图 / Phased Roadmap
Relates to #81
测试计划 / Test plan
pytest test/test_team_config.py -v— 38/38 passedpytest test/test_aliases.py -v— 22/22 passed (Phase 1 不受影响).ccb/team.json,验证ask researcher "hello"→ geminiask --help显示 team 信息