Loading...
Loading...
Compare original and translation side by side
.claude/library/catalog.json.claude/library/catalog.json.claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md.claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.mdD:\Projects\*D:\Projects\*| Match | Action |
|---|---|
| Library >90% | REUSE directly |
| Library 70-90% | ADAPT minimally |
| Pattern exists | FOLLOW pattern |
| In project | EXTRACT |
| No match | BUILD (add to library after) |
| 匹配度 | 操作 |
|---|---|
| 库匹配度>90% | 直接复用 |
| 库匹配度70-90% | 最小程度适配 |
| 存在对应模式 | 遵循模式 |
| 已在项目中存在 | 提取使用 |
| 无匹配项 | 构建完成后添加至库中 |
undefinedundefinedundefinedundefinedcodex --full-auto --sandbox true --network disabled "Your task"codex --full-auto --sandbox true --network disabled "Your task"undefinedundefined| Layer | Protection |
|---|---|
| Network | DISABLED - no external connections |
| Filesystem | CWD only - no parent access |
| OS-Level | Seatbelt (macOS) / Docker |
| Process | Subprocess jail with limits |
| Commands | Blocked: rm -rf, sudo, etc. |
| 层级 | 防护能力 |
|---|---|
| 网络层 | 禁用网络 - 无法建立外部连接 |
| 文件系统层 | 仅允许访问当前工作目录 - 无法访问上级目录 |
| 系统层 | 基于Seatbelt(macOS)/ Docker实现 |
| 进程层 | 带资源限制的子进程沙箱 |
| 命令层 | 禁用危险命令:rm -rf、sudo等 |
// 1. Run risky refactoring in sandbox
const result = await codexSandbox("Refactor entire auth system");
// 2. If successful, apply to real codebase
if (result.tests_pass) {
Task("Coder", "Apply sandboxed changes to main", "coder");
}// 1. 在沙箱中运行高风险重构任务
const result = await codexSandbox("Refactor entire auth system");
// 2. 若执行成功,将变更应用至真实代码库
if (result.tests_pass) {
Task("Coder", "Apply sandboxed changes to main", "coder");
}multi-model/codex/sandbox/{session_id}multi-model/codex/sandbox/{session_id}