Nightshift: Plan, execute and review coding-agent work as files
Nightshift, a plugin for Claude Code, Codex, and Cursor, runs an agreed punch list unattended and files each item's evidence, duration, and token usage.
By Dillip Chowdary • Dec 01, 2026 • Source: github.com

At a glance
- Product
- Nightshift
- Plugin hosts
- Claude Code, Codex, and Cursor
- Operating systems
- macOS, Linux, and Windows
- Maintenance release
- v0.9.2, 11 items, PR #53
- Handoff result
- 45 hours, 67 commits, 57 issues
- AdaptTable ship
- v1.2.0, nine items, PR #75
In this post
Two paragraphs are outside the length limit, and one install line is still second person. I’ll correct those and restore the handoff line the table dropped.Nightshift is a plugin for Claude Code, Codex, and Cursor that turns an idea into a plan an agent can run on its own and leaves results a person can review, as described in github.com's report. It is a native plugin with no separate app, service, or API key. It runs on macOS, Linux, and Windows, in a Git repository or a plain folder for non-code work such as a research report.
This piece covers the plan room, punch list, receipts, three shipped shifts, and the commands that install, plan, run, and archive a shift. It is for people who already use Claude Code, Codex, or Cursor and want decisions and evidence stored as files. A second agent can resume the same branch from those files.
01Plan room, punch list, receipts
Before the first write, Nightshift brings the hard questions into the plan room. Approaches are compared, boundaries are set, and the evidence for each task is chosen. Decisions and a definition of done are recorded so the agent carries the agreed plan into execution.
The developer picks the start time, then steps away while the agent works the punch list until every item is checked off. Decisions do not block progress. The agent picks a default and records it in the parking lot for review.
Each item gets its own receipt, rather than a marathon chat. The receipt shows what was delivered, what was tried and rejected, and which checks ran, with evidence, duration, and token usage. Decisions come back with the default chosen and why.
02Self-build, handoff, and AdaptTable
Nightshift built Nightshift. The initial shift produced the clock-out gate, hooks, and commands, and the build record pairs the original punch list with the commits. A later Codex shift finished 11 maintenance items on one branch, one commit per item, and shipped in v0.9.2 as merged pull request #53.
Two agents worked one plan: the maintainer stopped Claude Code when its allowance ran out, and ten minutes later Cursor resumed on the same branch with the same punch list. That shift spanned 45 elapsed hours and, after review and further fixes, the maintainer merged 67 commits and closed 57 issues in pull request #353. A nine-item overnight punch list shipped inline editing and row grouping in AdaptTable v1.2.0 as pull request #75.
03Plugin install and hook review
Claude Code and Codex each add the orwa-mahmoud/nightshift marketplace and install the plugin id nightshift@nightshift. Cursor imports that same repository through Customize, Add, and From GitHub Repository, then installs Nightshift after Import. Codex also requires its hooks to be reviewed and trusted before they run.
In the Codex CLI the trust step is /hooks. In the Codex app it is the Review hooks button, the hook icon in the message box, or Settings, then Hooks. The other two hosts use their own marketplace install paths, with no separate app, service, or API key on any of them.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
- Claude Code marketplace /plugin marketplace add orwa-mahmoud/nightshift
- Claude Code install /plugin install nightshift@nightshift
- Codex marketplace codex plugin marketplace add orwa-mahmoud/nightshift
- Codex install codex plugin add nightshift@nightshift
- Trust Codex hooks /hooks, or the Review hooks button (hook icon in the message box) or Settings → Hooks
- Cursor import Customize → Add → From GitHub Repository, paste orwa-mahmoud/nightshift, select Import, install Nightshift
04Read-only plan room and item budgets
In Codex the developer types $ and selects $nightshift:setup or $nightshift:plan, opens the project, and runs /nightshift:setup to answer a few preference questions. /nightshift:plan continues a plan or names a new one, for a feature, a refactor, a bug, a whole backlog, or GitHub issues staged with /nightshift:import-issues. Code stays read-only in the room, so the agent reads code, tests, and history, explains what each approach buys, and writes punch list items only after agreement.
Each plan is its own file with its own contract and checks, so plans never mix, agreed items are written and edited in place, and decisions, rejected options, and open questions let a new day or closed tab resume. Nightshift then estimates working time and token usage from past receipts and can budget a stuck item in working time, tokens, or both, with a reason. The soft limit says finish the item, and the hard limit allows only a commit of work in progress, the receipt, and the next item.
- Which plan Continue a plan, or start a new one and name it.
- How to brainstorm Edge-case pass for the cases each item can meet, pre-mortem on how the plan could fail, ordering and risk check, or research on the open questions. Any or none, applied as each item takes shape. None means they do not return unless asked. Suggestions can be kept, edited, or dropped.
- Suggest evidence Screenshots at named widths for a layout change, before-and-after figures for a speed-up, or a sample request and the schema diff. A missing file can be hard-checked until it exists, reported only on the receipt, or not checked.
05Quitting time and morning receipts
/nightshift:start runs open punch-list items, or, if none are open, offers named plans and staged items and runs the pick, so several plans run one after another. List mode takes agreed items one by one, ends at the last tick, and treats a deadline as an optional cap. /nightshift:hunt takes a goal and the hours, works in complete units, and at quitting time finishes the unit in hand and starts no new one.
Ready-made shifts remove the need for a backlog: the developer picks the entries or lets Hunt choose, then reviews the shift or runs it, and uses /nightshift:quality to survey tests, accessibility, dependencies, and other quality debt for a fix now or a draft later. /nightshift:status shows the open item, deadline, parked decisions, snags, and whether the watchman is on duty. /nightshift:stop pauses with unfinished items left open, and /nightshift:doctor diagnoses the workspace and changes nothing.
The morning receipt shows the ending, what to inspect first, which decisions need attention, and working time, paused time, and tokens. Each item adds delivery, rejected tries, checks that ran, checks that could not run, and time and tokens session by session, taken from the host's own records, not the agent's estimate. /nightshift:archive stores that shift's receipts and evidence in its own folder, while open items and unanswered decisions stay in the live files.
| Shift kind | Entries |
|---|---|
| Open-ended | Coverage hunt, defect hunt, product evolution, your own objective |
| Finite | Dependency upgrades, vulnerability sweeps, flaky-test repair, accessibility repair, documentation drift, release readiness |
| Aim | How Nightshift handles it |
|---|---|
| Finish an agreed list | Punch list on disk survives compaction and new sessions. The clock-out gate sends the agent back if it stops with work still open. |
| Switch agents mid-shift | /nightshift:stop, then /nightshift:start, in any order across Claude Code, Codex, and Cursor. The new agent reads the punch list, receipts, parked decisions, snag log, and shift log, with nothing to re-explain. |
| Keep the agent inside set rules | Hooks deny commands, protected paths, secret patterns, or commits under the wrong identity, in every permission mode, fully unattended included. |
| Keep the checkout untouched | shift.isolation set to worktree gives the shift its own worktree and branch. Checkout, index, and uncommitted edits stay as left. |
| Recover an interrupted shift | A watchman outside the session resumes interrupted work. If Claude's API starts returning 500 errors overnight, it retries and resumes the shift when the service responds. The developer can stay asleep. It also handles crashes and stalls. |
Note: The developer chooses the evidence and judges the result: a layout screenshot and its interaction, or before-and-after measurements for a performance change. With check: block, normal clock-out waits until the required evidence passes its file checks.
Frequently asked questions
What is Nightshift?
Nightshift is a native plugin for Claude Code, Codex, and Cursor. It turns an idea into a plan an agent can run on its own and leaves a receipt per item with evidence, duration, and token usage. It needs no separate app, service, or API key, and it runs on macOS, Linux, and Windows in a Git repository or a plain folder.
How is Nightshift installed in Claude Code, Codex, and Cursor?
Claude Code runs /plugin marketplace add orwa-mahmoud/nightshift and /plugin install nightshift@nightshift. Codex runs codex plugin marketplace add orwa-mahmoud/nightshift and codex plugin add nightshift@nightshift, then hooks are trusted with /hooks or the Review hooks button. Cursor uses Customize, Add, From GitHub Repository, Import, and install from that marketplace.
What shipped in the Nightshift v0.9.2 maintenance shift?
A Codex shift completed 11 maintenance items on one branch, with one commit per item, and shipped in v0.9.2 as merged pull request #53. An earlier shift of Nightshift on itself produced the clock-out gate, hooks, and commands. A nine-item shift shipped inline editing and row grouping in AdaptTable v1.2.0 as pull request #75.
How does a shift move from Claude Code to Cursor?
Stop with /nightshift:stop and start with /nightshift:start on the other host. The new agent reads the punch list, receipts, parked decisions, snag log, and shift log. In one run the maintainer stopped Claude Code when its allowance ran out, Cursor resumed ten minutes later on the same branch, and the 45-hour shift ended as 67 commits and 57 closed issues in pull request #353.
What do the soft and hard item budgets do?
Nightshift estimates working time and token usage from past receipts and can offer a budget in working time, tokens, or both, with a reason. At the soft limit the agent is told to finish the item. At the hard limit it can only commit the work in progress, write the receipt, and move on.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement