aniketkarne/ClaudeNightsWatch
Autonomous task execution system for Claude CLI that monitors your usage windows and executes predefined tasks automatically
What it solves
Claude Nights Watch solves the problem of idle time in Claude CLI usage windows. It allows users to define a set of automated tasks that the AI will execute autonomously when a usage window is about to expire, ensuring that development work or maintenance tasks continue even when the user is not actively interacting with the terminal.
How it works
The project functions as a daemon or a Claude Code plugin that monitors your Claude CLI usage. It tracks the remaining time in your current session and, as the expiration limit approaches, it reads a user-defined task.md file and a rules.md file. It then combines these into a prompt and executes the tasks using the Claude CLI with autonomous permissions. It includes safety constraints to prevent destructive actions and provides logging to track all automated activities.
Who it’s for
This tool is for power users of the Claude CLI who want to maximize their usage windows by automating repetitive development tasks like linting, dependency updates, testing, or documentation generation.
Highlights
- Autonomous task execution system that runs tasks without manual intervention.
- Supports both a standalone daemon mode and a native Claude Code plugin integration.
- Includes a Task Executor AI agent to assist with workflow planning and troubleshooting.
- Features an MCP server for programmatic control and smart hooks for session integration.
- Implements safety rules to govern autonomous behavior and prevent unintended system modifications.
Related
- Project
- Project
- Dispatch
- Project
- Project