Rigel-Prometheus/auto-resume-for-codex
소개
Auto-resume your task after the usage reset, from a button built into the Codex window. 基于 Codex 窗口内悬浮窗,在预约额度重置后的自动接续任务。
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalauto-resume
English (US) · 简体中文
Project website · Downloads · Issues

A Ride On The "Gentle" Luminous Dragon, drawn by GPT Image
Leave a prompt for one of your Codex chats, and have it sent for you later: right after your usage limit resets, or at a time you pick.
Scope: it works only with Codex chats (sessions). ChatGPT workspace and document-style sessions aren't supported.
App languages: English, 简体中文, 日本語, and, needing proofreading, Español, Português (Brasil) and 한국어. If you speak one of these, corrections are welcome: the text is in desktop/ui/locales.
Independent project. Not affiliated with, endorsed by, or sponsored by OpenAI. Codex and ChatGPT are trademarks of OpenAI.
Why I built this
I kept running into Codex's usage limit in the middle of long tasks, often late at night. The only way to continue was to stay up until the limit reset, just to type "continue". Codex used to let you schedule a task for a single chat, but a recent update (26.1117.31558) removed that option. So I built a small tool that waits for the reset and hands the next prompt to Codex for me.
⚠️ How this was made: read before using
This project was built almost entirely by AI coding agents ("vibe coding"). The code was written, reviewed, tested and debugged by DeepSeek, Anthropic's Claude and Google's Gemini. I directed the work, set the rules and tested it; I did not write the code by hand.
If you'd rather not use software made this way, please don't use this tool.
What it does
It lives on your Codex window. A small pill sits on Codex itself, so you schedule from the chat you're already in: no separate app to switch to, no chat IDs to look up, no panel to dig out.
- Click the pill: the chat you're looking at is already chosen. Keep the ready-made prompt ("Continue the task from where you left off.") or write your own, pick when to send it, and click Queue. The pill then counts down to the next scheduled prompt.
- After reset (the default) sends the prompt once your usage window has reset, and shows you the actual reset time. You can also pick a time, or send now.
- It recognises which chat is open in Codex, so you rarely have to choose one. When it isn't sure, it asks.
- At the chosen time it hands the prompt to Codex with Codex's own
codex queuecommand. Codex runs the turn, in that chat, with that chat's own settings and permissions. - You can attach files and images to the prompt, as in Codex's own message box.
- You can add the chat's Codex skills to the prompt, shown as pills as in Codex.
- Everything stays on your computer. There's no account, server or telemetry.
Status: works on macOS and Windows 11, both tested on real machines. Waking a sleeping computer at the scheduled time isn't supported yet (see Limitations).
What you need
- The Codex desktop app, signed in with your ChatGPT account (an API-key login is refused).
- The Codex CLI, recent enough to have
codex queue.- macOS:
codexinstalled the usual way; the app finds it in common install locations. - Windows:
codex.exe. With an npm install, the app uses thecodex.exeinside the package rather than thecodex.cmdshim, which can't pass a multi-line prompt safely. - If it's somewhere unusual, set
AUTO_RESUME_CODEXto its full path.
- macOS:
Getting it
Download it from the Releases page. The builds aren't code-signed yet, so your system will warn you the first time (see the code signing policy).
- Windows: either the installer (
…-windows-x64-setup.exe: installs for your user only, no admin rights, with a Start menu entry and an uninstaller) or the portable zip (…-windows-x64-portable.zip: unzip anywhere and runauto-resume-desktop.exe). Both include aREADME.txt. When SmartScreen warns, choose More info → Run anyway. - macOS (Apple Silicon): open the
.dmgand drag Auto Resume to Applications. The first time you open it, macOS blocks it; go to System Settings → Privacy & Security and click Open Anyway. On an Intel Mac, build it from source. Then choose Grant Accessibility… from its menu-bar icon, or add the app under System Settings → Privacy & Security → Accessibility (called Device Control & Data Access on macOS 26/27). It uses that permission to see which chat is open.
Removing it:
- Windows, installed copy: uninstall from Settings → Apps. This also removes Open at login and the app's browser cache, and asks whether to delete your schedules and settings too.
- Windows, portable copy: quit it, run
clear_reg.cmdin its folder (removes Open at login), then delete the folder. To remove everything, also delete%LOCALAPPDATA%\auto-resume(schedules and settings) and%LOCALAPPDATA%\io.github.rigel-prometheus.auto-resume(browser cache). - macOS: choose Quit auto-resume and move the app to the Trash; macOS 13 and later remove its
login item with it (on macOS 12, untick Open at login first). Like most Mac apps, it leaves its
folders in your Library; to remove everything, also delete
~/Library/Application Support/auto-resume(schedules and settings),~/Library/WebKit/io.github.rigel-prometheus.auto-resumeand~/Library/Caches/io.github.rigel-prometheus.auto-resume(browser data).
Using it
- Open the chat you want to continue in Codex.
- Click the pill. The panel opens with that chat already chosen. If it's the wrong chat, click its name (▾) to pick another; the list shows each chat's folder and when it was last edited.
- Write the prompt. Make it something Codex can do without asking you anything (see below).
- Choose when: After reset (default), At time…, or Now.
- Click Queue (or ⌘↵ / Ctrl+↵).
A few more things:
- Editing: open the panel on a chat that already has a schedule and it opens for editing. + New adds another one for the same chat; Delete removes the open one. N scheduled at the bottom lists all of them.
- Unsent prompts: a prompt you closed the panel on without queueing (or a schedule you edited without updating) comes back when you open the panel on that chat again. It's kept only in the app's memory, never on disk, so quitting the app clears it.
- Attachments: the paperclip in the prompt box opens a drop box that stays in front while you drag
files over from Finder or Explorer (or use Browse…); you can also paste a screenshot. Click a
file to show it in Finder or Explorer, or an image to preview it. A file is read by Codex when the prompt runs; an image is sent with the prompt (see
--file/--imagein the command-line reference). - Skills: type
$in the prompt, or click the cube next to the paperclip, and pick one of the chat's skills: it shows as a pill. Where two skills have the same name, the list shows the folder each comes from; a pill whose name two skills share turns amber until you pick which one (click it). The prompt keeps skills as text Codex understands:$name, or[$name](path)for a shared name. The list is read again each time the panel opens, so a newly installed skill appears without restarting, and pills copied between this panel and Codex's message box paste back as pills. - Moving the pill: drag it anywhere on the Codex window. Marks on the window's edges show the corners and edges it can attach to; the longer blue one is where it attaches. It keeps that place as Codex moves or resizes. Keep it near the input box, for example. Reset position in the menu puts it back.
- The menu (menu-bar icon on macOS, notification-area icon on Windows) also has Appearance, Language (English, Español, Português, 日本語, 한국어, 简体中文), Open at login, Check for updates…, About (version and license) and Quit. Codex's own theme can't be read, so set Appearance to match it if needed.
Please keep in mind:
- Keep the app running. Prompts are only sent while it's running. Quitting it pauses sending; your schedules are kept and go out once it runs again.
- Keep Codex open, with that chat open since Codex last started. Codex only runs a queued prompt in a chat it currently has loaded. After Codex restarts (an update, a reboot), a waiting prompt stays in Codex's queue until you open that chat again; opening Codex alone isn't enough. This was measured and documented by codex-auto-resume-windows; see its "Please read this limitation first".
- Write prompts that need no answers or approvals. auto-resume can't see or answer Codex's questions or permission prompts; Codex's own window handles those.
- Try it on a throwaway chat first, with a harmless prompt like
Reply with exactly: test-ok. Queued prompts really run, with that chat's permissions.
How it stays safe
- It uses public Codex interfaces. It does not read existing conversation content, and it does
not modify existing turns, settings, approvals or message contents. For an existing chat it adds
only the scheduled user message to Codex's queue; Codex owns delivery and the resulting new turn.
Images use Codex's experimental queue API; that call is still only a queue insertion. It does not
call
turn/start, and it does not read Codex's internal files, settings or credentials. - To see which chat is open, it reads what Codex shows on screen through the operating system's accessibility interface (the one screen readers use). It only compares that with your chat names and keeps nothing but the chosen chat's ID; it never stores or logs message text.
- When it can't tell which chat is open (no match, two chats with the same name), it asks you instead of guessing.
- Each schedule is sent at most once. If a send may or may not have gone through, it's marked
unknownand never retried automatically.
Privacy
- All data stays local:
~/Library/Application Support/auto-resumeon macOS,%LOCALAPPDATA%\auto-resumeon Windows. Nothing is written into Codex's own folders. - No telemetry, and no network access of its own: the only network traffic is what the Codex CLI itself does. The one exception is Check for updates…, and only when you choose it: one request to GitHub's public API for this project's latest release (GitHub sees your IP address, as with any web request). Nothing checks on its own. If a newer version exists and you click Install, it downloads that release's installer from this project's GitHub releases, checks it against the checksum GitHub publishes (on macOS also that it's signed like the app you have), and installs it. To see what's in it before installing, click What's new for that release's page on GitHub. The Windows portable copy only offers the release page.
- A text-only prompt is passed to
codex queueas a command-line argument (it has no other input option), so while that command runs, other programs on your computer can see the prompt in the process list. Image schedules use the local app-server instead of argv. Text-only prompts are capped at 20,000 characters; image schedules use Codex's app-server limit.
Limitations
- It can't wake a sleeping computer. Its keep-awake option only stops an awake computer from going to sleep while it waits (and for 5 minutes after sending), and a closed laptop lid still sleeps. For the turn itself, turn on Codex's own keep-awake setting.
- Codex updates can change what's on screen. If chat recognition stops working after an update, you can still pick the chat yourself (see also Troubleshooting).
- Codex chats only. It can schedule only the chats the public Codex CLI lists. Other kinds of sessions in the ChatGPT app (for example workspace or document-style ones) don't appear in its chat list and can't be scheduled. That would need a public interface from OpenAI.
- No new-chat creation yet. It can only schedule an existing chat. Creating a brand-new chat automatically is pending: the experiments did not produce a reliable public path, so it is not part of this release.
- No code signing yet, on either platform, so your system warns you the first time (see Getting it).
FAQ
How do I make Codex continue automatically after my usage limit resets? Open the chat in the
Codex app, click the auto-resume pill on the Codex window, keep the ready-made prompt ("Continue the
task from where you left off.") or write your own, leave After reset selected and click Queue.
auto-resume sends it with Codex's own codex queue command as soon as the usage window resets.
Can I send a prompt to Codex at a specific time? Yes: choose At time… instead of After reset,
or use auto-resume schedule --thread <chat-id> --message "…" --at "2026-12-01 09:30".
Does Codex have to be open? Yes. Codex runs a queued prompt only in a chat it has loaded since it
last started, and auto-resume (the desktop app, or auto-resume run) has to be running at that time.
It can't wake a sleeping computer.
Does it read my Codex login or files? No. It never reads Codex's credentials, settings or internal files; it uses public Codex interfaces and never reads existing conversation content. See How it stays safe.
Does it work with the Codex CLI alone, or with ChatGPT chats? It schedules prompts for chats
(sessions) of the Codex desktop app, and needs the Codex CLI installed for codex queue. ChatGPT
workspace and document-style sessions aren't supported.
Which systems? macOS (Apple Silicon; Intel by building from source) and Windows 10/11.
Can an AI agent use it? Yes, through the command-line tool: see For AI agents.
Troubleshooting
- The pill doesn't appear: make sure Codex is the app in front, and on macOS that Auto Resume has
the Accessibility permission (Device Control & Data Access on macOS 26/27). The data folder (see
Privacy) has a short log,
desktop.log, of start-up and when the pill was shown or hidden; it has no chat names or prompts. - The wrong chat, or none, is recognised: click the chat name in the panel to pick it. To see what
went wrong, run
auto-resume detect(see Chat recognition). - A prompt wasn't sent: check that the app was running and Codex open at the time, and run
auto-resume list; the schedule states explain what happened.
For developers and testers
Building from source
You need Rust.
cargo build --release # the command-line tool
./desktop/scripts/make-dev-cert.sh # macOS, optional, one-time (see below)
./desktop/scripts/bundle-macos.sh # macOS: builds "dist/Auto Resume.app"
cargo build --release --manifest-path desktop/Cargo.toml # Windows: auto-resume-desktop.exe
Without the optional local certificate the macOS bundle is signed ad hoc, and macOS asks for the
Accessibility permission again after each rebuild. The build isn't notarized; the scripts use
APPLE_SIGNING_IDENTITY when a real Developer ID is available. Details: desktop/README.md.
Releasing
- Version: set it in one go with
./scripts/set-version.sh 0.2.0(bothCargo.tomlfiles and bothCargo.lockfiles; everything else reads it at build time). CI fails if they disagree. - Windows: each CI run builds the portable zip (
…-windows-x64-portable, withREADME.txtandLICENSE.txt) and the installer (…-windows-x64-setup.exe, downloaded as the plain file, not zipped) as workflow artifacts. Take release files from a run onmain: runs on other branches are test builds, named…-windows-x64-test-<commit>-…and showing "(test build )" after the version. - macOS:
./desktop/scripts/bundle-macos.sh, then./desktop/scripts/make-dmg-macos.sh. Sign every release with the same certificate: macOS keeps the Accessibility permission across updates, and the in-app update accepts a new app, only if it's signed like the installed one. Keep a backup of that certificate and its key. A user-installed app in/Applicationsis updated in place without an admin prompt (the app bundle is user-owned); only a non-writable bundle falls back to the release page. - In-app updates look for the release files by name (
…-windows-x64-setup.exe,…-macos-arm64.dmg) and need GitHub's checksum for each, which GitHub adds to every uploaded release file. Keep those names, and publish releases as full releases (drafts and pre-releases aren't offered). - Before publishing:
./scripts/check-release-source.sh v<version>checks the source archives GitHub will attach for personal data and secrets.
Contributing
Please use a coding agent for changes rather than editing by hand. The project was built that way,
and its code is organised for it: all operating-system code sits in one platform layer
(src/platform/), modules are small and focused, and the safety rules are explicit. Whatever you use,
keep the rules in How it stays safe: public Codex interfaces only, no reading
of existing conversation content or Codex internals, no modifying existing turns, settings or
approvals, no network access of the app's own, and the UI loads nothing remote.
Credits
Everyone whose work went into a release is listed here.
- @YanagionSabigi
- Windows, before the public release: the first port of the command-line tool, and the test rounds behind chat recognition and the chat list's search on Windows. Their go-ahead on Windows cleared the first public release.
- MCP references in the prompt (0.3.1).
- Windows: diagnosed the
0xC0000139startup crash (#4, fixed in 0.2.1) and wrote the desktop app's matching fix (0.3.1). - The requests behind skills and attachments in prompts (#2) and scheduled new sessions (#3).
Command-line reference
The command-line tool covers creating, listing and canceling schedules, chat detection and diagnostics. The desktop app adds the pill, editing schedules, the appearance and language settings, and opening at login.
# Send after the next usage reset (the 5-hour window; the weekly one only when it's the binding limit)
auto-resume schedule --thread <chat-id> --message "Continue the task." --after-reset
# Send at a local time, whatever the usage window
auto-resume schedule --thread <chat-id> --message "Continue the task." --at "2026-11-22 09:30"
# Send in N minutes (handy for testing)
auto-resume schedule --thread <chat-id> --message "Continue the task." --in-min 2
# Also keep an idle computer awake until it's sent (no admin rights)
auto-resume schedule --thread <chat-id> --message "Continue the task." --in-min 30 --keep-awake
# Attach files and images, as in the Codex app's message box (--file and --image repeat)
auto-resume schedule --thread <chat-id> --message "Review this." --after-reset --file spec.md --image screenshot.png
auto-resume run # the scheduler loop (the desktop app runs the same loop)
auto-resume list # schedules and their states
auto-resume log --limit 5 # recent sends, with Codex's queue ids
auto-resume cancel <id-prefix>
auto-resume run --once --dry-run
auto-resume doctor # read-only check: CLI, login, app, limits
auto-resume detect # which chat is open, and how it was found
auto-resume uninstall # remove Open at login (--all: also schedules and settings)
auto-resume about # version, license and project page
--threadtakes the chat's ID, not its name, because names can repeat.m1b-detect --expect-name '<name>'(a small test tool in the test builds) lists your chats with their IDs.--atacceptsYYYY-MM-DD HH:MM(local time) or RFC 3339. A fixed time never waits for a reset: if you're still limited then, Codex may refuse the turn.--fileworks like attaching a file in the Codex app: the prompt names the file with its full path, and Codex reads it when the prompt runs (so it sees the file as it is then).--imageembeds a PNG, JPEG, GIF or WebP image in the message; images over 5 MB are attached as files instead. Images use Codex's experimentalthread/queue/add(checked when you schedule), so a future Codex version could change it. A schedule with an image sends its text and file references through that same queue call; text-only and file-only schedules use the stablecodex queue. The image is kept with the schedule until it's sent, fails, becomes unknown, or is canceled, then removed from auto-resume's active data.- A skill is text in the prompt, as you would type it in Codex:
$name(for example--message '$wait-what Recheck the sign.'; single quotes keep the shell from expanding$). When two of the chat's skills share a name, write[$name](/full/path/to/SKILL.md)to say which, as the Codex app does when you pick one. A bare$namethat two skills share is ignored by Codex. - Running the app and
auto-resume runat the same time is safe: each schedule is claimed once. If the computer sleeps through a send time, the prompt goes out once, shortly after it wakes.
Schedule states: pending / waiting_reset (waiting), queued (handed to Codex; Codex runs it,
completion isn't tracked), failed (Codex refused it, e.g. the chat doesn't exist; nothing was
queued), unknown (timed out or interrupted mid-send; may or may not be queued, so check the chat;
it's never retried), refused (not a ChatGPT login), canceled.
Several schedules due at once are spread out: earliest created first, different chats
stagger_minutes apart (default 2), the same chat back to back (Codex runs them in order). After-reset
schedules re-check the limit before each send, and go back to waiting if the new window is already used
up. list shows each one's slot.
auto-resume config # list settings
auto-resume config set stagger-minutes 2
auto-resume config set stagger-minutes 0 # no spreading; prints the risks
Finding the Codex CLI. Apps opened from Finder don't get your shell's PATH, so besides PATH
and AUTO_RESUME_CODEX the macOS lookup checks ~/.local/bin (the standalone installer), Homebrew,
MacPorts, Nix, npm/pnpm/bun, Volta, asdf, mise, fnm, nvm and ~/bin. Codex's own folder is never
searched.
For AI agents
If a user asks you (an AI agent) to have Codex continue a task later, for example after their usage limit resets, auto-resume's command-line tool can schedule it. Summary for tools: llms.txt.
- Check it's installed and working:
auto-resume doctor(Windows:auto-resume.exein the program folder; macOS: the command-line tool comes from building from source, the app doesn't include it).codex queue: supportedandaccount type: chatgptmust appear. - Find the chat's ID (never guess it, names can repeat): with the chat open in the Codex app,
auto-resume detectprintsopen chat: <name> (<id>). - Schedule:
auto-resume schedule --thread <id> --message "<prompt>" --after-reset, or--at "YYYY-MM-DD HH:MM"/--in-min N; add--file <path>/--image <path>to attach. A skill is$namein the message (single-quoted). The prompt must be something Codex can do without asking the user anything; it runs with the chat's own settings and permissions. - Check and undo:
auto-resume list,auto-resume cancel <id-prefix>.
Requirements at send time: the desktop app (or auto-resume run) is running, the Codex app is open
and has loaded that chat since it last started, and the computer is awake. Only schedule prompts the
user asked for, in chats they named.
Chat recognition
- macOS: the window title names the chat, so that's tried first. If it can't decide (the New-chat screen's title is just the app name), it reads the chat title at the top of the Codex window.
- Windows: the window title is always the app name, so only the chat title at the top of the window is used, through Windows UI Automation (no permission needed). The first read after Codex comes to the front can take up to about a second.
Check it, for example after a Codex update:
auto-resume detect # route, match quality, the open chat
auto-resume detect --explain # what it looked at, by type and position (no text shown)
Adjusting it after a Codex update. Where it looks and how it pulls the chat name out of the text are set by a small profile, so you don't have to wait for a new release:
auto-resume detect --print-default-profile > detection.toml # edit it
auto-resume detect --profile detection.toml # try it
Then copy it to detection.toml in the data folder. Patterns need a name group, for example
'^.+ / (?P<name>.+)$'. Whatever a profile extracts is still matched against your own chat list, so
it can't send a prompt anywhere else; an invalid profile is ignored, and doctor says why.
auto-resume never downloads profiles; share them as text.
Testing safely
Tests send real prompts to a real Codex chat, which runs them with its own settings and permissions. Never point a test at a chat you care about.
- Make a disposable chat. In Codex, start a new chat in a throwaway project folder with nothing important in it, and give it a distinctive name.
- Use short, harmless prompts, like
Reply with exactly: test-ok. - Keep test schedules apart from real ones by setting
AUTO_RESUME_HOMEto a throwaway folder, and userun --dry-runto see what would be sent without sending it.
Windows testers: please follow TESTING-WINDOWS.md.
Code signing policy
Windows releases are to be signed through SignPath's program for open-source projects: free code signing provided by SignPath.io, certificate by SignPath Foundation. This is planned, not yet in place: until SignPath approves the project, Windows builds are unsigned.
- What gets signed: only files built by this repository's GitHub Actions workflow from its own source (the programs, the installer and its uninstaller). Nothing built elsewhere, and nothing from third parties.
- Team: the repository owner (Rigel-Prometheus) is the author, reviews every change from anyone else before it's merged, and approves each signing request by hand.
- Privacy: this program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it. The prompts you schedule go to OpenAI through your own Codex CLI, and Check for updates… asks GitHub for the latest release, both only when you ask (see Privacy).
License
MIT. See LICENSE.
관련 프로젝트 살펴보기
불러오는 중…