Install
$ agentstack add skill-kissrosecicd-hub-agents-evolution-codex-cli-permissions-and-session-resume ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
codex-cli-permissions-and-session-resume
Use this skill when:
- the user asks whether Codex currently has full access
- the user mentions
/permissions,FullAccess, or similar access-mode wording - the user wants to continue a previous Codex dialog immediately
- the user asks how to use
codex resume - the user asks how
codex forkdiffers fromcodex resume - the user wants the latest session id from local Codex session files
Scope
This 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.
Access-mode reminders
- In the interactive Codex UI,
/permissionsis the fast check for the current access mode. - In the CLI help, the explicit full-open flag is
--dangerously-bypass-approvals-and-sandbox. --full-autois not the same thing. It still usesworkspace-write.resumeandforkaccept the same global execution flags as a normal interactive launch.- Prefer documented flags from
codex --helpover undocumented aliases.
Fast resume commands
Prefer these:
codex resume
codex resume --last
codex fork
codex fork --last
codex resume --dangerously-bypass-approvals-and-sandbox
codex resume --dangerously-bypass-approvals-and-sandbox --last
Important:
codex resumeofficially accepts a session UUID or thread namecodex forkofficially accepts a session UUID and creates a new branch of that prior sessioncodex resumealso accepts the same global execution flags such as--dangerously-bypass-approvals-and-sandbox- prefer the UUID, not the
.jsonlfilename - if the filename is
rollout-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
Session-file layout
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
Fastest way to find the latest session
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
How to extract the UUID fast
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
Practical rule
When the user wants to restore context in one second:
- check
/permissionsif access mode matters - prefer
codex resume --lastfor the newest prior session - if a specific session file is known, strip it down to the UUID and run
codex resume - use
${CODEX_HOME:-$HOME/.codex}/sessions/*/*/*/*.jsonlonly to discover or confirm the UUID, not to reread the whole transcript unless resume is impossible
When to read the session file directly
Reading the .jsonl itself is valid and useful when:
- you want the prior context without switching the live interactive session yet
- you want to summarize, search, or verify what happened before resuming
- you only know the filesystem path and want to recover the session UUID
- you need the last user or assistant turns immediately from disk
Preferred rule:
- fastest continuation of the same dialog ->
codex resumeorcodex resume --last - clean branch of the same prior dialog for alternative exploration ->
codex forkorcodex fork --last - same continuation but explicitly in full-open mode ->
codex resume --dangerously-bypass-approvals-and-sandboxorcodex resume --dangerously-bypass-approvals-and-sandbox --last - fastest inspection of the previous context from disk -> open the latest
sessions/.../*.jsonl
Resume vs fork vs parallelism
Use:
resumeto continue the same session and storylineforkto branch that session into a new line of work
Do not treat two simultaneous resume runs of the same session as a clean multi-owner workflow. If you need true parallel exploration, prefer:
forkfor alternative approaches- Codex subagents for bounded parallel analysis
- separate Codex processes in different branches or worktrees for parallel write-heavy implementation
Practical combined workflow
For 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-]+$'
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: kissrosecicd-hub
- Source: kissrosecicd-hub/agents-evolution
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.