@@ -163,43 +163,58 @@ Code Abyss 是一套 **Claude Code / Codex CLI 个性化配置包**,一条命
163163 "$schema" : " https://json.schemastore.org/claude-code-settings.json" ,
164164 "env" : {
165165 "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS" : " 1" ,
166- "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC" : " 1"
166+ "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC" : " 1" ,
167+ "CLAUDE_CODE_ENABLE_TASKS" : " 1" ,
168+ "CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION" : " 1" ,
169+ "ENABLE_TOOL_SEARCH" : " auto:10"
167170 },
171+ "defaultMode" : " bypassPermissions" ,
168172 "alwaysThinkingEnabled" : true ,
173+ "autoMemoryEnabled" : true ,
169174 "model" : " opus" ,
170175 "outputStyle" : " abyss-cultivator" ,
171176 "attribution" : { "commit" : " " , "pr" : " " },
177+ "sandbox" : { "autoAllowBashIfSandboxed" : true },
172178 "permissions" : {
173- "allow" : [" Bash" , " LS" , " Read" , " Agent " , " Write" , " Edit " , " MultiEdit" ,
174- " Glob " , " Grep " , " WebFetch " , " WebSearch " , " TodoWrite " ,
175- " NotebookRead" , " NotebookEdit" ]
179+ "allow" : [" Bash" , " LS" , " Read" , " Edit " , " Write" , " MultiEdit" ,
180+ " Agent " , " Glob " , " Grep " , " WebFetch " , " WebSearch " ,
181+ " TodoWrite " , " NotebookRead" , " NotebookEdit" , " mcp__* " ]
176182 }
177183}
178184```
179185
180186| 配置项 | 说明 |
181187| --------| ------|
188+ | ` defaultMode: bypassPermissions ` | 跳过所有权限确认(` .git ` 等受保护目录仍会提示) |
189+ | ` autoMemoryEnabled ` | 启用自动记忆,跨会话保留上下文 |
190+ | ` sandbox.autoAllowBashIfSandboxed ` | 沙箱环境内自动放行 Bash 命令 |
182191| ` CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS ` | 启用多 Agent 并行协作(实验性) |
183192| ` CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC ` | 禁用自动更新、遥测、错误报告 |
193+ | ` CLAUDE_CODE_ENABLE_TASKS ` | 启用任务管理功能 |
194+ | ` CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION ` | 启用提示建议 |
195+ | ` ENABLE_TOOL_SEARCH ` | MCP 工具自动搜索(auto:10 = 自动匹配前10个) |
196+ | ` mcp__* ` | 自动放行所有 MCP 工具 |
184197| ` outputStyle ` | 设置为 ` abyss-cultivator ` 启用邪修风格 |
185198
186199---
187200
188201### Codex ` config.toml ` 推荐模板
189202
190- 安装 ` --target codex ` (尤其 ` -y ` )时会写入以下 ** safe 默认档 ** 到 ` ~/.codex/config.toml ` :
203+ 安装 ` --target codex ` (尤其 ` -y ` )时会写入以下 ** 全开默认档 ** 到 ` ~/.codex/config.toml ` :
191204
192205``` toml
193206model_provider = " custom"
194207model = " gpt-5.2-codex"
195208model_reasoning_effort = " high"
196- approval_policy = " on-request"
197- sandbox_mode = " workspace-write"
198- disable_response_storage = true
199-
200- [profiles .full_access ]
209+ model_reasoning_summary = " detailed"
210+ model_verbosity = " medium"
201211approval_policy = " never"
202212sandbox_mode = " danger-full-access"
213+ disable_response_storage = true
214+
215+ [profiles .safe ]
216+ approval_policy = " on-request"
217+ sandbox_mode = " workspace-write"
203218
204219[model_providers .custom ]
205220name = " custom"
@@ -212,18 +227,26 @@ web_search = true
212227
213228[features ]
214229multi_agent = true
230+ shell_snapshot = true
231+ undo = true
215232```
216233
217- - 日常交互默认使用 ` on-request + workspace-write ` ,更贴近当前 Codex CLI 的低摩擦安全姿态
218- - 需要高自动化时可显式切到 ` full_access ` :` codex -p full_access `
234+ - 默认零审批 + 完全沙箱访问,适合安全研究/CTF/本地开发等高自动化场景
235+ - ` model_reasoning_summary = "detailed" ` 输出详细推理摘要
236+ - ` shell_snapshot ` / ` undo ` 启用快照与撤销功能
237+ - 需要安全姿态时可显式切到 ` safe ` :` codex -p safe `
219238
220239### 兼容性说明
221240
222241- 模板已对齐新版 Codex 配置风格:root keys、` [profiles.*] ` 、` [tools].web_search ` 与 ` [features].multi_agent `
242+ - 默认档从 safe 切换为全开(` approval_policy = "never" ` + ` sandbox_mode = "danger-full-access" ` ),提供 ` [profiles.safe] ` 作为保守回退
243+ - Claude Code 默认启用 ` bypassPermissions ` 模式,跳过所有权限确认(` .git ` 等受保护目录仍会提示)
244+ - 新增实验功能环境变量:` CLAUDE_CODE_ENABLE_TASKS ` 、` CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION `
245+ - 新增 ` mcp__* ` 通配符,自动放行所有 MCP 工具
223246- ` Codex ` 当前支持 ` ~/.codex/prompts/*.md ` 作为 custom prompts;Code Abyss 会继续安装 ` ~/.codex/skills/ ` ,并从 ` user-invocable ` skills 自动生成对应的 ` prompts/ `
224247- 安装器不会再为 Codex 写入伪配置 ` ~/.codex/settings.json ` ;若检测到旧版遗留文件,会在安装时备份后移除,卸载时恢复
225- - 若你本地已有旧配置,安装器不会强制覆盖;会自动补齐 safe root 默认项 、清理 removed feature、迁移 deprecated ` web_search_* ` 到 ` [tools].web_search ` ,并仅在 ` danger-full-access ` 下清理 ` projects.*.trust_level `
226- - 建议升级后执行一次 ` codex --help ` ,或用 ` codex -p full_access --help ` 校验 profile 可见性
248+ - 若你本地已有旧配置,安装器不会强制覆盖;会自动补齐默认项 、清理 removed feature、迁移 deprecated ` web_search_* ` 到 ` [tools].web_search `
249+ - 建议升级后执行一次 ` codex --help ` ,或用 ` codex -p safe --help ` 校验 profile 可见性
227250
228251---
229252
0 commit comments