Skip to main content

Module config

Module config 

Source

Structs§

AiToolConfig
Config
Typed configuration structure matching the JSON schema.
GitConfig
HookConfig
LaunchConfig
ShellCompletionConfig
UpdateConfig

Functions§

ai_tool_presets
AI tool presets: preset name -> command parts.
ai_tool_resume_presets
AI tool resume presets.
claude_preset_names
Set of Claude-based preset names.
get_ai_tool_command
Get the AI tool command to execute.
get_ai_tool_command_for_cwd
Like get_ai_tool_command but resolves config from cwd so a repo-local .cwconfig.json can override the global ai_tool block.
get_ai_tool_resume_command
Get the AI tool resume command.
get_ai_tool_resume_command_for_cwd
Like get_ai_tool_resume_command but resolves config from cwd so a repo-local .cwconfig.json can override the global ai_tool block.
get_config_path
Get the path to the configuration file.
get_default_launch_method
Get default launch method from config or environment.
get_default_launch_method_for_cwd
Like get_default_launch_method but resolves config from cwd so a repo-local .cwconfig.json can override the global launch block.
is_claude_tool
Check if the currently configured AI tool is Claude-based.
is_claude_tool_for_cwd
Like is_claude_tool but resolves config from cwd so a repo-local .cwconfig.json can override the global ai_tool block.
load_config
Load configuration from file, deep-merged with defaults. Falls back to legacy Python config path if the new path doesn’t exist.
load_effective_config
Load configuration with the repo-local .cwconfig.json (if any) deep-merged over the global config. Layer order (lowest to highest precedence):
load_effective_config_with_global
Same as load_effective_config but accepts an explicit global config path. Carved out so tests can drive the global layer without setting HOME.
parse_term_option
Parse –term option value.
prompt_shell_completion_setup
Prompt user to set up shell integration on first run.
resolve_launch_alias
Resolve launch method alias to full name.
resolve_launch_display_name
Resolve a launch method value (possibly an alias) to its display name.
resolve_term_option
Resolve a launch method honoring an optional CLI override.
save_config
Save configuration to file.