SuperAPIAI Directory

nightshift

github.com · AI agents

Nightshift is a native plugin for Claude Code, Codex, and Cursor that turns ideas into plans agents can execute autonomously and produces reviewable results. It supports brainstorming in a planning room, comparing options, setting boundaries and evidence requirements, then running as autonomous shifts with automatic recovery, generating a receipt for each item that shows what changed, which checks ran, and what needs attention. No separate app, service, or API key is required; it supports macOS, Linux, and Windows and runs in Git repositories or plain folders.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Nightshift is a plugin for Claude Code, Codex, and Cursor designed to help users turn ideas into plans agents can execute autonomously and leave behind reviewable results.

Purpose

The core purpose of Nightshift is to let agents work autonomously while the user is away, completing a series of tasks (called a "punch list") and generating a reviewable receipt for each task. It emphasizes thorough discussion during the planning phase, comparing options, setting boundaries and evidence requirements, then running as autonomous shifts with automatic recovery, ultimately producing reviewable results.

Key capabilities

  • Planning room: Before the first write, bring difficult problems into the planning room, compare options, set boundaries, and choose evidence for each task. Record decisions and explicit definitions of done so the agent follows the agreed plan during execution.
  • Autonomous shifts: The user chooses a start time, and the agent keeps working until all items are checked off. Decisions do not block progress; the agent chooses a default answer and records it in the "parking lot" for user review.
  • Receipts: Each item has its own receipt showing what the agent delivered, what it tried and rejected, which checks it ran, along with evidence, duration, and token usage. Decisions are returned with the default choice and reasoning.
  • Automatic recovery: Shift runs have automatic recovery capability.
  • Multiple run modes: Work through a list (completing agreed items one by one), or work toward a goal until a deadline (using the /nightshift:hunt command).
  • Preset shifts: Ready-made shifts are provided, including open-ended ones (covering hunt, bug hunt, product evolution, custom goals) and bounded ones (dependency upgrades, vulnerability scanning, flaky test fixes, accessibility fixes, documentation drift, release preparation, etc.).
  • Quality investigation: /nightshift:quality investigates quality debt such as tests, accessibility, and dependencies; the user chooses to fix immediately or draft for later.
  • Status and diagnostics: /nightshift:status shows open items, deadlines, parked decisions, blockers, and whether the watchkeeper is on duty; /nightshift:stop pauses and keeps unfinished items open; /nightshift:doctor diagnoses the workspace without making changes.
  • Archiving: /nightshift:archive archives a shift into a separate folder, including receipts and evidence. Open items and unanswered decisions remain in the active filefor the next shift.
  • Customization: Write your own receipt templates, morning summaries, and evidence notes; add, replace, or remove checks; create shifts, evidence items, and edge case packs.

How to use

  1. Install: Install as a native plugin; no separate app, service, or API key is required. Supports macOS, Linux, and Windows, and runs in any project (Git repository or plain folder).
    • In Claude Code: use /hooks via the CLI to review and trust its hooks.
    • In the Codex app: use the "Review hooks" button (the hook icon in the message box) or Settings → Hooks.
    • In Cursor: open Customize → Add → From GitHub Repository, and paste https://github.com/orwa-mahmoud/nightshift,选择 Import, then install Nightshift from the imported marketplace.
  2. First shift: In Codex, type $ and select the matching Nightshift skill, such as $nightshift:setup or $nightshift:plan. Open the project and run /nightshift:setup, answer a few questions to set preferences.
  3. Planning room: Use /nightshift:plan to enter the planning room, continue an existing plan or create a new plan and name it, and describe the requirements in your own words (features, refactoring, defects, an entire to-do list, or GitHub issues staged via /nightshift:import-issues). The project code remains read-only while the planning room is open. The agent reads the relevant code, tests, and history, explains the value of each option, and turns what is agreed into items.
  4. Start shift: Run /nightshift:start when ready. If the item list has open items, the agent processes those items; if it is empty, Start offers the plans and staged items by name and runs the selected plan. You can prepare multiple plans and run them in sequence.
  5. Review receipt: Open the morning receipt to see how the shift ended, which changes to check first, which decisions need attention, and the cost of the entire shift (work time, paused time, and tokens). Follow the items to see what the agent delivered, what it tried and rejected, which checks ran, which checks could not run, and the time and tokens spent per session for each item.

When to use

  • Turn ideas into plans that can be executed autonomously and require reviewable results.
  • Let the agent keep working while the user is away to complete the to-do list.
  • Need a detailed receipt for each task showing changes, checks, and evidence.
  • Suitable for code projects (Git repositories) and non-code work (such as a plain folder for a research report).
  • Supports multiple agents collaborating on the same plan (for example, after a Claude Code session runs out, Cursor continues on the same branch).

Limitations

  • Requires installing and trusting hooks.
  • The project code is read-only while the planning room is open, and the agent cannot implement directly.
  • Decisions do not block progress, but are recorded with default answers and require later review by the user.
  • Evidence and checks require user selection and judgment; the agent does not automatically verify all results.
  • Specific charges, prices, platform support details, and similar information are not provided in the materials.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools