feat: agent name aliases (Phase 1 of Agent Teams)#133
Open
LeoLin990405 wants to merge 2 commits intobfly123:mainfrom
Open
feat: agent name aliases (Phase 1 of Agent Teams)#133LeoLin990405 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
Open
…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
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 1 of Agent Teams (#81): adds a/b/c/d shorthand aliases for providers.
lib/aliases.py— 3-layer alias config (hardcoded defaults <~/.ccb/aliases.json<.ccb/aliases.json)bin/ask— integrates alias resolution beforeparse_qualified_provider, supports colon-instance syntaxtest/test_aliases.py— 22 tests all passing, including integration withparse_qualified_providerDefault Aliases
Usage
Design Decisions
bin/askclient.ccb/aliases.json> global~/.ccb/aliases.json> defaultsask a:reviewresolves tocodex:review, thenparse_qualified_providersplits normallyPhased Roadmap
Closes #81 (Phase 1)
Test plan
pytest test/test_aliases.py -v— 22/22 passedask a "hello"routes to codexask a:review "hello"routes to codex with instanceask kimi "hello"unchanged behavior