pub struct CliConfig {
pub bare: bool,
pub safe_mode: bool,
pub no_mcp_media: bool,
pub json: bool,
pub auto: bool,
pub loop_: LoopConfig,
pub allowed_tools: Option<Vec<String>>,
}Expand description
Session-scoped CLI overrides loaded from the [cli] TOML section.
Command-line flags take priority over these values. This section has no effect on Telegram, Discord, Slack, or ACP sessions.
Fields§
§bare: boolEnable bare mode (skip skills, memory, MCP, scheduler, watchers).
safe_mode: boolEnable safe mode (skip ZEPH.md/CLAUDE.md/AGENTS.md, plugins, skills,
hooks, and MCP servers for this session). Session-scoped only — never
persisted to config.toml (#[serde(skip)]), mirroring --bare’s
troubleshooting-flag precedent but gating a disjoint set of subsystems.
no_mcp_media: boolForce MCP image passthrough (spec-072) off for this session (--no-mcp-media),
regardless of per-server media_passthrough or [mcp.media] config. Session-scoped
only — never persisted to config.toml (#[serde(skip)]), mirroring safe_mode.
json: boolEmit structured JSON events (JSONL) to stdout. Forces logs to stderr.
auto: boolAuto-approve trust-gate prompts (-y / --auto).
loop_: LoopConfigLoop command configuration.
allowed_tools: Option<Vec<String>>Tool allowlist for CLI/TUI sessions. None means all tools are permitted.