-
Notifications
You must be signed in to change notification settings - Fork 0
Scheduling
Jacob Centner edited this page Apr 10, 2026
·
2 revisions
Sentinel is designed as a single-run tool triggered externally. Use your system's scheduler (cron, systemd timers, Task Scheduler) to run overnight scans.
crontab -eAdd:
# Run Sentinel at 3am daily
0 3 * * * /home/user/sentinel/.venv/bin/sentinel scan /path/to/repo --skip-judge >> /var/log/sentinel.log 2>&1
# With LLM judge (requires Ollama running)
0 3 * * * /home/user/sentinel/.venv/bin/sentinel scan /path/to/repo >> /var/log/sentinel.log 2>&1
# Incremental scan (faster, only changed files)
0 3 * * * /home/user/sentinel/.venv/bin/sentinel scan /path/to/repo --incremental >> /var/log/sentinel.log 2>&1Create /etc/systemd/system/sentinel.service:
[Unit]
Description=Sentinel overnight scan
[Service]
Type=oneshot
User=youruser
WorkingDirectory=/path/to/repo
ExecStart=/home/user/sentinel/.venv/bin/sentinel scan /path/to/repo
Environment=PATH=/home/user/sentinel/.venv/bin:/usr/local/bin:/usr/binCreate /etc/systemd/system/sentinel.timer:
[Unit]
Description=Run Sentinel daily at 3am
[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true
[Install]
WantedBy=timers.targetEnable:
sudo systemctl enable --now sentinel.timerIf running Sentinel in WSL 2, use a cron job inside WSL:
# Inside WSL:
crontab -e
# Add:
0 3 * * * /path/to/.venv/bin/sentinel scan /path/to/repo >> /var/log/sentinel.log 2>&1Or use Windows Task Scheduler to invoke WSL:
- Open Task Scheduler → Create Basic Task
- Trigger: Daily at 3:00 AM
- Action: Start a program
- Program:
wsl.exe - Arguments:
-d Ubuntu -- /path/to/.venv/bin/sentinel scan /path/to/repo
sentinel scan-all ~/project-a ~/project-b ~/project-c \
--db ~/.sentinel/all.db \
--skip-judgeAll repos scan into a shared database. Use sentinel serve with --db to review them together.
After a scheduled scan:
# Check latest findings
sentinel findings
# Launch web UI to review
sentinel serve /path/to/repo
# Get JSON for scripting
sentinel findings --json-output | jq '.[] | select(.severity == "high")'- Use
--incrementalfor daily scans (faster, only new changes) - Use full scans weekly or after major updates
- Set
min_confidence = 0.5insentinel.tomlto reduce noise in scheduled runs - Use
sentinel prune --older-than 90periodically to manage database size - Redirect output to a log file for debugging scheduled runs
Local Repo Sentinel · MIT License
Getting Started
Reference
Detectors
- Detector: Todo Scanner
- Detector: Complexity
- Detector: Dead Code
- Detector: Dep Audit
- Detector: Docs Drift
- Detector: Unused Deps
- Detector: Lint Runner
- Detector: ESLint Runner
- Detector: Go Linter
- Detector: Rust Clippy
- Detector: Git Hotspots
- Detector: Stale Env
- Detector: Semantic Drift
- Detector: Test Coherence
- Detector: CI/CD Drift
- Detector: Architecture Drift
- Detector: Inline Comment Drift
- Detector: Intent Comparison
Advanced
Workflow