Merged
Conversation
Member
dgageot
commented
Jan 16, 2026
- Auto migrate aliases there
- Support --yolo and --model on a per alias basis
- Support a global models gateway
Introduce a new user-level configuration file at ~/.config/cagent/config.yaml that consolidates user preferences. The aliases previously stored in aliases.yaml are now part of this config file. Key changes: - Add pkg/userconfig package to manage user configuration - Migrate aliases from legacy aliases.yaml to config.yaml automatically - Add 'cagent config' command to display the canonical configuration - Refactor pkg/aliases to be a thin wrapper around userconfig The migration is transparent: when loading config, if aliases.yaml exists and config.yaml has no aliases, they are automatically migrated and persisted to the new location. Assisted-By: cagent
Aliases can now store runtime options that are automatically applied when the alias is used: - --yolo: automatically approve all tool calls without prompting - --model: override the agent's model (format: [agent=]provider/model) Examples: cagent alias add yolo-coder agentcatalog/coder --yolo cagent alias add fast-coder agentcatalog/coder --model openai/gpt-4o-mini cagent alias add turbo agentcatalog/coder --yolo --model anthropic/claude-sonnet-4-0 The alias list command now displays options in brackets: fast-coder → agentcatalog/coder [model=openai/gpt-4o-mini] turbo → agentcatalog/coder [yolo, model=anthropic/claude-sonnet-4-0] Command-line flags override alias options when explicitly set. Assisted-By: cagent
Signed-off-by: David Gageot <david.gageot@docker.com>
Signed-off-by: David Gageot <david.gageot@docker.com>
rumpl
approved these changes
Jan 16, 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.