Skip to main content

Crate codei_config

Crate codei_config 

Source
Expand description

Configuration loading and resolution for CodeI.

Structs§

AgentConfig
Config
Full configuration after merging all sources.
DefaultsConfig
GrepToolConfig
HookConfig
LoadOptions
Options that override layered configuration (CLI flags, etc.).
McpConfig
McpServer
PluginsConfig
ProviderConfig
ResolvedConfig
Resolved configuration with metadata about where values came from.
SessionConfig
Skill
Metadata for a discovered SKILL.md.
ToolsConfig
UiConfig
WebFetchToolConfig
WebSearchToolConfig

Enums§

ConfigError
HookEvent
SessionStorage
ShellSandboxMode
SkillSource
Where a skill was discovered on disk.
UiTheme
WebSearchProvider

Functions§

debug_log_path
Path to the append-only debug log file used with codei --verbose.
default_config_template
Default user config template written by codei config init.
default_mcp_template
discover_project_root
Walks up from start looking for project markers.
discover_skills
Discover skills from user and project directories.
expand_tilde
Expands a leading ~ using HOME.
find_skill
Find a skill by name (case-insensitive) or parent directory name.
format_skills_for_prompt
Format a compact skill index for the system prompt.
init_mcp_config
init_user_config
Creates ~/.config/codei/config.toml if it does not exist. Returns the path and whether a new file was created.
load
Loads configuration from defaults, user file, project file, env, and CLI overrides.
load_mcp_config
load_plugins
mcp_config_path
parse_mcp_config
project_config_path
Returns the project-level config path under .codei/config.toml.
read_skill_body
Read skill instructions (body without YAML frontmatter).
run_hooks
save_mcp_config
user_config_dir
Returns the user-level configuration directory (~/.config/codei on Linux).
user_config_path
Returns the path to the user-level config file.
user_log_dir
Returns the directory for debug/runtime logs (~/.local/share/codei/logs on Linux).