Agent skill

Nighttime Mode

by grandamenium in grandamenium/cortextos

Autonomous overnight orchestration mode. An agent skill from grandamenium/cortextos.

MITAuto-check passedProductivity & Automation

Install Nighttime Mode

skills CLI
$ npx skills add grandamenium/cortextos --skill nighttime-mode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install grandamenium/cortextos nighttime-mode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/grandamenium/cortextos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/community/skills/nighttime-mode .claude/skills/nighttime-mode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nighttime-mode
GitHub stars
101
Token cost
~1.3k tokens
SKILL.md length
320 words
Files
1
Skills in repo
55
Repo updated
First seen
Licence
MIT

At a glance

Autonomous overnight orchestration mode. An agent skill from grandamenium/cortextos.

  • Works in 4 steps: Check approved queue → Monitor agent progress → Process completions → …
  • Tasks that involve Focus and ADHD support
  • SKILL.md covers Hard Guardrails — NEVER Cross, What TO Do Overnight, Quick Start Loop and Overnight Orchestration Protocol, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Nighttime Mode is an agent skill from grandamenium/cortextos. Autonomous overnight orchestration mode. Active outside day hours. Dispatch and monitor deep work across agents while user sleeps. Internal building only — no external actions.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Focus and ADHD support. The licence is MIT.

When your agent uses it

  • Tasks that involve Focus and ADHD support

Example prompts

  • “/nighttime-mode”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Check approved queue
  2. Monitor agent progress
  3. Process completions
  4. Handle blockers

What it can do on your machine

Read from SKILL.md and the folder at commit 6f93838. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nighttime Mode loads about 1.3k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 320 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from grandamenium/cortextos at commit 6f93838, republished under its MIT licence (© grandamenium). 320 words, ~1,349 tokens.

Download SKILL.mdSave it as .claude/skills/nighttime-mode/SKILL.md (or your agent's skills folder).
name
nighttime-mode
description
Autonomous overnight orchestration mode. Active outside day hours. Dispatch and monitor deep work across agents while user sleeps. Internal building only — no external actions.
triggers
nighttime mode, overnight mode, night mode, overnight orchestration, nighttime protocol

Nighttime Mode

Orchestrate deep work across agents while the user sleeps. Dispatch tasks, monitor progress, prepare morning briefing.


Hard Guardrails — NEVER Cross

  1. No external communications — No emails, messages, posts, or DMs sent to anyone outside the system
  2. No purchases or transactions — No buying, no transfers, no commitments
  3. No permanent deletes — All actions must be reversible
  4. No production deploys — Prepare PRs, don't merge; build assets, don't publish
  5. No commitments on user's behalf — No promises, deadlines, or agreements
  6. No approval creation at night — Queue approval requests for morning; do not create them at night

When in doubt: Document it, present in morning review.


What TO Do Overnight

CategoryExamplesAssign to
ResearchMarket analysis, competitor research, trend analysisresearch agents
BuildingCode on feature branches, scripts, toolsdev agents
Content draftsScripts, outlines, social copy (drafts only)content agents
AnalysisData processing, metrics review, document processinganalyst agents
OrganizationFile organization, task grooming, template creationany appropriate agent
Self-improvementSkill development, workflow optimizationorchestrator

Quick Start Loop

1. CHECK: cortextos bus list-tasks --status in_progress
   → Any overnight tasks dispatched?

2. IF tasks are running:
   a. Check agent heartbeats: cortextos bus read-all-heartbeats
   b. Check inbox for completion reports: cortextos bus check-inbox
   c. Process completions, dispatch next tasks if queue has more
   d. GOTO step 1

3. IF no tasks pending:
   a. Begin preparing morning briefing data
   b. Update heartbeat: cortextos bus update-heartbeat "preparing morning briefing"

Overnight Orchestration Protocol

Step 1: Check approved queue
bash
cortextos bus list-tasks --status in_progress
cortextos bus read-all-heartbeats
Step 2: Monitor agent progress
bash
# Check heartbeats regularly (every ~1h)
cortextos bus read-all-heartbeats

# Check inbox for completion reports
cortextos bus check-inbox
Step 3: Process completions

When an agent reports task completion:

bash
# 1. Complete the task in cortextOS
cortextos bus complete-task "$TASK_ID" --result "<what was produced>"

# 2. Log the event
cortextos bus log-event task task_completed info --meta '{"task_id":"'$TASK_ID'","agent":"<completing_agent>"}'

# 3. Write to memory
TODAY=$(date -u +%Y-%m-%d)
echo "COMPLETED: $TASK_ID - <description> (by <agent>)" >> "memory/$TODAY.md"

# 4. Dispatch next task if queue has more
cortextos bus list-tasks --status pending
Step 4: Handle blockers

When an agent reports a blocker:

bash
# 1. Log the blocker
TODAY=$(date -u +%Y-%m-%d)
echo "BLOCKED: $TASK_ID - <reason> (agent: <name>)" >> "memory/$TODAY.md"

# 2. Try to unblock if possible (provide info, reassign)
cortextos bus send-message <agent> normal '<unblocking info or reassignment>'

# 3. If cannot unblock, queue for morning review
echo "MORNING REVIEW NEEDED: Blocker - $TASK_ID - <reason>" >> "memory/$TODAY.md"

Heartbeat During Nighttime

Update regularly to show overnight activity:

bash
cortextos bus update-heartbeat "nighttime mode - X/Y tasks complete, monitoring agents"

Before Morning: Prepare Briefing Data

Before the morning review cron fires, ensure this data is ready in today's memory:

  1. What was completed (by which agent, key deliverables with file paths)
  2. What needs user review or decision
  3. Blockers discovered that need morning attention
  4. Recommended priorities for today
bash
TODAY=$(date -u +%Y-%m-%d)
cat >> "memory/$TODAY.md" << MEMEOF

## Overnight Summary - $(date -u +%H:%M:%S)

### Completed
- [task] by [agent] -- [deliverable at path/]
- [task] by [agent] -- [deliverable at path/]

### Blocked (needs morning attention)
- [task] -- [reason]

### Needs User Review
- [item needing decision]

### Agent Status at Morning
[list each agent: status, last heartbeat]
MEMEOF

cortextos bus update-heartbeat "morning briefing data ready - overnight complete"

Event Logging

bash
# Starting nighttime mode
cortextos bus log-event action nighttime_mode_start info --meta '{"agent":"'$CTX_AGENT_NAME'"}'

# Task completions
cortextos bus log-event task task_completed info --meta '{"task_id":"<id>","agent":"<completing_agent>"}'

# Morning ready
cortextos bus log-event action morning_briefing_ready info --meta '{"tasks_completed":"X","tasks_blocked":"Y"}'

Philosophy

Lower risk, higher autonomy. No external actions — internal building only.

The night is for making the user's next day easier. Dispatch, monitor, and coordinate — never act externally without them. The orchestrator's job overnight is to keep agents productive and prepare a clear morning briefing.


This is the single source of truth for nighttime mode.

© grandamenium, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in community/skills/nighttime-mode of grandamenium/cortextos.

Open the folder on GitHubat commit 6f93838

Compare with similar skills

Nighttime Mode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nighttime Mode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nighttime Mode this skillgrandamenium/cortextos101—~1.3kAutomated safety check: PassMIT
I Have AdhdTanStack/ai3.2k5 repos~1.8kAutomated safety check: PassMIT
Attention Kindalexgreensh/attention-span1.4k—~2kAutomated safety check: PassAGPL-3.0
Remind Meshaheer-00/claude-adhd105—~1.1kAutomated safety check: PassNone
Daily Focus Boardgithub/awesome-copilot40k—~3kAutomated safety check: PassMIT
Attention Controlaaddrick/attention-control119—~3.6kAutomated safety check: PassMIT

Similar skills

  • I Have Adhd

    TanStack/ai

    A skill your agent uses when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output.

    3.2k GitHub starsUsed in 5 repos~1.8k tokens
    Productivity & AutomationAuto-check passed
  • Attention Kind

    alexgreensh/attention-span

    Answer in the ADHD-friendly Attention-kind style for the rest of this chat.

    1.4k GitHub stars~2k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Remind Me

    shaheer-00/claude-adhd

    Surface unfinished or forgotten tasks, ideas, and open questions from the user's past Claude Code sessions, manage custom reminders, run focus sessions, and match tasks to the user's energy.

    105 GitHub stars~1.1k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Attention Control

    aaddrick/attention-control

    Shape output for a reader with ADHD, then write each sentence in controlled English: action first, one word one meaning, active voice, simple tenses, state restated every turn.

    119 GitHub stars~3.6k tokensUpdated 2 mo ago
    Productivity & AutomationAuto-check passed
  • Chief Of Staff

    jdpolasky/ai-chief-of-staff

    Personal Chief of Staff system for ADHD-ish operators. An agent skill from jdpolasky/ai-chief-of-staff.

    105 GitHub stars~1.1k tokensUpdated 8 days ago
    Productivity & AutomationAuto-check passed

More from grandamenium/cortextos

All 55 skills in this repo
  • Cortext Self Diagnosis

    grandamenium/cortextos

    Diagnose cortextOS itself when the framework misbehaves — an agent has gone silent or wedged, agents are crash-looping, Telegram or agent-to-agent messages are not arriving, crons did not fire, an…

    101 GitHub stars~3.7k tokensUpdated 18 days ago
    Auto-check passed
  • Activity Channel

    grandamenium/cortextos

    You have completed something significant and want the whole org — all agents and the user — to know about it.

    101 GitHub stars~624 tokensUpdated 18 days ago
    Auto-check passed
  • Agentcard Purchase

    grandamenium/cortextos

    You need to make a purchase on behalf of the user — buy a SaaS subscription, pay for an API, purchase a domain, or any transaction requiring a credit card.

    101 GitHub stars~1.1k tokensUpdated 18 days ago
    Auto-check passed
  • Claude To Codex Migration

    grandamenium/cortextos

    Migrate ANY cortextOS agent from the claude-code runtime to the live codex-app-server runtime.

    101 GitHub stars~12k tokensUpdated 18 days ago
    Auto-check: warnings
  • Bus Reference

    grandamenium/cortextos

    Complete cortextos bus CLI reference - all available commands with examples.

    101 GitHub stars~3.8k tokensUpdated 18 days ago
    Auto-check passed
  • Business News Monitor

    grandamenium/cortextos

    Daily cron-driven scan of news/forums/social in a domain to surface market shifts, new competitors, regulatory changes, and net-new opportunities.

    101 GitHub stars~1.3k tokensUpdated 18 days ago
    Auto-check passed

Questions about Nighttime Mode

What does Nighttime Mode do?

Autonomous overnight orchestration mode. An agent skill from grandamenium/cortextos. Nighttime Mode is an agent skill from grandamenium/cortextos. Autonomous overnight orchestration mode.

When should I use Nighttime Mode?

Nighttime Mode fits situations like: tasks that involve Focus and ADHD support.

How do I install Nighttime Mode in Claude Code?

Run `npx skills add grandamenium/cortextos --skill nighttime-mode -a claude-code`. Or copy the skill folder (community/skills/nighttime-mode in grandamenium/cortextos) into .claude/skills/nighttime-mode in your project. Claude Code loads it when a task matches its description.

How do I install Nighttime Mode in Codex?

Run `npx skills add grandamenium/cortextos --skill nighttime-mode -a codex`. Or copy the skill folder (community/skills/nighttime-mode in grandamenium/cortextos) into .agents/skills/nighttime-mode in your project. Codex loads it when a task matches its description.

Can I use Nighttime Mode in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add grandamenium/cortextos --skill nighttime-mode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nighttime-mode, .gemini/skills/nighttime-mode, .github/skills/nighttime-mode and .opencode/skills/nighttime-mode in your project.

What does Nighttime Mode need to run?

SKILL.md names no scripts, command-line tools or credentials: Nighttime Mode is instructions for the agent only.

Does Nighttime Mode access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nighttime Mode safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nighttime Mode use?

Nighttime Mode is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nighttime Mode use?

About 1.3k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nighttime Mode?

Skills that share tags, products or a category with Nighttime Mode: I Have Adhd (TanStack/ai, 3.2k stars), Attention Kind (alexgreensh/attention-span, 1.4k stars), Remind Me (shaheer-00/claude-adhd, 105 stars) and Daily Focus Board (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nighttime Mode?

grandamenium (a GitHub user) maintains it in grandamenium/cortextos, which has 101 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on September 23, 2026.

Source: grandamenium/cortextos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.