/review-logs

SkillFiles & storage

Review Deus system health logs, show daily reports, surface pinned issues, and rotate old log files. Uses a local Ollama model to analyze errors and warnings.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the /review-logs skill

What this skill tells your AI

The instructions your AI receives, as published by sliamh11/deus in .claude/skills/review-logs/SKILL.md and read by ahel’s review.

Runs the Deus log review and rotation system at scripts/log_review.py.

Subcommands

Run the appropriate command based on what the user asks for:

User intentCommand
Full run / daily review / "what's wrong"python3 scripts/log_review.py
See last report / summarypython3 scripts/log_review.py --summary
See pinned / flagged issuespython3 scripts/log_review.py --pinned
Clean up old logs / rotatepython3 scripts/log_review.py --rotate-only
Re-analyze without rotatingpython3 scripts/log_review.py --review-only

If invoked with no further context, run the full review (python3 scripts/log_review.py).

What each mode does

Full run (default):

  1. Deletes container logs older than LOG_CONTAINER_RETENTION_DAYS (default: 14 days)
  2. Archives logs/deus.log / logs/deus.error.log to logs/archives/ if they exceed LOG_MAIN_MAX_MB (default: 20 MB) and truncates them
  3. Reads new log entries since the last review (byte-offset tracked — never re-reads old entries)
  4. Scans new container session logs for errors
  5. Sends collected warnings/errors to a local Ollama model (LOG_REVIEW_MODEL, default: gemma4:e4b) for structured health analysis
  6. Saves daily report to ~/.deus/reviews/YYYY-MM-DD.md
  7. Pins DEGRADED/CRITICAL reports to ~/.deus/reviews/pinned.md and fires a macOS notification

Health levels returned by Ollama:

  • OK — no actionable issues
  • DEGRADED — issues present, not urgent
  • CRITICAL — needs immediate attention, gets pinned

Output interpretation

After running, explain the health report to the user:

  • Summarize the Issues Found section in plain language
  • For each Action Required item, explain what it means and how to fix it
  • If health is OK, confirm the system is running cleanly
  • If issues are pinned, tell the user they can run deus logs pinned anytime to review them

Environment overrides

VariableDefaultEffect
LOG_REVIEW_MODELgemma4:e4bOllama model for analysis
OLLAMA_HOSThttp://localhost:11434Ollama server URL
LOG_CONTAINER_RETENTION_DAYS14Days before container logs are deleted
LOG_MAIN_MAX_MB20Main log size threshold for archiving
LOG_ARCHIVE_RETENTION_DAYS30Days before archived logs are deleted

Scheduling

The review runs automatically every day at 08:00 via a launchd job (com.deus.log-review). To check if it's registered: launchctl list | grep log-review To install it manually (macOS): launchctl load ~/Library/LaunchAgents/com.deus.log-review.plist

Signals

GitHub stars
51
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
review-logs
Source
github.com/sliamh11/deus