Use Codex CLI sandbox mode to try risky changes safely. Isolated experimentation with network disabled and directory restrictions.
/plugin marketplace add DNYoussef/context-cascade/plugin install dnyoussef-context-cascade@DNYoussef/context-cascadeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
ANTI-PATTERNS.mdREADME.mdexamples/example-1-major-refactor.mdBefore writing ANY code, you MUST check:
.claude/library/catalog.json.claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.mdD:\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) |
Kaynak dogrulama modu etkin.
Use Codex CLI's sandbox mode to experiment with risky changes in complete isolation. Network is disabled, only CWD is accessible, providing safe experimentation.
# Full sandbox mode (network disabled, CWD only)
./scripts/multi-model/codex-yolo.sh "Refactor auth system" task-id "." 10 sandbox
# Via delegate.sh
./scripts/multi-model/delegate.sh codex "Try experimental approach" --sandbox
# Direct Codex
bash -lc "codex --full-auto --sandbox true --network disabled exec 'Experiment with X'"
| Layer | Protection |
|---|---|
| Network | DISABLED - no external connections |
| Filesystem | CWD only - no parent access |
| OS-Level | Seatbelt (macOS) / Docker |
| Commands | Blocked: rm -rf, sudo, etc. |
User: "Refactor entire auth system to use new pattern"
Sandbox Process:
1. Clone relevant files to sandbox context
2. Codex implements new pattern
3. Run tests in sandbox
4. Evaluate results
5. If good: Apply to real codebase
Output:
- Experiment: Success
- Tests: 45/47 passing (2 need adjustment)
- Recommendation: Apply with minor fixes
User: "Try migrating from moment.js to dayjs"
Sandbox Process:
1. Install dayjs in sandbox
2. Replace moment calls
3. Run tests
4. Compare bundle size
Output:
- Migration: Feasible
- Breaking changes: 3 date format strings
- Bundle reduction: 65KB
- Recommendation: Proceed with migration
META-LOOP IMPLEMENT PHASE:
|
+---> High-risk change detected
| |
| +---> codex-safe-experiment
| | |
| | +---> Sandbox: Try change
| | +---> Evaluate: Success?
| | +---> If yes: Apply for real
| |
| +---> Continue to TEST phase
Results stored at:
multi-model/codex/experiment/{project}/{task_id}# Via router with experiment keywords
./scripts/multi-model/multi-model-router.sh "Try refactoring X approach"
# Direct sandbox mode
bash -lc "codex --sandbox workspace-write exec 'Experiment with X'"
NEVER:
ALWAYS:
| Experiment Result | Action |
|---|---|
| All tests pass | Apply changes |
| Minor failures | Fix then apply |
| Major failures | Discard, try different approach |
| Unexpected behavior | Investigate before deciding |
codex-iterative-fix: After experiment, for cleanupcodex-audit: Audit experimental changestesting-quality: Generate tests for experimentsllm-council: Decide on experimental approachesThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.