Run Claude, Codex & Gemini overnight โ€” until your tests pass.

When one agent hits its usage limit at 2 AM, another takes over with a handoff brief. Run one task from your terminal right now with zero setup, or run the daemon to drive every project from your phone.

uvx nightmux run "fix the failing tests" --until "npm test"

Zero config ยท needs only tmux and an agent CLI ยท see what your agents cost first: uvx nightmux wrapped

โ˜… Star on GitHub Phone & daemon setup โ–ถ Live office demo

๐Ÿ”Š Unmute for the soundtrack ยท 48 seconds

Why vibe coders run it

๐ŸŒ™A limit no longer ends the night

Claude Code runs out of its 5-hour window at 2:14 AM. nightmux keeps your queue and the cut-off turn, and sends them back the moment the window resets. Can't wait? !failover codex hands the work over now.

๐Ÿ“ฑYour phone is the terminal

One Telegram topic (or dashboard chat) per project, one tmux session behind it. Menus become buttons, so a "yes" is one tap from bed. Photos, files and voice notes go straight to the agent.

โœ…It keeps going until the tests pass

!goal npm test runs your check after every turn and sends the failures back. It stops and asks when it goes in circles.

๐Ÿ—“Plan the whole night

!shift takes one prompt per line and runs them in order. !at 03:00 and !every 4h start work while you sleep.

๐ŸRace two agents, keep the best

!race claude,codex runs the same task in two worktrees. Pick the winner with one tap.

โ˜€๏ธWake up to a briefing

What got done overnight, which PRs are ready, which errors came in, and a GIF of the night.

๐Ÿ’ธFewer tokens spent

Live context %, the limit windows, auto-compact, a fresh session per task, a prompt coach that catches vague prompts, and !stats says what to change.

๐Ÿ”’Yours, entirely

Python standard library only, zero dependencies, on your machine with your keys. Nothing is exposed by default. MIT licensed.

Every agent you already use

One topic, a bench of agents. Switch with !codex, ask one without switching with @agy, hand a stuck task to another with !failover.

Claude CodeCodexGemini CLIagyopencodeCursorAmpGooseQwen Codeaider

The night shift, live

The pixel-art office on the dashboard shows every agent at its desk. Here is a made-up night: claude hits its limit, codex takes over, agy asks and gets a yes, claude is back at 04:11.

The pixel-art office: claude hits its limit at 02:14, codex takes over, agy asks and gets a yes from the phone, claude comes back at 04:11

Open the live demo โ†’

Install

curl -fsSL https://raw.githubusercontent.com/mmr710/nightmux/main/install.sh | sh

Stop babysitting your agents.

Let them work the night shift.

โ˜… Star nightmux on GitHub