When something breaks, an agent should not have to guess.Documentation Index
Fetch the complete documentation index at: https://docs.insforge.dev/llms.txt
Use this file to discover all available pages before exploring further.
npx @insforge/cli diagnose turns the backend’s own signals into something an agent can fetch and act on directly: advisor findings with remediations, database health checks, instance metrics, and aggregated error logs. Each finding comes with a fix, so “what is wrong” and “what to do about it” arrive together. The agent pulls all of this itself, with no dashboard in the loop, which is what lets it close security gaps like a permissive RLS policy before they leak data.

Full health report
Rundiagnose with no subcommand for everything at once:
--json mode the agent gets it all as structured data.
Backend Advisor
The advisor scans for security, performance, and health issues and writes a remediation for each one. The dashboard shows the findings with a “Copy Remediation” button, but the agent does not need the dashboard: it fetches the same scan directly with--json and applies the fix itself, so a security issue gets closed without waiting for a human to notice it.
Targeted checks
Each part of the report is also available on its own:| Command | What it checks |
|---|---|
diagnose advisor | Latest advisor scan: security, performance, and health issues |
diagnose db | Database health: connections, table bloat, index usage |
diagnose metrics | Instance metrics: CPU, memory, disk, and network |
diagnose logs | Error-level logs aggregated across every backend source |
insforge.logs, postgREST.logs, postgres.logs, function.logs, and function-deploy.logs.
Let the agent interpret it
diagnose --ai hands the collected diagnostic data to a model and returns a plain-language analysis:
Next steps
- Apply advisor remediations as migrations so the fix is versioned.
- Rehearse a risky fix on a backend branch before it touches production.
- Read the CLI harness for the rest of the command surface.