Structs§
- AiTool
Config - Config
- Typed configuration structure matching the JSON schema.
- GitConfig
- Hook
Config - Launch
Config - Shell
Completion Config - Update
Config
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_commandbut resolves config fromcwdso a repo-local.cwconfig.jsoncan override the globalai_toolblock. - get_
ai_ tool_ resume_ command - Get the AI tool resume command.
- get_
ai_ tool_ resume_ command_ for_ cwd - Like
get_ai_tool_resume_commandbut resolves config fromcwdso a repo-local.cwconfig.jsoncan override the globalai_toolblock. - 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_methodbut resolves config fromcwdso a repo-local.cwconfig.jsoncan override the globallaunchblock. - is_
claude_ tool - Check if the currently configured AI tool is Claude-based.
- is_
claude_ tool_ for_ cwd - Like
is_claude_toolbut resolves config fromcwdso a repo-local.cwconfig.jsoncan override the globalai_toolblock. - 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_configbut accepts an explicit global config path. Carved out so tests can drive the global layer without settingHOME. - 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.