Skip to main content

Module config

Module config 

Source
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§

AgentCommands
[agents]: the executable to run for an agent instead of the default.
GatewayConfig
[gateway]: how to reach and use the AI Gateway.
RepoConfig
.visdom/config.toml in a repository: what the team prefers for it.
RepoGatewayConfig
[gateway] in a repository: the gateway project this repository belongs to.
UserConfig
<config dir>/visdom/config.toml.

Functions§

agent_config_key
The [agents] key that overrides agent’s executable.
configured_agent
The agent somebody chose outside the command line: VISDOM_AGENT, then the repository config, then the user config. None when 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, then VISDOM_AGENT, then the repository config, then the user config, then Claude Code. Only Claude Code and Codex can be launched.
user_config_path_in