# marcus/nightshift

Nightshift uses your leftover Claude / Codex budget to surprise you with useful PRs. Love them or leave them.

Repository: https://github.com/marcus/nightshift
Canonical: https://ross.abutalabs.com/products/nightshift
Language: Go
License: MIT
License Family: permissive
Last push: 2026-07-31T18:05:49+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 72, longevity 14
- inputs: {"age_days": 209, "days_push": 33, "days_rel": 186, "gap_med": 1, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1011, forks 54 (observed 2026-08-28T04:03:13.107593+00:00)

## What it is
Nightshift is a Go CLI tool that runs overnight, using your leftover Claude or Codex token budget to automatically find issues like dead code, doc drift, test gaps, and security problems in your repos. It submits its findings as branches or pull requests that you can merge or close, never writing directly to your primary branch.

## Use cases
- use leftover claude codex tokens to auto-fix my repo overnight
- automatically open PRs for dead code and doc drift
- find test gaps and security issues while I sleep
- schedule AI coding agent tasks within a token budget
- run automated code maintenance tasks across multiple repos
- generate lint fixes and PRs from remaining LLM budget

## When to choose
- you have unused daily Claude or Codex token allotments you want to spend on codebase upkeep
- you want low-risk automated maintenance since everything lands as a closable PR
- you manage multiple repos that accumulate silent debt like dead code and doc drift
- you want a CLI with budget controls, previews, and dry-run support

## When to avoid
- you don't use Claude or Codex coding agents
- you require human review before any code changes are even drafted
- your codebase is private/sensitive and you're uncomfortable with agent-generated changes
- you need guaranteed correct fixes rather than suggestions to review or close

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, workflow-automation, scheduling, code-review, llm-inference, agent-framework
- domain: developer-tools, version-control, artificial-intelligence
- platform: cli, go
- tags: claude-code, codex, overnight-automation, pr-generation, budget-aware, code-maintenance, automation, macos, linux

## Member repositories
- marcus/nightshift (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.107593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:51.368997+00:00, confidence not recorded.
  - readme: https://github.com/marcus/nightshift (fetched 2026-08-28T04:03:13.107593+00:00, sha 18b7c77a73c5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
