Home / Claude Code mods / Security / night-mode

night-mode

night-mode is a Claude Code mod by ShriD5 that late at night Claude gets more careful and asks before deploys, force pushes and rm -rf.

Updated 2026-10-04

What is night-mode?

night-mode is a Claude Code mod by ShriD5 that late at night Claude gets more careful and asks before deploys, force pushes and rm -rf. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
AuthorShriD5
RepositoryShriD5/claude-mods
Popularity1 GitHub stars
CategorySecurity
SecurityReview before installing (76/100)
Rank#2,302 of 5,272 Claude Code mods; #275 in Security
LicenseMIT
Last commit2026-10-04
Hooks5 events
SeesBash calls, every prompt
Draws onnothing

Is night-mode safe to install?

night-mode scores 76/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables; watches every prompt or event. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.state.get
$.state.set
$.ui.askdraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install night-mode?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/ShriD5/claude-mods
    claude plugin validate ./claude-mods/night-mode
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/ShriD5/claude-mods && claude --plugin-dir ./claude-mods/night-mode

Or ask Claude to set it up

Paste this into Claude Code and it installs night-mode for you:

Install the "night-mode" Claude Code mod from https://github.com/ShriD5/claude-mods/tree/main/night-mode. Run claude plugin validate on it first and show me what it can access before you enable it.

More from ShriD5/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • chai-meter: A taxi meter for the session's cost in the status line, in dollars and cups of chai. (Low risk)
  • commit-coach: Rewrites lazy commit subjects into conventional commits from the staged diff, and strips AI attribution trailers (Low risk)
  • main-guard: A red band when you are on main or in prod, and no force-push, reset --hard or unconfirmed push to a protected branch (Review before installing)
  • phone-approve: Approve or deny Claude Code's permission prompts from Telegram, with the terminal prompt as the fallback. (Low risk)
  • rubber-duck: A fast second opinion on every edit: a small model flags removed error handling, deleted tests, secrets and more (Low risk)
  • secret-guard: Stops Claude from writing API keys, tokens, private keys and database passwords into files. (Low risk)
  • ship-log: /ship turns what you built this session into a build-in-public post for X or LinkedIn (Review before installing)
  • standup: /standup writes yesterday's standup (since Friday on Mondays) from your git commits and copies it (Review before installing)