- The
GET /healthHTTP endpoint — a one-shot readiness probe used by Docker, systemd, and curl-based scripts. - The
comis healthCLI command — fail/warn findings only, with an exit code suitable for shell pipelines. - The heartbeat monitoring system — continuous background checks that fire alerts to your agent (and through it to your chat channels) when thresholds are crossed.
/health endpoint and comis health CLI answer “is the daemon up?” right now. The heartbeat system answers “what’s been wrong over the last few minutes?” — the rest of this page is about the heartbeat.
The /health HTTP endpoint
The gateway exposes a readiness probe at /health:
200 with status: "ok" once the daemon has finished its bootstrap sequence. The Docker HEALTHCHECK and the comis daemon start wait-loop both check this endpoint.
The comis health CLI
The CLI runs the same checks as comis doctor but only prints fail/warn findings, exiting with status 1 if anything failed:
What Gets Monitored
Comis checks five different health sources via the heartbeat. Each source can be enabled or disabled independently.Disk Space
Disk Space
Watches the disk usage on configured paths and alerts when usage exceeds the threshold.Why it matters: If the disk fills up, Comis cannot write logs, save memories, or store agent data. Getting an early warning gives you time to free up space.Default behavior: Monitors
/ and alerts at 90% usage.System Resources
System Resources
Monitors CPU and memory usage and alerts when utilization is consistently high.Why it matters: High CPU or memory usage can slow down agent responses, causing the event loop to lag and degrading user-facing latency.Default behavior: Alerts at 85% CPU and 90% memory usage.
systemd Services (Linux only)
systemd Services (Linux only)
Checks for failed system services on Linux servers running systemd.Why it matters: A failed dependency (like a database or reverse proxy) can affect Comis even if the daemon itself is running fine.Default behavior: Checks all system services for failures. Set
services to a specific list to limit which services are checked.Security Updates
Security Updates
Checks whether security patches are available for your operating system.Why it matters: Unpatched systems are vulnerable. This check gives your agent visibility into pending security updates so it can alert you.Default behavior: Checks for security updates only (not all package updates).
Git Repositories
Git Repositories
Optionally monitors git repositories for uncommitted changes or unpushed commits.Why it matters: Useful for development environments where you want your agent to remind you about uncommitted work.Default behavior: Disabled by default. Enable and add repository paths to activate.
How Alerts Work
Monitoring runs on the heartbeat schedule — every 5 minutes by default. When a threshold is exceeded, the agent receives an alert and can notify you through your connected chat channels. Alerts have built-in protection against repeated notifications:- Alert threshold: A source must fail multiple consecutive checks (default: 2) before triggering an alert
- Alert cooldown: After alerting, the same source will not alert again for 5 minutes
Full Configuration Reference
Related Pages
Daemon
Daemon lifecycle and recovery
Scheduler
Heartbeat intervals and quiet hours
Observability
Token tracking and performance metrics
Troubleshooting
Solutions to common issues
