openclaw
Skills for the OpenClaw personal AI assistant, covering browser automation, routing requests to coding agents, presenting canvas widgets, running apps on temporary machines, and sharing diffs.
aniketkarne/claudenightswatch is a Claude Code plugin for autonomous task execution. It monitors your usage windows and runs predefined tasks automatically, with agents, commands, hooks and MCP servers, for running work unattended.
Claude Code
> /plugin marketplace add aniketkarne/claudenightswatch> /plugin install claude-nights-watch@claude-nights-watch-marketplace
GitHub Copilot
$ copilot plugin marketplace add aniketkarne/claudenightswatch$ copilot plugin install claude-nights-watch@claude-nights-watch-marketplace
🚀 NEW: Now available as a Claude Code Plugin! 🎉
Autonomous task execution system for Claude CLI that monitors your usage windows and executes predefined tasks automatically. Built on top of the claude-auto-renew concept but instead of simple renewals, it executes complex tasks from a task.md file.
⚠️ Warning: This tool uses --dangerously-skip-permissions for autonomous execution. Use with caution!
Choose your preferred installation method:
/nights-watch start/stop/status/logs/task/setup/restartClaude Nights Watch extends the auto-renewal concept to create a fully autonomous task execution system. When your Claude usage window is about to expire, instead of just saying "hi", it reads your task.md file and executes the defined tasks autonomously.
rules.mdnpm install -g ccusage
# Method 1: From marketplace
claude plugin marketplace add https://github.com/aniketkarne/ClaudeNightsWatch
claude plugin install claude-nights-watch@claude-nights-watch-marketplace
# Method 2: Direct from GitHub
claude plugin install https://github.com/aniketkarne/ClaudeNightsWatch
# Method 3: From local directory (for development)
claude plugin marketplace add /path/to/ClaudeNightsWatch
claude plugin install claude-nights-watch@claude-nights-watch-marketplace
Use the Claude Plugins CLI to skip the marketplace setup:
npx claude-plugins install @aniketkarne/claude-nights-watch-marketplace/claude-nights-watch
This automatically adds the marketplace and installs the plugin in a single step.
# Interactive setup
/nights-watch setup
# Start daemon
/nights-watch start
# Check status
/nights-watch status
# View logs in real-time
/nights-watch logs -f
# Stop daemon
/nights-watch stop
Plugin Features:
/nights-watch start/stop/status/logs/task/setup/restartClone this repository:
git clone https://github.com/aniketkarne/ClaudeNightsWatch.git
cd ClaudeNightsWatch
Make scripts executable:
chmod +x *.sh
Run the interactive setup:
./setup-nights-watch.sh
Create your task file (task.md):
# Daily Development Tasks
1. Run linting on all source files
2. Update dependencies to latest versions
3. Run the test suite
4. Generate coverage report
5. Create a summary of changes
Create safety rules (rules.md):
# Safety Rules
- Never delete files without backing up
- Only work within the project directory
- Always create feature branches for changes
- Never commit sensitive information
Start the daemon:
./claude-nights-watch-manager.sh start
Legacy Commands:
./claude-nights-watch-manager.sh start [--at TIME] # Start daemon
./claude-nights-watch-manager.sh stop # Stop daemon
./claude-nights-watch-manager.sh status # Check status
./claude-nights-watch-manager.sh logs [-f] # View logs
./claude-nights-watch-manager.sh task # View task/rules
./claude-nights-watch-manager.sh restart # Restart daemon
The task file contains the instructions that Claude will execute. It should be clear, specific, and well-structured. See examples/task.example.md for a comprehensive example.
The rules file defines safety constraints and best practices. It's prepended to every task execution to ensure safe autonomous operation. See examples/rules.example.md for recommended rules.
CLAUDE_NIGHTS_WATCH_DIR: Set the directory containing task.md and rules.md (default: current directory)When using as a Claude Code plugin, use slash commands:
# Start the daemon
/nights-watch start
# Start with scheduled time
/nights-watch start --at "09:00"
/nights-watch start --at "2025-01-28 14:30"
# Stop the daemon
/nights-watch stop
# Check status
/nights-watch status
# View logs
/nights-watch logs
/nights-watch logs -f # Follow mode
# View current task and rules
/nights-watch task
# Interactive setup
/nights-watch setup
# Restart daemon
/nights-watch restart
For standalone daemon usage:
# Start the daemon
./claude-nights-watch-manager.sh start
# Start with scheduled time
./claude-nights-watch-manager.sh start --at "09:00"
./claude-nights-watch-manager.sh start --at "2025-01-28 14:30"
# Stop the daemon
./claude-nights-watch-manager.sh stop
# Check status
./claude-nights-watch-manager.sh status
# View logs
./claude-nights-watch-manager.sh logs
./claude-nights-watch-manager.sh logs -f # Follow mode
# Use interactive log viewer
./view-logs.sh
# View current task and rules
./claude-nights-watch-manager.sh task
# Restart daemon
./claude-nights-watch-manager.sh restart
Built-in AI agent that helps with:
Usage:
User: "Help me create an autonomous code review workflow"
Agent: Provides expert guidance and can execute /nights-watch commands
User: "My daemon isn't working, help debug"
Agent: Analyzes logs and suggests solutions
Provides 8 programmatic tools for Claude:
get_daemon_status - Query daemon statestart_daemon - Start with optional schedulestop_daemon - Stop the daemonget_logs - Retrieve log entriesread_task - Read task.md contentread_rules - Read rules.md contentwrite_task - Update task.mdwrite_rules - Update rules.mdAutomatic integration with Claude Code sessions:
These hooks run silently in the background, enhancing your workflow.
rules.md and task.md, combining them into a single promptclaude --dangerously-skip-permissionslogs/claude-nights-watch-daemon.logIMPORTANT: This tool runs Claude with the --dangerously-skip-permissions flag, meaning it will execute tasks without asking for confirmation.
When installed as a Claude Code plugin, the following structure is used:
claude-nights-watch/
├── .claude-plugin/ # Plugin metadata (NEW!)
│ └── plugin.json # Plugin manifest
├── commands/ # Slash command definitions (NEW!)
│ ├── bin/nights-watch # Command wrapper
│ ├── start.md # Start command documentation
│ ├── stop.md # Stop command documentation
│ ├── status.md # Status command documentation
│ ├── logs.md # Logs command documentation
│ ├── task.md # Task command documentation
│ ├── setup.md # Setup command documentation
│ └── restart.md # Restart command documentation
├── agents/ # AI agents (NEW!)
│ └── task-executor.md # Autonomous task planning agent
├── hooks/ # Event handlers (NEW!)
│ ├── hooks.json # Hook configuration
│ └── scripts/ # Hook implementation scripts
│ ├── check-daemon-status.sh # Session start hook
│ ├── session-end-prompt.sh # Session end hook
│ └── log-file-changes.sh # File modification hook
├── mcp-server/ # Model Context Protocol (NEW!)
│ └── nights-watch-server.sh # MCP server implementation
├── .mcp.json # MCP server configuration (NEW!)
└── [original files continue below...]
Skills for the OpenClaw personal AI assistant, covering browser automation, routing requests to coding agents, presenting canvas widgets, running apps on temporary machines, and sharing diffs.
Gives Claude Code users skills to drive Orca-managed worktrees, terminals and the embedded browser through the orca CLI, plus Jira and Linear ticket work and inline HTML chat visuals. Covers chart, table and mockup output.
Orchestrates teams of AI agents to run work like a company, with a Node.js server and React UI. Adds skills for delegating tasks, following up on results, reviewing team status, and managing Paperclip tasks from Hermes.
Organizes your AI agents for round-the-clock operation, with tools to hire, schedule and report on your agent team. Lets you oversee the agents without staying online yourself.
Install it with the command on its page. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it