/claude-leverage:codex-sandbox [target-dir] [--profile dev|prod|custom] [--noninteractive]from claude-leverage
Guides setting up Codex CLI sandbox permissions per project via .codex/config.toml with dev/prod/custom profiles. Idempotent via markers for safe updates.
Ships in claude-leverage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Codex CLI runs each agent inside a sandbox with a configurable
permission model (filesystem, network, dangerous commands). The
defaults are conservative; per-project overrides live in
.codex/config.toml at the project root.
This skill asks 3–5 questions, recommends a profile, and writes the file. Re-running on an already-configured project detects the managed block (marker comments) and offers update-in-place.
.codex/config.tomlThe skill writes only the policy-relevant sections (and leaves room for the user to add unrelated config below):
# <!-- claude-leverage:codex-sandbox START -->
# Managed by /codex-sandbox. Edit between markers and re-run the skill
# to update; do not delete the markers.
[project_doc]
max_bytes = 32768 # explicit; matches Codex default
[sandbox]
mode = "<workspace-write | read-only | full>"
[approval]
mode = "<on-request | on-failure | never>"
# <!-- claude-leverage:codex-sandbox END -->
| Profile | Sandbox | Approval | Use for |
|---|---|---|---|
dev | workspace-write | on-request | Local development. Agent can write inside the project but asks before risky actions (network, package install, shell commands outside cwd). |
prod | read-only | never | Production / CI runs. Agent can only read; any write requires running outside the sandbox. |
custom | (asks) | (asks) | Anything else; skill walks you through each field. |
There is deliberately no
stagingprofile: Codex config exposes no audit-log field, so a "staging" tier would differ fromdev/prodin name only. For CI, usedev(keeps approvals) orprod(read-only sandbox); pipe Codex's stderr to your log aggregator if you need an audit trail.
Field names below are what Codex currently documents. If the spec
evolves, this skill will need a refresh — /stack-check does not yet
verify Codex spec freshness (v1.1 candidate).
Resolve target dir. Default cwd. If $ARGUMENTS has a path,
use that. Verify it's a git repo or ask "this isn't a git repo;
proceed anyway?".
Detect existing config. If .codex/config.toml exists:
.codex/config.toml
exists; prepend a managed block above it, replace, or skip?".Choose profile (unless --profile <name>):
Pick a profile:
1. dev — workspace-write, on-request approvals (recommended for local)
2. prod — read-only sandbox, no approvals (CI / production)
3. custom — answer each question individually
Unless --noninteractive, wait for a choice. With
--noninteractive and no --profile, default to dev.
For custom, walk the user through:
project_doc.max_bytes: keep default 32768 or set higher
(warns this exceeds Codex's silent-drop cap if user picks higher).Write the managed block.
.codex/config.toml exists: create file with managed
block as the only content.Edit (markers stay byte-identical).Report. Print the resolved config + a one-line summary.
Suggest the user runs codex --version or starts a fresh Codex
session to pick up the change.
read-only without explicit
acknowledgement. If the user picks full, surface a one-line
reminder: "full sandbox lets the agent do anything in the
filesystem; only use for trusted scripts."/init-repo — protect against random-dir foot-guns.--profile dev|prod|custom — skip the picker. Default is dev.--noninteractive — confirm nothing, use profile (default dev).--dry-run — print what would be written, write nothing.~/.codex/config.toml (global). Global Codex config
is a user-level decision; this skill only writes the per-project
.codex/config.toml. For global, edit by hand.~/.codex/hooks.json or ~/.codex/AGENTS.md. Those are
owned by scripts/install-codex.sh (and its uninstall path).npm i -g @openai/codex); this skill just configures it.If you invoke /codex-sandbox from a Claude Code session, the skill
will note up front:
This skill writes
.codex/config.toml, which only affects how Codex CLI behaves in this project. Claude Code does not read Codex config; your Claude Code experience is unchanged.
The skill still runs (it's a file-writer; the file just happens to be Codex-relevant). This is useful when setting up a fresh project in Claude Code that you also plan to work on from Codex.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
codex-sandbox, sandbox-config, codex-cli, permissions, profiles
16 skills in this plugin
/adr-newUSE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in `docs/adr/`, asks for context + decision + alternatives, updates the index. Immutable status once accepted. See `docs/adr/README.md` for the convention; full Do/Don't list in this SKILL body.
/arch-mapUSE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes `architecture.yml` at repo root — machine-readable module metadata (path / role / stability / public_surface / depends_on / paired_with / owners). Hand-curated; the skill drafts, the user confirms. See ADR 0005 for why this file lives at root and why YAML over JSON.
/conventions-initUSE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts `conventions.yml` at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules block. Idempotent — never overwrites a populated file; re-running prints suggested additions for manual merge. Read-only on code; never invents house rules. After writing, run /refresh-context-map so the hook picks it up.
npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverageOther plugins' skills for the same job