A Coding Break With Codex: The Sandbox Flag I Needed Before It Felt Fast
Описание и применение
Codex стал быстрым и полезным, когда его область работы ограничена с помощью флагов sandbox и approval, особенно в монорепозиториях.
Задача
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