.agents/skills/codex-cli-permissions-and-session-resume/SKILL.md
Use when the user asks how to check Codex access mode, continue the previous dialog instantly, use `codex resume`, or recover the latest session id from local Codex session files without rereading old chats.
npx skillsauth add kissrosecicd-hub/agents-evolution codex-cli-permissions-and-session-resumeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
/permissions, FullAccess, or similar access-mode wordingcodex resumecodex fork differs from codex resumeThis is a global Codex workflow, not a project-local one.
It belongs in ${CODEX_HOME:-$HOME/.codex}/skills/ because the commands and session layout are reusable across repos.
/permissions is the fast check for the current access mode.--dangerously-bypass-approvals-and-sandbox.--full-auto is not the same thing. It still uses workspace-write.resume and fork accept the same global execution flags as a normal interactive launch.codex --help over undocumented aliases.Prefer these:
codex resume <SESSION_UUID>
codex resume --last
codex fork <SESSION_UUID>
codex fork --last
codex resume --dangerously-bypass-approvals-and-sandbox <SESSION_UUID>
codex resume --dangerously-bypass-approvals-and-sandbox --last
Important:
codex resume officially accepts a session UUID or thread namecodex fork officially accepts a session UUID and creates a new branch of that prior sessioncodex resume also accepts the same global execution flags such as --dangerously-bypass-approvals-and-sandbox.jsonl filenamerollout-2026-03-21T22-54-32-019d122d-9c09-7572-addf-ee59fab48e1b.jsonl, the preferred resume command is:codex resume 019d122d-9c09-7572-addf-ee59fab48e1b
If you want the resumed session to stay in full-open style, use:
codex resume --dangerously-bypass-approvals-and-sandbox 019d122d-9c09-7572-addf-ee59fab48e1b
If you want a new branch of thought instead of continuing the same storyline, use:
codex fork 019d122d-9c09-7572-addf-ee59fab48e1b
codex fork --last
Codex session transcripts live under:
${CODEX_HOME:-$HOME/.codex}/sessions/YYYY/MM/DD/*.jsonl
Example:
${CODEX_HOME:-$HOME/.codex}/sessions/2026/03/21/rollout-2026-03-21T22-54-32-019d122d-9c09-7572-addf-ee59fab48e1b.jsonl
Do not manually descend year -> month -> day unless needed. Prefer timestamp sorting:
CODEX_HOME_DIR="${CODEX_HOME:-$HOME/.codex}"
ls -1t "$CODEX_HOME_DIR"/sessions/*/*/*/*.jsonl 2>/dev/null | head -1
To list several recent sessions:
CODEX_HOME_DIR="${CODEX_HOME:-$HOME/.codex}"
ls -1t "$CODEX_HOME_DIR"/sessions/*/*/*/*.jsonl 2>/dev/null | head -10
From the latest path, take the trailing UUID before .jsonl.
Example:
rollout-2026-03-21T22-54-32-019d122d-9c09-7572-addf-ee59fab48e1b.jsonl
UUID:
019d122d-9c09-7572-addf-ee59fab48e1b
Then resume with:
codex resume 019d122d-9c09-7572-addf-ee59fab48e1b
When the user wants to restore context in one second:
/permissions if access mode matterscodex resume --last for the newest prior sessioncodex resume <UUID>${CODEX_HOME:-$HOME/.codex}/sessions/*/*/*/*.jsonl only to discover or confirm the UUID, not to reread the whole transcript unless resume is impossibleReading the .jsonl itself is valid and useful when:
Preferred rule:
codex resume <UUID> or codex resume --lastcodex fork <UUID> or codex fork --lastcodex resume --dangerously-bypass-approvals-and-sandbox <UUID> or codex resume --dangerously-bypass-approvals-and-sandbox --lastsessions/.../*.jsonlUse:
resume to continue the same session and storylinefork to branch that session into a new line of workDo not treat two simultaneous resume runs of the same session as a clean multi-owner workflow.
If you need true parallel exploration, prefer:
fork for alternative approachesFor the newest prior conversation:
CODEX_HOME_DIR="${CODEX_HOME:-$HOME/.codex}"
latest=$(ls -1t "$CODEX_HOME_DIR"/sessions/*/*/*/*.jsonl 2>/dev/null | head -1)
printf '%s\n' "$latest"
If you want to inspect the file first:
tail -n 80 "$latest"
If you want to continue it directly:
codex resume --last
If you want to continue it directly in full-open mode:
codex resume --dangerously-bypass-approvals-and-sandbox --last
If you need the UUID from the filename:
basename "$latest" .jsonl | grep -oE '[0-9a-f]{8,}-[0-9a-f-]+$'
tools
KISS reference skill for v2rayA on Arch/Ubuntu/Fedora with TUN, RoutingA, DoH DNS and Outline key import.
testing
Identifies dependencies at heightened risk of exploitation or takeover. Use when assessing supply chain attack surface, evaluating dependency health, or scoping security engagements.
development
Run Semgrep static analysis scan on a codebase using parallel subagents. Supports two scan modes — "run all" (full ruleset coverage) and "important only" (high-confidence security vulnerabilities). Automatically detects and uses Semgrep Pro for cross-file taint analysis when available. Use when asked to scan code for vulnerabilities, run a security audit with Semgrep, find bugs, or perform static analysis. Spawns parallel workers for multi-language codebases.
development
Identifies error-prone APIs, dangerous configurations, and footgun designs that enable security mistakes. Use when reviewing API designs, configuration schemas, cryptographic library ergonomics, or evaluating whether code follows 'secure by default' and 'pit of success' principles. Triggers: footgun, misuse-resistant, secure defaults, API usability, dangerous configuration.