forge-nightshift

forge-nightshift is a skill for Claude Code, Codex from ForgeyClap/claude-forge. It costs 43 tokens per session (1,985 once invoked), scanned A, original, MIT.

An opt-in pattern for running a large software-building work queue across overnight interruptions. It plans work packages, records progress, resumes unfinished work, and creates a morning briefing, but it does not start work by itself.

In plain words
What is it for?
Use it to prepare an overnight run, resume unfinished work in a later session, and review the resulting status in the morning.
Why use it?
It helps a long build continue after session or usage limits without losing track of what was completed or left unfinished.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/forgeyclap/claude-forge/forge-nightshift
Any agent
npx skills add ForgeyClap/claude-forge --skill forge-nightshift
Clone the repo
git clone --depth 1 https://github.com/ForgeyClap/claude-forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for forge-nightshift

README.md
[![agentmods](https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-nightshift.svg)](https://agentmods.dev/skills/forgeyclap/claude-forge/forge-nightshift)
Your own site
<a href="https://agentmods.dev/skills/forgeyclap/claude-forge/forge-nightshift"><img src="https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-nightshift.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.01985
Opus 5 $0.00022 $0.00992
Sonnet 5 $0.00009 $0.00397
Haiku 4.5 $0.00004 $0.00198

Measured 4d ago against content hash 5be2aac7d528, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

forge-nightshift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/forge-nightshift/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Forge playbook — Nightshift (overnight self-resuming builder)

Do not duplicate existing tools — defer to: forge-manifest.cjs (ARM/RECONCILE per-WP manifest), forge-swarm-resume.cjs (re-dispatch plan for unfinished WPs), forge-checkpoint.cjs (idempotency for any side-effecting WP), forge-actiongate.cjs (hard-gates — deploy/push/spend/DNS/etc.), usage-guard.cjs (the real, already-built session/usage-limit watchdog + auto-resume signal), and forge-briefing.cjs (piece J5 — the real, tested morning-briefing generator this skill's output depends on). This file is doctrine/orchestration only: it explains how those pieces compose into an overnight run, it does not reimplement any of them.

What Nightshift actually is (and is not)

Nightshift is not a new autonomous scheduler and not a background daemon that decides on its own to start work. It is a documented pattern for composing four already-real, already-tested pieces so a large swarm can survive a session/usage-limit interruption and resume honestly the next time a session runs:

  1. Plan the work queue up front and ARM it (forge-manifest.cjs::arm()) so every work package's exact scope (narrowed_prompt, deps) is persisted BEFORE dispatch — never re-derived from memory later.
  2. Dispatch normally (Agent-tool subagents, per this project's real-agents-only governance). Each WP's real completion/failure is logged as an ordinary event (wp_completed/check_passed or wp_failed/check_failed) — Nightshift adds no new event-logging mechanism of its own.
  3. Survive the interruption. If the session ends (session-limit pause, usage-limit pause, or the owner simply closes the laptop), nothing is lost: the manifest + events.jsonl already on disk are the complete record. The NEXT session that runs calls forge-swarm-resume.cjs::resume({run_id}) to get back exactly the unfinished WPs (with their original scoping) — never a fabricated "pick up where I think I left off".
  4. Report honestly. Before (or instead of) resuming, run forge-briefing.cjs --run <id> to generate the MORNING BRIEFING — a markdown of what ran, what's blocked, and what only the owner can decide (retry/reassign/drop a failure, resume/reprioritize/drop an unfinished WP), derived purely from the run's own logged manifest + events. This is a real, hermetically-tested tool (forge-bin/forge-briefing.cjs + forge-briefing.test.cjs), not a scaffold.

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 100 lines · 43 tokens per session scan A 5be2aac7d528

Subscribe to this mod's changes

forge-nightshift is a skill published in the GitHub repository ForgeyClap/claude-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 1,985 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.