a-safe-pulse: Command for Gemini CLI

.gemini/commands/remote/health.toml

health is a command for Gemini CLI from bybren-llc/a-safe-pulse. It costs 0 tokens per session (871 once invoked), scanned A, a copy of health, MIT.

A command that checks the health of a remote development environment, including Docker services, computer resources, network access, the application health endpoint, and PostgreSQL connectivity.

In plain words
What is it for?
Use it to inspect container status, CPU and memory use, disk space, application responses, and database connections on a remote machine.
Why use it?
It gathers the main operational checks in one place instead of requiring separate remote login, container, resource, and database commands.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is bybren-llc/a-safe-pulse's own configuration. It tells Gemini CLI how to work on a-safe-pulse itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything a-safe-pulse configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bybren-llc/a-safe-pulse. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bybren-llc/a-safe-pulse/dev/.gemini/commands/remote/health.toml
Clone the repo
git clone --depth 1 https://github.com/bybren-llc/a-safe-pulse

Made for: Gemini CLI.

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 health

README.md
[![agentmods](https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/health/github.svg)](https://agentmods.dev/commands/bybren-llc/a-safe-pulse/health)
Your own site
<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/health"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for health

Your own site · 80×15
<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/health"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod 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.00000 $0.00871
Opus 5 $0.00000 $0.00436
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

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

Security

Grade A, and why

health scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -w '\nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n' http://{REMOTE_HOST}:{APP_PORT}/api/health
Origin

This is a copy

92% identical to health — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.gemini/commands/remote/health.toml · 127 lines

How it starts

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

description = "Check remote dev environment health dashboard"

prompt = """

Remote Health Command

Display comprehensive health status of your remote dev environment including containers, resources, connectivity, and recent issues.

Workflow

1. Container Health Check

Check all project services:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker ps --filter name={PROJECT} --format 'table {{.Names}}\t{{.Status}}\t{{.State}}'"

Get detailed health status:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker inspect {CONTAINER_NAME} --format='{{.Name}}: {{.State.Health.Status}}'"

2. Resource Usage

Check CPU and Memory usage:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'"

Check disk space:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "df -h / | tail -1"

3. Application Health Endpoint

Test your app's health endpoint:

curl -s -w '\nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n' http://{REMOTE_HOST}:{APP_PORT}/api/health

4. Database Connectivity

Test PostgreSQL connection:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker exec {DB_CONTAINER} pg_isready -U {DB_USER}"

5. Cache/Cache Connectivity

Test Cache connection:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker exec {REDIS_CONTAINER} app-cache-cli ping"

Expected: PONG

6. Recent Error Check

Check for recent errors in logs:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker logs {CONTAINER_NAME} --since 5m 2>&1 | grep -iE 'error|fatal|exception' | tail -10"

7. Version Information

Get running version:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker inspect {CONTAINER_NAME} | grep 'org.opencontainers.image.revision'"

8. Health Dashboard Report

Generate comprehensive health report:

Remote Dev Environment Health Dashboard

Container Health:
{PROJECT}-app            Healthy  Up 2 hours
{PROJECT}-postgres       Healthy  Up 2 hours
{PROJECT}-app-cache          Healthy  Up 2 hours

Resource Usage:
Container               CPU      Memory
{PROJECT}-app          2.45%    312MB / 2GB  (15%)
{PROJECT}-postgres     0.12%    45MB / 2GB   (2%)
{PROJECT}-app-cache        0.08%    8MB / 2GB    (0%)

Disk Space:            125GB / 250GB (50% used)

Overall Status: HEALTHY

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

Subscribe to this mod's changes

health is a command published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 871 tokens. A static security scan graded it A with 1 finding (makes network calls). It is 92% identical to health, differing in 12 lines, and is treated as a copy.