review-logs
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.
- License 许可
- MIT
- 所属仓库
- sliamh11/Deus
- 最近更新
- 2026-11-13
- Stars
- ★ 51
- Forks
- 7
01 前言 Front Matter
- name
- review-logs
- description
- 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.
03 SKILL.md 正文
/review-logs
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 intent | Command |
|---|---|
| Full run / daily review / "what's wrong" | python3 scripts/log_review.py |
| See last report / summary | python3 scripts/log_review.py --summary |
| See pinned / flagged issues | python3 scripts/log_review.py --pinned |
| Clean up old logs / rotate | python3 scripts/log_review.py --rotate-only |
| Re-analyze without rotating | python3 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):
- Deletes container logs older than
LOG_CONTAINER_RETENTION_DAYS(default: 14 days) - Archives
logs/deus.log/logs/deus.error.logtologs/archives/if they exceedLOG_MAIN_MAX_MB(default: 20 MB) and truncates them - Reads new log entries since the last review (byte-offset tracked — never re-reads old entries)
- Scans new container session logs for errors
- Sends collected warnings/errors to a local Ollama model (
LOG_REVIEW_MODEL, default:gemma4:e4b) for structured health analysis - Saves daily report to
~/.deus/reviews/YYYY-MM-DD.md - Pins DEGRADED/CRITICAL reports to
~/.deus/reviews/pinned.mdand fires a macOS notification
Health levels returned by Ollama:
OK— no actionable issuesDEGRADED— issues present, not urgentCRITICAL— 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 pinnedanytime to review them
Environment overrides
| Variable | Default | Effect |
|---|---|---|
LOG_REVIEW_MODEL |
gemma4:e4b |
Ollama model for analysis |
OLLAMA_HOST |
http://localhost:11434 |
Ollama server URL |
LOG_CONTAINER_RETENTION_DAYS |
14 |
Days before container logs are deleted |
LOG_MAIN_MAX_MB |
20 |
Main log size threshold for archiving |
LOG_ARCHIVE_RETENTION_DAYS |
30 |
Days 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
04 同仓库更多 Skills
status
Quick read-only health check — session context, workspace mounts, tool availability, and task snapshot. Use when the user asks for system status or runs /status.
resume
Load context from permanent memory and recent session logs. Tiered loading — CLAUDE.md full, session logs frontmatter-only by default.
preserve
Scan the current conversation and silently save anything worth permanent memory to CLAUDE.md. Keeps the file compact — structured key:value, no prose.
compress
Save the current session to the vault. Writes a compact session log with a TL;DR frontmatter (always) and full details below (when useful).
capabilities
Show what this Deus instance can do — installed skills, available tools, and system info. Read-only. Use when the user asks what the bot can do, what's installed, or runs /capabilities.
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.