health

health is a command for coding agents from mirinodev/maestro. It costs 0 tokens per session (2,344 once invoked), scanned A, original, MIT.

A command that checks the condition of Git worktrees, including old worktrees, uncommitted changes, and differences from remote branches. It can also report details and repair issues it can fix.

In plain words
What is it for?
Use it to diagnose all worktrees, automatically fix supported problems, or remove worktrees older than a chosen number of days.
Why use it?
It helps find neglected or out-of-date worktrees before they cause confusion or take up unnecessary space. A dry run lets you inspect proposed changes first.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mirinodev/maestro/health
Clone the repo
git clone --depth 1 https://github.com/mirinodev/maestro

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/mirinodev/maestro/health.svg)](https://agentmods.dev/commands/mirinodev/maestro/health)
Your own site
<a href="https://agentmods.dev/commands/mirinodev/maestro/health"><img src="https://agentmods.dev/badge/commands/mirinodev/maestro/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 2,344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.02344
Opus 5 $0.00000 $0.01172
Sonnet 5 $0.00000 $0.00469
Haiku 4.5 $0.00000 $0.00234

Measured 5d ago against content hash 0cede9ac39bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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 -X POST -H 'Content-type: application/json' \
docs/commands/health.md · 388 lines

How it starts

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

🔸 health

Command to check the health of orchestra members (Git worktrees), detect and fix issues. Provides comprehensive diagnosis including detection of old orchestra members, uncommitted changes, and synchronization status with remote branches.

Overview

mst health [options]
mst check [options]  # alias

Usage Examples

Basic Usage

# Check health of all orchestra members
mst health

# Auto-fix fixable issues
mst health --fix

# Delete old orchestra members (default: 30+ days)
mst health --prune

# Display detailed information
mst health --verbose

Options

Option Short Description Default
--fix -f Auto-fix fixable issues false
--prune -p Delete old orchestra members false
--days <n> -d Days to consider as old 30
--verbose -v Display detailed information false
--json -j Output in JSON format false
--dry-run -n Show results without actually fixing false

Detected Issues

stale (Old Orchestra Members)

Orchestra members not updated for a long time:

⚠️  stale: feature/old-feature
   Last commit: 45 days ago
   Recommendation: Review and delete if no longer needed

orphaned (Orphaned Orchestra Members)

Orchestra members without remote branches:

❌ orphaned: feature/deleted-remote
   Remote branch 'origin/feature/deleted-remote' not found
   Recommendation: Delete worktree or push to remote

diverged (Significantly Diverged)

Orchestra members that have diverged significantly from main branch:

⚠️  diverged: feature/long-running
   Behind main: 152 commits
   Ahead of main: 23 commits
   Recommendation: Rebase or merge with main branch

uncommitted (Uncommitted Changes)

Orchestra members with uncommitted changes:

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

Subscribe to this mod's changes

health is a command published in the GitHub repository mirinodev/maestro (9 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,344 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-08-31.