#:schema https://raw.githubusercontent.com/openai/codex/rust-v0.137.0/codex-rs/core/config.schema.json
# 固定到当前安装版 codex-cli 0.137.0 的 schema;不要指向 main,避免开发分支变动导致编辑器误报。
# model 在源码中是 Option<String>,不会按枚举白名单校验;这里保留你的最强模型。
model = "gpt-5.5"
# 高强度推理配置:ReasoningEffort 支持 none/minimal/low/medium/high/xhigh。
model_reasoning_effort = "xhigh"
# 请求详细推理摘要:ReasoningSummary 支持 auto/concise/detailed/none。
model_reasoning_summary = "detailed"
# GPT-5 系列 Responses text.verbosity 控制,支持 low/medium/high。
model_verbosity = "high"
# 强制把当前模型视为支持 reasoning summaries。
# 这是能力覆盖项,不是普通偏好项;你已确认使用最强模型并允许启用,因此保留。
model_supports_reasoning_summaries = true
# multi_agent_v2 当前是 under-development feature;保留此项以抑制启动时的不稳定功能提示。
suppress_unstable_features_warning = true
# 高自动化策略:never 表示永不请求用户批准,执行失败直接交还给模型。
# 仅适合你这种已明确希望强自动化/外部隔离的环境;普通交互式环境可改为 on-request。
approval_policy = "never"
# danger-full-access 是源码支持的 sandbox_mode;它会给 Codex 非受限文件系统访问。
# 如果不是隔离机器,建议改为 workspace-write。
sandbox_mode = "danger-full-access"
# 工具输出进入上下文的 token 上限;较高数值利于长日志分析,但会增加上下文占用。
tool_output_token_limit = 30000
# WebSearchMode 支持 disabled/cached/live;live 会启用实时搜索。
web_search = "live"
# service_tier 支持 default/priority/flex,legacy fast 也会映射到 priority。
# priority 只有在 fast_mode feature 启用且模型/后端支持时才会真正进入请求。
service_tier = "priority"
# 后台终端 write_stdin 最大等待窗口,单位毫秒;3600000 = 1 小时,适合长任务。
background_terminal_max_timeout = 3600000
# 覆盖内置 openai provider 的 base_url。doctor 曾显示该 endpoint reachability 超时;
# 如果后端不可达,优先检查这里、网络、DNS、代理和 WebSocket 支持。
openai_base_url = "https://new.sharedchat.cc/codex"
[mcp_servers.chrome-devtools]
# stdio MCP server:command/args/env/startup_timeout_sec/tool_timeout_sec/default_tools_approval_mode 均为源码支持字段。
command = "npx"
env = { NODE_OPTIONS = "--no-network-family-autoselection" }
startup_timeout_sec = 30
tool_timeout_sec = 180
# AppToolApproval 支持 auto/prompt/approve;approve 会默认批准该 MCP server 的工具。
default_tools_approval_mode = "approve"
args = [
"-y",
"chrome-devtools-mcp@latest",
"--executablePath",
"/usr/bin/chromium",
"--isolated",
"--no-usage-statistics",
]
[projects."/home/sgrryrs"]
# trust_level 只支持 trusted/untrusted;trusted 后项目本地 .codex/config.toml、hooks、exec policies 才会加载。
trust_level = "trusted"
[projects."/home/sgrryrs/coreboot"]
# 源码不会自动把父目录 trust 推导到所有子项目;保留 coreboot 的显式 trust。
trust_level = "trusted"
[tui.model_availability_nux]
# TUI 启动可用性提示的显示计数,属于状态项;保留以避免重复提示。
"gpt-5.5" = 4
[tui]
# status_line/terminal_title 是字符串数组;TUI 会按已知项渲染。
status_line = [
"model-with-reasoning",
"context-remaining",
"used-tokens",
"git-branch",
"task-progress",
"current-dir",
]
terminal_title = ["activity", "project-name", "thread-title", "task-progress"]
# NotificationCondition 支持 unfocused/always;always 会更频繁通知。
notification_condition = "always"
[notice]
# 产品提示状态项:隐藏 rate-limit model nudge,保留你的现有选择。
hide_rate_limit_model_nudge = true
[tools.web_search]
# WebSearchContextSize 支持 low/medium/high;配合 web_search = "live" 获取更大搜索上下文。
context_size = "high"
[features]
# experimental feature:在任务执行期间阻止系统空闲睡眠。
prevent_idle_sleep = true
[features.multi_agent_v2]
# under-development feature:启用 task-path-based multi-agent routing。
enabled = true
# 源码要求至少为 1;64 合法但资源占用高,适合你当前高并发偏好。
max_concurrent_threads_per_session = 64