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.
curl -O https://raw.githubusercontent.com/cosmo-autom8s/ai-executive-assistant/main/.claude/commands/ea-night-cleanup.mdgit clone --depth 1 https://github.com/cosmo-autom8s/ai-executive-assistantWrote 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.
[](https://agentmods.dev/commands/cosmo-autom8s/ai-executive-assistant/ea-night-cleanup)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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)
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.
- 11d ago First seen · 195 lines · 20 tokens per session scan A 50a9241d2793
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.
Other commands, from other repositories
evolve
Cluster related instincts into skills, commands, or agents.
suggest-automation
A command that reviews recent Git commits and project instructions to find work patterns that happen repeatedly.
instinct-import
Import instincts from teammates, Skill Creator, or other sources.
instinct-export
Export instincts for sharing with teammates or other projects.
continue
Resume incomplete work from continuation tasks, or find the highest-impact next action.
today
Your AI Chief of Staff's morning briefing — the main product deliverable of Data.