Expand description
visdom’s own settings: the user file (<config dir>/visdom/config.toml)
and the optional committed repository file (.visdom/config.toml), plus
the choice of agent.
Structs§
- Agent
Commands [agents]: the executable to run for an agent instead of the default.- Gateway
Config [gateway]: how to reach and use the AI Gateway.- Repo
Config .visdom/config.tomlin a repository: what the team prefers for it.- Repo
Gateway Config [gateway]in a repository: the gateway project this repository belongs to.- User
Config <config dir>/visdom/config.toml.
Functions§
- agent_
config_ key - The
[agents]key that overridesagent’s executable. - configured_
agent - The agent somebody chose outside the command line:
VISDOM_AGENT, then the repository config, then the user config.Nonewhen nobody did. - load_
repo_ config_ in - The repository config in
project_root. A missing file is the default. - load_
user_ config_ in - The user config under
config_root(the platform config directory). A missing file is the default config. - parse_
agent - Parse an agent name as the command line spells it (
claude-code,codex). - repo_
config_ path_ in - resolve_
agent - Which agent to use:
--agent, thenVISDOM_AGENT, then the repository config, then the user config, then Claude Code. Only Claude Code and Codex can be launched. - user_
config_ path_ in