Autonomous Codex run-to-completion workflow for low quota/cota situations. Use when the user asks for an uninterrupted agent run, says "nao me peca confirmac...
Coding
Codex Native Scheduler
Try itSchedule unattended Codex CLI jobs natively
What it does
Schedule, inspect, retry, pause, resume, stop, and decommission unattended Codex CLI jobs through macOS launchd, Linux systemd user timers, or Windows Task Scheduler. Use when the user wants Codex to run later or recur without a resident daemon, or needs to manage jobs created by codex-schedule.
The skill document
Codex Native Scheduler
Use the bundled scripts/codex-schedule CLI. It stores private state under
$CODEX_HOME/codex-native-scheduler and registers only the native backend for
the current platform.
Workflow
-
Run
scripts/codex-schedule doctorbefore the first scheduled job on a host. -
Confirm the intended working directory, schedule, and whether the prompt may write files.
-
Prefer
--workspace worktreefor write-capable recurring jobs. Direct jobs can conflict with other jobs using the same directory. -
Use exactly one prompt source and exactly one schedule:
scripts/codex-schedule create \ --name weekly-review \ --cwd "$PWD" \ --weekly-at mon@09:30 \ --workspace worktree \ --prompt-file ./weekly-review.md -
Inspect the returned job and native status with
status. Userun-nowonly when the user explicitly wants an immediate manual run. -
Use
runsandrun-showfor evidence. Raw JSONL, stderr, final output, and snapshots live in the reported run directory.
Configuration
Pass a Codex profile with --profile. Pass any Codex override repeatedly with
-c key=value. Do not invent another permission acknowledgement or filter:
Codex receives the values through codex exec --strict-config and enforces its
own valid keys, authentication, approval, sandbox, and organization policies.
new_each_run is the default session mode. Use resume_fixed only when the
task intentionally needs continuity; it forces overlap policy skip. Changing
cwd or workspace mode for a fixed session requires update --reset-session.
To continue an existing Codex session, create a direct resume_fixed job with
--session-id SESSION_UUID; its --cwd should be the session's working
directory.
Seeded sessions do not inherit the scheduler's default profile and reject
--profile and -c so the job cannot override the session's model settings.
Profile and Codex overrides remain locked until update --reset-session
starts a new session generation.
Operations
pause JOBunregisters future wakes and leaves an active run alone.resume JOBregisters future wakes again.stop RUNstops one active run.retry RUNcreates a linked manual run and does not increment schedule count.prune [JOB] --dry-runpreviews retention cleanup.delete JOB --yespermanently deletes job state.decommissionunregisters every job and preserves state before uninstalling.purge --yesremoves state only after decommissioning.
Never enable Linux linger, edit Codex configuration, commit/merge/push a worktree, or delete a dirty worktree on the user's behalf.
Read references/semantics.md when exact count, catch-up, DST, retry, overlap, session, or retention behavior matters.
Related skills
Async Codex jobs with receipts, artifacts, and workdir control
Use this skill when the user wants to inspect, search, export, verify, clean up, delete, restore, or purge local Codex sessions stored under a Codex root suc...
Launch unpacked Codex Desktop builds with debug ports and optional SSH host autostart using launch_codex_unpacked.sh. Use when asked to run Codex from extrac...
Export a Codex session JSONL from ~/.codex/sessions into a clean Markdown transcript in ~/Documents/Exports. Use when the user wants to export, save, or conv...
Export a Codex CLI or Codex Desktop (App) session to Markdown, HTML, or Obsidian notes. Use when the user asks to export, save, share, or review a past chat, session, or transcript. Supports --brief, --redact, --since/--until, --grep, --append (incremental), --interactive (message picker), --sessions (merge), --watch (auto-incremental), and --list. Works with both Codex CLI and Codex Desktop app sessions.