Skip to content

Conversation

@dgageot
Copy link
Member

@dgageot 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 <[email protected]>
@dgageot dgageot requested a review from a team as a code owner January 16, 2026 14:55
@dgageot dgageot merged commit 8f8550d into docker:main Jan 16, 2026
5 checks passed
@dgageot dgageot mentioned this pull request Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants