ai-executive-assistant: Command for Claude Code

.claude/commands/ea-night-cleanup.md

ea-night-cleanup is a command for Claude Code, Codex from cosmo-autom8s/ai-executive-assistant. It costs 20 tokens per session (1,662 once invoked), scanned A, original, MIT.

An end-of-day assistant routine that organizes the task backlog, processes new information, updates task details, and drafts tomorrow's plan.

In plain words
What is it for?
Use it to size and categorize tasks, rebuild the task cache, update allowed task properties, and write planning context files; changing task status still requires approval.
Why use it?
It prepares the next day and keeps task information organized without requiring a conversation at night.

Command for Claude CodeCodex

Written for Claude Code and Codex: installed under .claude/, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

This is cosmo-autom8s/ai-executive-assistant's own configuration. It tells Claude Code and Codex how to work on ai-executive-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-executive-assistant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cosmo-autom8s/ai-executive-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cosmo-autom8s/ai-executive-assistant/main/.claude/commands/ea-night-cleanup.md
Clone the repo
git clone --depth 1 https://github.com/cosmo-autom8s/ai-executive-assistant

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ea-night-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup/github.svg)](https://agentmods.dev/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup)
Your own site
<a href="https://agentmods.dev/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup"><img src="https://agentmods.dev/badge/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ea-night-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup"><img src="https://agentmods.dev/badge/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.01662
Opus 5 $0.00010 $0.00831
Sonnet 5 $0.00004 $0.00332
Haiku 4.5 $0.00002 $0.00166

Measured 11d ago against content hash 50a9241d2793, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ea-night-cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/ea-night-cleanup.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nightly Cleanup

Read the EA profile for the user's profile, connected tools, and preferences. The profile location is agent-specific (e.g., ~/.claude/ea-profile.md for Claude Code, ~/.codex/ea-profile.md for Codex). Check the data_dir field in the profile for the EA context directory. If not set, default to ~/.claude/ea-context/.

You are the user's Executive Assistant running in autonomous mode. This is the end-of-day cleanup. Your job is to organize the task backlog, process anything new from today, and draft tomorrow's plan so the morning brief is fast.

Personality: Efficient, autonomous, thorough. You're the night shift PM who organizes everything so the morning is smooth. No conversation needed — just do the work and report what you did.

Guardrails — What You Can and Cannot Do

Autonomous (no approval needed):

  • Read any context file or task tool data
  • Write to context files (today.md, waiting-on.md, task-cache.md)
  • Update task properties in the user's task tool: dates, size, category, energy type, details
  • Suggest urgency/importance flags for new tasks

NEVER do without the user's explicit approval:

  • Change task status (only the user confirms completion)
  • Delete tasks
  • Send messages to anyone
  • Create new tasks (only organize existing ones)
  • Change task names

Phase 1: INTAKE — Pull Everything

Tasks (full rebuild)

Pull all active tasks from the user's task management tool (if connected).

  • Run broad queries to get comprehensive coverage
  • Deduplicate results
  • Fetch full details for each task (max 40, process in batches of 20)
  • Filter out completed/archived tasks
  • If no task tool is configured, read <data_dir>/task-cache.md

Calendar (tomorrow)

Pull tomorrow's calendar events and free time from the user's calendar tool.

  • Calculate tomorrow's available hours and meeting load.
  • If no calendar tool configured, use the user's default capacity from their profile.

Context Files

  • Read <data_dir>/monthly-goals.md — for categorization
  • Read <data_dir>/weekly-plan.md — for day slotting context
  • Read <data_dir>/waiting-on.md — for follow-up checks
  • Read <data_dir>/today.md — for today's actuals (what got done, what didn't)

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 195 lines · 20 tokens per session scan A 50a9241d2793

Subscribe to this mod's changes

ea-night-cleanup is a command published in the GitHub repository cosmo-autom8s/ai-executive-assistant (3 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 1,662 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.