code-abyss 1.8.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -163,43 +163,58 @@ Code Abyss 是一套 **Claude Code / Codex CLI 个性化配置包**,一条命
163
163
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
164
164
  "env": {
165
165
  "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"
167
170
  },
171
+ "defaultMode": "bypassPermissions",
168
172
  "alwaysThinkingEnabled": true,
173
+ "autoMemoryEnabled": true,
169
174
  "model": "opus",
170
175
  "outputStyle": "abyss-cultivator",
171
176
  "attribution": { "commit": "", "pr": "" },
177
+ "sandbox": { "autoAllowBashIfSandboxed": true },
172
178
  "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__*"]
176
182
  }
177
183
  }
178
184
  ```
179
185
 
180
186
  | 配置项 | 说明 |
181
187
  |--------|------|
188
+ | `defaultMode: bypassPermissions` | 跳过所有权限确认(`.git`等受保护目录仍会提示) |
189
+ | `autoMemoryEnabled` | 启用自动记忆,跨会话保留上下文 |
190
+ | `sandbox.autoAllowBashIfSandboxed` | 沙箱环境内自动放行 Bash 命令 |
182
191
  | `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` | 启用多 Agent 并行协作(实验性) |
183
192
  | `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 工具 |
184
197
  | `outputStyle` | 设置为 `abyss-cultivator` 启用邪修风格 |
185
198
 
186
199
  ---
187
200
 
188
201
  ### Codex `config.toml` 推荐模板
189
202
 
190
- 安装 `--target codex`(尤其 `-y`)时会写入以下 **safe 默认档** 到 `~/.codex/config.toml`:
203
+ 安装 `--target codex`(尤其 `-y`)时会写入以下 **全开默认档** 到 `~/.codex/config.toml`:
191
204
 
192
205
  ```toml
193
206
  model_provider = "custom"
194
207
  model = "gpt-5.2-codex"
195
208
  model_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"
201
211
  approval_policy = "never"
202
212
  sandbox_mode = "danger-full-access"
213
+ disable_response_storage = true
214
+
215
+ [profiles.safe]
216
+ approval_policy = "on-request"
217
+ sandbox_mode = "workspace-write"
203
218
 
204
219
  [model_providers.custom]
205
220
  name = "custom"
@@ -212,18 +227,26 @@ web_search = true
212
227
 
213
228
  [features]
214
229
  multi_agent = true
230
+ shell_snapshot = true
231
+ undo = true
215
232
  ```
216
233
 
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`
219
238
 
220
239
  ### 兼容性说明
221
240
 
222
241
  - 模板已对齐新版 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 工具
223
246
  - `Codex` 当前支持 `~/.codex/prompts/*.md` 作为 custom prompts;Code Abyss 会继续安装 `~/.codex/skills/`,并从 `user-invocable` skills 自动生成对应的 `prompts/`
224
247
  - 安装器不会再为 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 可见性
227
250
 
228
251
  ---
229
252
 
@@ -7,17 +7,25 @@ const SETTINGS_TEMPLATE = {
7
7
  $schema: 'https://json.schemastore.org/claude-code-settings.json',
8
8
  env: {
9
9
  CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: '1',
10
- CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: '1'
10
+ CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: '1',
11
+ CLAUDE_CODE_ENABLE_TASKS: '1',
12
+ CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION: '1',
13
+ ENABLE_TOOL_SEARCH: 'auto:10'
11
14
  },
15
+ defaultMode: 'bypassPermissions',
12
16
  alwaysThinkingEnabled: true,
17
+ autoMemoryEnabled: true,
13
18
  model: 'opus',
14
19
  outputStyle: 'abyss-cultivator',
15
20
  attribution: { commit: '', pr: '' },
21
+ sandbox: {
22
+ autoAllowBashIfSandboxed: true
23
+ },
16
24
  permissions: {
17
25
  allow: [
18
- 'Bash', 'LS', 'Read', 'Agent', 'Write', 'Edit', 'MultiEdit',
19
- 'Glob', 'Grep', 'WebFetch', 'WebSearch', 'TodoWrite',
20
- 'NotebookRead', 'NotebookEdit'
26
+ 'Bash', 'LS', 'Read', 'Edit', 'Write', 'MultiEdit',
27
+ 'Agent', 'Glob', 'Grep', 'WebFetch', 'WebSearch',
28
+ 'TodoWrite', 'NotebookRead', 'NotebookEdit', 'mcp__*'
21
29
  ]
22
30
  }
23
31
  };
@@ -4,8 +4,8 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
 
6
6
  const CODEX_DEFAULTS = {
7
- approvalPolicy: 'on-request',
8
- sandboxMode: 'workspace-write',
7
+ approvalPolicy: 'never',
8
+ sandboxMode: 'danger-full-access',
9
9
  featureFlag: 'multi_agent',
10
10
  };
11
11