marcus/nightshift
Nightshift uses your leftover Claude / Codex budget to surprise you with useful PRs. Love them or leave them.
What it solves
Nightshift is an automated codebase maintenance tool that identifies and fixes issues like dead code, documentation drift, and security vulnerabilities that typically accumulate during rapid feature development. It acts as a "Roomba for your codebase," running silently in the background (often overnight) to handle the tedious maintenance tasks developers often forget.
How it works
The tool integrates with AI providers such as Claude Code, Codex, and GitHub Copilot. It uses a configurable token budget to ensure it doesn't exceed daily limits. It operates on a set of predefined tasks (e.g., lint-fix, bug-finder, docs-backfill) and applies changes by creating branches and Pull Requests rather than writing directly to the primary branch, ensuring a zero-risk workflow where developers only merge what they want.
Who it’s for
It is designed for developers and engineering teams who want to maintain high code quality and reduce technical debt without manually auditing their repositories every day.
Highlights
- Budget-Aware Execution: Automatically manages AI token usage based on a configurable maximum percentage of the daily allotment.
- Zero-Risk Workflow: All changes are submitted as PRs, making rollbacks as simple as closing the PR.
- Multi-Project Support: Can be pointed at multiple repositories and automatically knows which maintenance tasks to apply.
- Provider Flexibility: Supports multiple AI backends including Claude Code, Codex, and GitHub Copilot.
- Task Scheduling: Includes a built-in daemon and cron support for automated overnight runs.
Related
- Project
- Project
- Project
- Project
- Project