Plan · run · review long coding work

Give the agent the night.
Get back a reviewable morning.

Nightshift carries a coding agent from plan to review. Design the work with the agent in a plan room, run it as a shift against a durable punch list and a clock-out gate, and come back to per-item receipts with the evidence you asked for, what each item cost, and what still needs you.

  • MIT licensed
  • Local-first state
  • macOS · Linux · Windows
SHIFT 04 · 02:17 AM LIVE

Tonight’s contract

Release hardening

2/4
  1. ✓Repair the flaky release testcommitted · verified
  2. ✓Harden the recovery pathcommitted · verified
  3. 3Run the project gatesrunning checks now
  4. 4Leave the morning handoffwaiting in order

START WITH THE PROBLEM

What do you need the agent to finish?

01Plan the work firstExplore the code, weigh options, and build nothing yet.02Finish a task listDefine outcomes, checks, and a clear end.03Run for hoursPrepare the host, machine, budget, and review path.04Review the resultsInspect changes, evidence, decisions, and open items.

INSTALL NIGHTSHIFT

One plugin.
Three native hosts.

Install the full plugin for Cursor, Codex, or Claude Code from its open-source marketplace.

Install from GitHub ↗MIT licensed · no API key · no separate server

WHY NIGHTSHIFT

The working agreement lives outside the conversation.

A prompt can fade. A plan record, punch list, gate, decision log, and deadline stay inspectable.

01

Plan room

Explore the code with the agent, run a pre-mortem, an edge-case pass and an ordering check, and size the plan from past receipts. Nothing is built until you leave.

02

Persistent contract

Open work survives compaction, restarts, and handoffs because the authoritative list stays in your project, and the gate refuses an early clock-out.

03

Evidence per item

Ask for screenshots, benchmarks, or sample responses per item, with an optional file map in each receipt. You decide whether missing evidence holds the clock-out.

04

Item budgets

Soft and hard limits per item in working time, tokens, or both. A hard limit turns the agent to wrap-up and closes the item as stopped.

05

Mechanical boundaries

Opt-in guards cover sudo, containers, global installs, daemons, and logins. Hooks enforce the command, path, and identity rules you configure, alongside the shift’s stop rules.

06

Make it yours

Every setting, template, and catalog entry on one screen, plus your own evidence kinds, gate stacks, edge-case packs, and ready shifts.

FROM PLAN TO REVIEW

Plan it. Run it.
Review the evidence.

Nightshift does not replace your coding host. It gives the host a durable operating contract for the whole cycle and works one approved unit at a time.

Explore the complete lifecycle →
  1. 01

    Plan

    Design the work with the agent in the plan room, or let Hunt compose a shift from the ready catalog. Approved items become the contract: outcomes, verification, evidence, and budgets.

  2. 02

    Run one item at a time

    Implement fully, verify immediately, commit locally, write the receipt, then tick. Decisions that need you are parked with a reversible default.

  3. 03

    Stay on the contract

    The gate refuses an early clock-out, budgets bound each item, and a watchman recovers a session that dies mid-shift.

  4. 04

    Review and continue

    Read the morning receipt, each item’s evidence and cost, then archive the shift. Open work and decisions stay live for the next one.

WATCH ONE SHIFT

The gate refuses an early clock-out.

A real session, unedited apart from pacing: three items, one commit per item — and midway the agent declares itself finished with two boxes still open. The gate hands back the contract; it clocks out only once the list is clear.

READY-MADE CODING SHIFTS

Search the problem.
Start from a bounded contract.

Browse every ready shift →
FINITE SHIFT

Finish the todo list

Turn approved work into ordered outcomes with one local commit and gate per item.

Build the contract →
OPEN-ENDED

Evolve the product

Research the product, rank evidence-backed opportunities, and ship the strongest complete work within the clock.

See product evolution →
QUALITY

Clear quality debt

Survey tests, code, accessibility, contracts, documentation, dependencies, and security.

Open the quality guide →
RECOVERY

Revive after API Error 500

Diagnose a service error, check recovery evidence, and keep the approved list available for an attended restart if needed.

See how revival works →
TESTING

Increase test coverage overnight

Use Cursor, Codex, or Claude Code to add behavior-protecting tests without padding a percentage.

Open the coverage shift →
CONTINUITY

Keep Codex on task after compaction

Preserve the current phase, rejected paths, next action, and verification outside conversation history.

Preserve the checkpoint →
AUTOMATIC HUNT

Let Nightshift choose the work

Inspect the project, rank applicable work by evidence and value, and fill a bounded shift without inventing a backlog.

See automatic selection →
SCHEDULE

Start the shift at 04:05

Preflight the queued work and permissions, then print the launchd, cron, systemd, or Task Scheduler entry. It registers nothing itself.

Schedule a shift →
COST

Know what each item cost

The runtime measures tokens and time per item from the host’s own records at the tick. Nothing is estimated, and unavailable is never written as zero.

Read the receipts →
ARTIFACT WORK

Run a shift without Git

Research sources, audit SEO, or write documentation in a persistent folder with local receipts instead of commits.

Explore non-Git shifts →

REAL RUNS, NOT PROMISES

A 45-hour contract.
Six roadmap phases.
One reviewable handoff.

The real runs library follows the work from punch list to a human-reviewed 67-commit pull request covering 57 closed issues.

Read the real runs →
45h

elapsed contract continuity

67

reviewable commits

57

issues closed

6

roadmap phases

THE SHORT ANSWERS

Before you leave an agent with the night.

Read every answer →
What does Nightshift actually do?

It carries long coding work in Cursor, Codex, and Claude Code from plan to review: a plan room to design the work, a durable punch list with a clock-out gate, per-item evidence and budgets, recovery after crashes, and a receipt for every item. Every setting, gate stack, evidence kind, and ready shift can be changed or extended from your own project.

Does every shift need a Git repository?

No. Artifact mode supports compatible research, documentation, SEO, and writing shifts in persistent folders, leaving local receipts instead of commits.

Does it push or merge code?

Not by default. Nightshift leaves local commits for owner review unless the shift contract explicitly authorizes an external action.

Does the gate prove the code is correct?

No. The gate prevents approved work from being quietly abandoned. Item definitions, project checks, and human review prove quality.

Should my first shift be unattended?

No. Run one small task attended so you can verify permissions, gates, stop behavior, and recovery in your exact environment.

THE FIRST SHIFT CAN BE SMALL

One task. One gate.
One reviewable morning.

Open GitHubCursor install steps ↗Install from OpenAI ↗