Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

A Coding Break With Codex: The Sandbox Flag I Needed Before It Felt Fast

说明与用途

在使用 sandbox 和 approval 标志限制 Codex 的工作范围后,Codex 在单体仓库中变得快速且有用。

问题

Codex’s responses became unfocused and noisy when launched from the root of a large monorepo, due to irrelevant files and unrestricted filesystem access.

结果

Codex became fast, focused, and safe when its operating boundary was deliberately set with sandbox and approval flags, especially in monorepo environments.

工作流

  • Install Codex globally with npm
  • Navigate to the target project directory
  • Run codex with --sandbox workspace-write and --ask-for-approval on-request flags
  • Remove generated artifacts from the working tree before inspection
  • Use Codex for small fixes, test exploration, and debugging

证据

The responses became less focused, and I initially blamed the model. The actual problem was my working directory and sandbox configuration.

来源

  • 记录日期: 2026-09-09T17:17:45.148Z