schedule-logs

schedule-logs is a command for coding agents from jshchnz/claude-code-scheduler. It costs 6 tokens per session (752 once invoked), scanned A, original, MIT.

A command that shows the run history and output logs for scheduled tasks. Logs are records of what a task did and any errors it produced.

In plain words
What is it for?
Use it to review all task executions or investigate the detailed output from one named task.
Why use it?
It gives you one place to check recent runs, durations, triggers, and failures instead of opening log files manually.

Command

Part of the scheduler plugin — 1 skill, 7 commands shipped together

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/jshchnz/claude-code-scheduler/schedule-logs
Clone the repo
git clone --depth 1 https://github.com/jshchnz/claude-code-scheduler

Or install scheduler, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

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 schedule-logs

README.md
[![agentmods](https://agentmods.dev/badge/commands/jshchnz/claude-code-scheduler/schedule-logs.svg)](https://agentmods.dev/commands/jshchnz/claude-code-scheduler/schedule-logs)
Your own site
<a href="https://agentmods.dev/commands/jshchnz/claude-code-scheduler/schedule-logs"><img src="https://agentmods.dev/badge/commands/jshchnz/claude-code-scheduler/schedule-logs.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 752 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.00006 $0.00752
Opus 5 $0.00003 $0.00376
Sonnet 5 $0.00001 $0.00150
Haiku 4.5 $0.00001 $0.00075

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

Security

Grade A, and why

schedule-logs 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 5d 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.

commands/schedule-logs.md · 107 lines

How it starts

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

View Execution Logs

Display execution history and logs for scheduled tasks.

Usage

/schedule logs [task-id-or-name] [options]

Process

  1. Determine Scope

    • If task specified: show logs for that task
    • If no task: show recent logs across all tasks
  2. Load History

    • Read execution records from task config
    • Read log files from ~/.claude/logs/
  3. Format Output

    • Show execution history table
    • Optionally show detailed output

Output Formats

All Tasks (default)

# Recent Executions

| Time              | Task              | Status | Duration | Trigger   |
|-------------------|-------------------|--------|----------|-----------|
| Jan 5 9:00 AM     | Daily Code Review | OK     | 45s      | scheduled |
| Jan 5 6:00 PM     | Backup Reminder   | OK     | 12s      | scheduled |
| Jan 4 9:00 AM     | Daily Code Review | OK     | 38s      | scheduled |
| Jan 4 10:00 AM    | Weekly Audit      | FAIL   | 120s     | manual    |

Showing last 10 executions. Use `/schedule logs --limit 50` for more.

Specific Task

/schedule logs daily-review

# Execution History: Daily Code Review

**Task ID:** a1b2c3d4-...
**Schedule:** Weekdays at 9:00 AM
**Log file:** ~/.claude/logs/a1b2c3d4.log

## Recent Executions

| Time              | Status | Duration | Trigger   |
|-------------------|--------|----------|-----------|
| Jan 5 9:00 AM     | OK     | 45s      | scheduled |
| Jan 4 9:00 AM     | OK     | 38s      | scheduled |
| Jan 3 9:00 AM     | OK     | 42s      | scheduled |
| Jan 2 9:00 AM     | FAIL   | 5s       | scheduled |
| Jan 1 9:00 AM     | OK     | 40s      | manual    |

## Last Execution Output

[Jan 5 9:00 AM - Success]

Reviewing commits from yesterday...
Found 3 commits to review.
...

Detailed Output

/schedule logs daily-review --full

[Shows complete output from last execution]

Options

  • --limit N - Show last N executions (default: 10)
  • --full - Show complete output from last execution
  • --status <ok|fail> - Filter by status
  • --since <date> - Show executions since date

Read the full file on GitHub · 107 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. 5d ago First seen · 107 lines · 6 tokens per session scan A 5cc914254cc2

Subscribe to this mod's changes

schedule-logs is a command published in the GitHub repository jshchnz/claude-code-scheduler (510 stars, last pushed 7mo ago), licensed MIT. It adds 6 tokens to every session and 752 once invoked, about $0.0000 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.