health-check

health-check is a command for coding agents from intellegix/intellegix-code-agent-toolkit. It costs 0 tokens per session (8,126 once invoked), scanned A, original, MIT.

A read-only production health review for a portfolio app, covering the user interface, database records, audit log, and user activity. An audit log is a record of important actions taken in an application.

In plain words
What is it for?
Use it to run end-to-end checks, inspect database consistency, review logs and activity, and optionally create infrastructure setup files for later manual review.
Why use it?
It finds problems across the main parts of an app without changing production data or submitting actions as a real user.

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/intellegix/intellegix-code-agent-toolkit/health-check
Clone the repo
git clone --depth 1 https://github.com/intellegix/intellegix-code-agent-toolkit

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-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/health-check.svg)](https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/health-check)
Your own site
<a href="https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/health-check"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/health-check.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 8,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00000 $0.08126
Opus 5 $0.00000 $0.04063
Sonnet 5 $0.00000 $0.01625
Haiku 4.5 $0.00000 $0.00813

Measured 5d ago against content hash 0488c784fef5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

health-check scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/health-check.md · 567 lines

How it starts

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

/health-check — Read-Only 3-Layer Production Health Check

Perform a comprehensive, read-only end-to-end review of any portfolio app across three layers — Frontend (E2E), Database integrity, and Audit Log & User Activity — and produce a structured, observations-only report. Optionally, on explicit opt-in, generate (never apply) the infrastructure provisions needed so future health-checks are possible.

Architecture: P0 (Target & Safety Gate, one confirmation) → P1 (Frontend E2E, read-only, request-capped) → P2 (Database integrity via hc_db.py) → P3 (Audit log & user activity) → P4 (Report). Then, only with --provision: a separate plan-mode path that writes a local provision.sql for manual review.

TRUST CONTRACT — READ FIRST. The default run is 100% read-only. It never mutates production. Every database query flows through hc_db.py, the single code-enforced read-only boundary (SQLite opened mode=ro; Postgres runs every query inside a server-enforced READ ONLY transaction and hard-refuses if it cannot establish one). The frontend layer only navigates — it never submits a form, clicks a destructive control, or logs in as a real user. The --provision path is the ONLY thing that produces change, and even then it merely writes a local .sql file for you to review and apply manually — it never connects to a database and never auto-applies anything.

Cost: Free — local tools + browser-bridge MCP + optional Perplexity login session. No API keys required.

Guiding principle: health check, not a sprint. Full visibility and peace of mind — not change.


Input

$ARGUMENTS = <repo-path-or-app-name> [flags]

Flag Description Default
--provision Opt-in: enter plan mode and generate a local provision.sql (read-only role + audit_log table as needed). Never applies it. off
--deep Exact row counts (--exact) + full sequential scans instead of approximate pg_stat estimates. Recommend off-peak — heavier DB load. off (approximate)
--skip-frontend Skip P1 (frontend E2E). run
--skip-db Skip P2 (database integrity). run
--skip-audit Skip P3 (audit log & user activity). run
--sentinel Force the Sentinel cross-reference in P3 (otherwise auto-detected). auto-detect
--url <override> Override the auto-detected deployed/prod URL. auto-detect
--db <override> Override the auto-detected DATABASE_URL. auto-detect
--off-peak-ack Acknowledge that you are knowingly running against the busy app now (skips the off-peak nag for the PO system). off

Read the full file on GitHub · 567 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 · 567 lines · 0 tokens per session scan A 0488c784fef5

Subscribe to this mod's changes

health-check is a command published in the GitHub repository intellegix/intellegix-code-agent-toolkit (57 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 8,126 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.