check-daily

check-daily is a command for Claude Code from leiting-eric/DailyBrief. It costs 20 tokens per session (683 once invoked), scanned A, original, MIT.

A command that reports the current state of a daily reporting pipeline—a scheduled process that runs regularly and produces report files. It checks the last run, today’s reports, usage quota, and recent failures.

In plain words
What is it for?
Use it to check whether the daily pipeline ran, find its latest reports, review missed or failed runs, and see whether Sonnet quota may affect it.
Why use it?
It gathers status information in one place instead of making you inspect scheduled tasks, files, and logs separately. It can also point out when the scheduled job is not installed.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/leiting-eric/dailybrief/check-daily
Clone the repo
git clone --depth 1 https://github.com/leiting-eric/DailyBrief

Made for: Claude Code.

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 check-daily

README.md
[![agentmods](https://agentmods.dev/badge/commands/leiting-eric/dailybrief/check-daily.svg)](https://agentmods.dev/commands/leiting-eric/dailybrief/check-daily)
Your own site
<a href="https://agentmods.dev/commands/leiting-eric/dailybrief/check-daily"><img src="https://agentmods.dev/badge/commands/leiting-eric/dailybrief/check-daily.svg" alt="Measured on agentmods" 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 683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00683
Opus 5 $0.00010 $0.00342
Sonnet 5 $0.00004 $0.00137
Haiku 4.5 $0.00002 $0.00068

Measured 6d ago against content hash 3cc49f1cf8fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

check-daily 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 6d 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/check-daily.md · 52 lines

How it starts

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

Show the current state of the daily pipeline. Just gather and report, don't ask anything.

Step 0: locate the project root (cross-platform)

node -e "const fs=require('fs'),os=require('os'),path=require('path');const cfg=path.join(os.homedir(),'.daily-brief-config');if(fs.existsSync(cfg)){process.chdir(fs.readFileSync(cfg,'utf8').trim());console.log(process.cwd())}else if(fs.existsSync('package.json')){console.log(process.cwd())}else{console.error('daily-brief not installed');process.exit(1)}"

cd into the printed path before running anything else.

Step 1: gather status (platform-specific where needed)

Run these and summarize:

Scheduled task state

  • Windows: Get-ScheduledTaskInfo -TaskName DailyBrief | Format-List LastRunTime, LastTaskResult, NextRunTime, NumberOfMissedRuns
  • macOS: launchctl list | grep com.daily-brief (PID + last exit code)
  • Linux: crontab -l | grep daily-brief (just confirms the entry exists; cron doesn't track per-job last-run)

If the task/job isn't registered: tell the user to run node scripts/install.mjs --global.

Latest report files (cross-platform):

node -e "const fs=require('fs'),path=require('path');const root='daily_reports';if(!fs.existsSync(root)){console.log('(no reports yet)');return}fs.readdirSync(root).filter(d=>/^\d{4}-\d{2}-\d{2}/.test(d)).sort().reverse().slice(0,3).forEach(d=>{const f=path.join(root,d,d+'.html');if(fs.existsSync(f)){const s=fs.statSync(f);console.log(d.padEnd(25),s.size+'B',s.mtime.toISOString())}})"

Today's log tail (local date):

node -e "const fs=require('fs');const d=new Date();const pad=n=>String(n).padStart(2,'0');const f='logs/daily-'+d.getFullYear()+'-'+pad(d.getMonth()+1)+'-'+pad(d.getDate())+'.log';if(fs.existsSync(f)){console.log(fs.readFileSync(f,'utf8').split('\n').slice(-15).join('\n'))}else{console.log('No log for today yet.')}"

Sonnet quota:

npm run quota-report 2>&1 | tail -25

Step 2: synthesize

Read the full file on GitHub · 52 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. 6d ago First seen · 52 lines · 20 tokens per session scan A 3cc49f1cf8fc

Subscribe to this mod's changes

check-daily is a command published in the GitHub repository leiting-eric/DailyBrief (345 stars, last pushed 4d ago), licensed MIT. It adds 20 tokens to every session and 683 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-30.