safe-agentic-workflow: Command for Gemini CLI

.gemini/commands/remote/health.toml

health is a command for Gemini CLI from bybren-llc/safe-agentic-workflow. It costs 0 tokens per session (868 once invoked), scanned A, original, MIT.

A command that checks the condition of a remote development environment, including its containers, resources, network access, application health endpoint, and database connection.

In plain words
What is it for?
Use it to inspect Docker container state, CPU and memory use, disk space, HTTP health responses, and PostgreSQL connectivity.
Why use it?
It gathers several operational checks in one place when a remote environment may be unhealthy. This helps distinguish application failures from container, resource, or connectivity problems.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is bybren-llc/safe-agentic-workflow's own configuration. It tells Gemini CLI how to work on safe-agentic-workflow 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 safe-agentic-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bybren-llc/safe-agentic-workflow. 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/safe-agentic-workflow/main/.gemini/commands/remote/health.toml
Clone the repo
git clone --depth 1 https://github.com/bybren-llc/safe-agentic-workflow

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/safe-agentic-workflow/health.svg)](https://agentmods.dev/commands/bybren-llc/safe-agentic-workflow/health)
Your own site
<a href="https://agentmods.dev/commands/bybren-llc/safe-agentic-workflow/health"><img src="https://agentmods.dev/badge/commands/bybren-llc/safe-agentic-workflow/health.svg" alt="Measured on agentmods" 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 868 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 original No closer match found 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.00868
Opus 5 $0.00000 $0.00434
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

Measured 4d ago against content hash b973d30053e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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

Copies of this mod

2 near-identical copies found in the catalogue:

  • health — 100% identical, 0 lines differ
  • health — 92% identical, 12 lines differ
.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. Redis/Cache Connectivity

Test Redis connection:

ssh -i {SSH_KEY_PATH} {REMOTE_USER}@{REMOTE_HOST} "docker exec {REDIS_CONTAINER} redis-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}-redis          Healthy  Up 2 hours

Resource Usage:
Container               CPU      Memory
{PROJECT}-app          2.45%    312MB / 2GB  (15%)
{PROJECT}-postgres     0.12%    45MB / 2GB   (2%)
{PROJECT}-redis        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. 4d ago First seen · 127 lines · 0 tokens per session scan A b973d30053e1

Subscribe to this mod's changes

health is a command published in the GitHub repository bybren-llc/safe-agentic-workflow (406 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 868 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.