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 +37 -14
- package/bin/adapters/claude.js +12 -4
- package/bin/adapters/codex.js +2 -2
- package/config/AGENTS.md +288 -332
- package/config/CLAUDE.md +124 -31
- package/config/codex-config.example.toml +9 -5
- package/config/settings.example.json +13 -4
- package/output-styles/abyss-cultivator.md +166 -303
- package/package.json +1 -1
- package/skills/domains/security/SKILL.md +30 -12
- package/skills/domains/security/red-team.md +0 -1
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", "
|
|
174
|
-
"Glob", "Grep", "WebFetch", "WebSearch",
|
|
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`)时会写入以下
|
|
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
|
-
|
|
197
|
-
|
|
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
|
-
-
|
|
218
|
-
-
|
|
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
|
-
-
|
|
226
|
-
- 建议升级后执行一次 `codex --help`,或用 `codex -p
|
|
248
|
+
- 若你本地已有旧配置,安装器不会强制覆盖;会自动补齐默认项、清理 removed feature、迁移 deprecated `web_search_*` 到 `[tools].web_search`
|
|
249
|
+
- 建议升级后执行一次 `codex --help`,或用 `codex -p safe --help` 校验 profile 可见性
|
|
227
250
|
|
|
228
251
|
---
|
|
229
252
|
|
package/bin/adapters/claude.js
CHANGED
|
@@ -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', '
|
|
19
|
-
'Glob', 'Grep', 'WebFetch', 'WebSearch',
|
|
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
|
};
|
package/bin/adapters/codex.js
CHANGED