nightshift — плагин для Claude Code и Codex: ночные смены агента
Плагин nightshift даёт агенту смену с ограничением по времени: панч-лист на диске, отчёт по каждому пункту и история запусков, которую можно разобрать утром.
MIT ★ 1 596 обновлён 2026-10-29
/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install nightshift@awesome-codex-pluginsЧто делает nightshift
Плагин держит долгую работу агента в рамках смены. Вы задаёте панч-лист в .nightshift/punch-list.md (пункты под ## Items) или берёте готовую смену Hunt либо Quality, а агент идёт по пунктам до времени выхода. Прогресс и принятые решения лежат на диске, поэтому смена переживает компакцию и перезапуск сессии. Хуки не дают закрыться с незаконченной работой, а сторож поднимает упавшую сессию.
По каждому пункту копится отчёт: отметка о выполнении, расход токенов и время из записей хоста. Что хост не отдаёт, помечается как недоступное. Законченную смену можно заархивировать с датой и свидетельствами, а открытые пункты и нерешённые вопросы остаются живыми.
Нужен Git-репозиторий или постоянная папка — одноразовые черновые воркспейсы не подойдут. На macOS и Linux плагин работает через Bash, на нативном Windows через PowerShell; отдельный сервис и ключ API не требуются. Отметки ставит сам агент, поэтому качество решают проверки внутри пунктов и ваша ревизия.
Какие задачи решает
- прогнать смену агента по готовому панч-листу
- увидеть расход токенов и время по каждому пункту
- поднять упавшую сессию и продолжить с того же места
- заархивировать законченную смену вместе со свидетельствами
- отложить открытые вопросы до утреннего разбора
Примеры запросов агенту
- Настрой nightshift в этом проекте через
/nightshift:setupи покажи проверки, которые предлагаешь. - Запусти смену командой
/nightshift:startи работай по.nightshift/punch-list.mdдо выхода. - Заархивируй законченную смену с датой, открытые пункты оставь живыми.
Как установить nightshift
Через маркетплейс плагинов
/plugin marketplace add hashgraph-online/awesome-codex-plugins/plugin install nightshift@awesome-codex-pluginsПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о nightshift
Как установить nightshift в Claude Code?
Сначала добавьте маркетплейс: /plugin marketplace add hashgraph-online/awesome-codex-plugins, потом поставьте плагин: /plugin install nightshift@awesome-codex-plugins.
Что делает nightshift?
Ведёт длинную работу агента сменой с ограничением по времени: панч-лист на диске, отчёты по пунктам с токенами и временем, восстановление сессии и архив завершённых запусков.
Что нужно до первой смены?
Откройте Git-репозиторий или постоянную папку, черновые воркспейсы не подходят. Дальше /nightshift:setup, один небольшой пункт в .nightshift/punch-list.md и первый запуск под присмотром.
Исходный текст
nightshift · MIT
# Nightshift **Give the agent a shift. Come back to work you can review.** Nightshift gives Claude Code, Codex, and Cursor a durable work contract for long coding runs. Bring a task list, choose a ready-made shift, or give your agent an objective and hours to work. Hooks hold unfinished work at clock-out, a watchman can recover failed sessions, and progress and decisions stay on disk. Review the results, per-item token usage and time where available, then archive the shift with its evidence intact. - **Choose the work:** Hunt and Quality offer ready-made shifts, Guided or Automatic selection, and review-first or immediate execution. - **Work for hours:** product evolution, coverage hunts, and owner-defined walkthroughs preserve the current work and exact next action across sessions. Each has an explicit ending. - **See progress and usage:** each item receipt updates during work; the runtime adds per-item tokens and duration from host records, marking unavailable measurements explicitly. - **Keep useful history:** archive finished shifts with linked receipts and evidence, while open items and unanswered decisions remain live. Automatic filing is optional. MIT licensed. Bash on macOS and Linux, PowerShell on native Windows. No separate service or API key. Ticks remain self-reported; the item checks and your review determine whether the work is good. ## Install Codex — recommended, the full plugin from the repository marketplace: ```text codex plugin marketplace add orwa-mahmoud/nightshift codex plugin add nightshift@nightshift ``` Review and trust its hooks, then start a new conversation. The [OpenAI Plugin Directory](https://chatgpt.com/plugins/plugins_6a7c58f65d708191b3a705a8625baffe) lists a skills-only edition without the clock-out gate, recovery or usage accounting; turn it off after installing the full plugin. Claude Code: ```text /plugin marketplace add orwa-mahmoud/nightshift /plugin install nightshift ``` Cursor: open **Customize → Add → From GitHub Repository**, paste `https://github.com/orwa-mahmoud/nightshift`, choose a scope, and select **Import**. Then select Nightshift from the imported marketplace to install it. The [Cursor Directory listing](https://cursor.directory/plugins/nightshift) is for discovery. Read the [recovery and CLI limitations](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/how-it-works.md#recovery) before starting a shift. ## First shift Open the project you want Nightshift to change: a Git repository or a persistent folder. Disposable ChatGPT scratch workspaces are not supported. 1. Ask **“Set up Nightshift in this project”** in Codex; use `/nightshift:setup` in Claude Code. Review the proposed checks and permissions. 2. Add one small task under `## Items` in `.nightshift/punch-list.md`, with an outcome and a way to verify it. The [first-shift guide](https://github.com/orwa-mahmoud/nightshift#your-first-shift) has a filled example. 3. Ask **“Start the Nightshift shift”**, or use `/nightshift:start` in Claude Code. Keep this first run attended, then review its changes and receipts before publishing anything. ## Read more - [Why Nightshift exists](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/why-nightshift.md) — the screen and the failures behind the design. - [Choose the work](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/shift-modes.md) — an approved list, a catalog entry, or a goal with a clock. - [Receipts and token usage](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/receipts.md) — progress, measurements, and host limits. - [Archive and continue](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/archive.md) — keep finished history and the next shift's work. - [Real runs](https://github.com/orwa-mahmoud/nightshift/blob/main/examples/README.md). - [Documentation](https://github.com/orwa-mahmoud/nightshift/blob/main/docs/README.md) and [website](https://nightshift.orwamahmoud.com/). Security reporting: [SECURITY.md](SECURITY.md#security-policy). License: [LICENSE](LICENSE).
© Orwa Mahmoud · MIT · hashgraph-online/awesome-codex-plugins