Skip to main content

nightaudit — your repos, reviewed overnight; a stylized morning digest showing per-provider run budgets, tokens used, and findings surfaced

nightaudit

An audit doesn't change the books.

Put your idle Claude Code or Codex subscription to work — read-only reviews of your projects while you're busy, one digest every morning.

nightaudit's morning digest: a code_review of a sample repo turns up a SQL injection, a hardcoded secret, and a timing-unsafe compare — ranked by severity with a file:line, and how many tokens the review took

PyPI license python

Docs · Quick Start · Configuration · CLI Reference


What this is

You already pay for Claude Code or ChatGPT. That subscription sits idle most of the day, and definitely all night. nightaudit spends that idle time reviewing the projects you point it at, and leaves the results in one Markdown file you read with your coffee.

Either CLI works — Claude Code or Codex, whichever you have. Have both and it uses both, each with its own budget.

It never edits your code. It has no daemon and no server — cron calls it, it decides whether to run, and it goes back to sleep. Everything it knows lives in two directories you can delete at any time.

That's the whole tool. Everything below is how to start; the docs are the detail.

Features

  • Read-only, and not on the honour system. Enforced by the AI CLI's own permission layer — an allowlist Claude Code applies, or the kernel sandbox Codex runs under. A bug in the model cannot touch the disk.
  • Uses the subscription you already pay for. No API key. It drives the same claude or codex you use by hand, on your own plan.
  • Budget-aware. Hard caps per day and per week, per provider, counted in a ledger it keeps itself.
  • Stays out of your way. It only runs inside the hours you choose, and only once you've been away from the CLI long enough.
  • Multi-project. Add repos one path at a time, or point --discover at a folder and it finds every git repo under it. A round-robin queue means a noisy repo can't starve the rest.
  • One digest a morning. Every finding ranked by severity with a file:line, in a single Markdown file — with how many tokens each project's reviews took.
  • No daemon, no server. Cron calls it, it decides whether to run, it exits. Everything it knows lives in two directories you can delete.

Installation

pipx install nightshift-cli
nightaudit --version

That is not a typo: the tool is nightaudit everywhere except the install line. It was published as nightshift-cli before the rename, and PyPI has no way to rename a project without stranding everyone on the old one. You type it once.

Full guide, including upgrading from 0.3.0: Installation.

Getting Started

nightaudit init                 # find your CLIs, pick projects and hours, write cron
nightaudit init --discover ~/code   # or scan a folder and pick from what it finds
nightaudit run --now            # don't wait until tonight
nightaudit status               # budget, next window, what's up next

init asks for a project path and gives everything else a working default — or type scan <folder> at the prompt (or pass --discover) to add every git repo under a folder from a checklist. Then cron takes over: it runs in the hours you chose, once you've been away long enough, until the budget says stop.

Full guide: Quick Start · Scheduling

Everything else

Read-only How "0 files touched" is enforced rather than promised
Configuration Every knob in config.yaml
Tasks The five that ship, and writing your own
Checks Your own commands, run as you
Budget Caps per day and per week
The digest What lands in the morning
CLI reference Every command
Providers Claude Code, Codex, and why Copilot is a stub
Troubleshooting It said "nothing to do", and other normal things

Development

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/pytest

The test suite spends zero quota: the scheduler, budget, queue, and digest are covered against a FakeAdapter, and the Claude Code adapter is tested with a mocked subprocess. No test ever shells out to a real AI CLI.

The images on this page are generated from real captured output — see docs/RECORDING.md if you change what the CLI prints.

License

MIT

Metadata

Release files for nightshift-cli 0.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nightshift-cli 0.6.4
File Size Uploaded Provenance Actions
nightshift_cli-0.6.4.tar.gz 376.2 kB With provenance Details for nightshift_cli-0.6.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nightshift-cli 0.6.4
File Interpreter ABI Platform Actions
nightshift_cli-0.6.4-py3-none-any.whl Python 3 none any Details for nightshift_cli-0.6.4-py3-none-any.whl

Total release size: 450.7 kB

Release files / nightshift_cli-0.6.4.tar.gz

Download URL nightshift_cli-0.6.4.tar.gz
Size 376.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5d51cf6b302645c9054a7434776ef1abee4961554e1bad27c716ba450bf80b
BLAKE2b-256 checksum
How to use checksums
3f95e6c5adb90879007b7115c09db51a751e7aaac92079530111e69397af9fa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / nightshift_cli-0.6.4-py3-none-any.whl

Download URL nightshift_cli-0.6.4-py3-none-any.whl
Size 74.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
925f5c624b551a204a2faf215c9485266bc5df5420ed37a3f6e28787a48b0bf1
BLAKE2b-256 checksum
How to use checksums
82b042ce1a6dfc1b2c3597a510fe0f56dc58781af5f79da2f77835b7160ea7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for nightshift-cli 0.6.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nightshift_cli-0.6.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page