mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 01:15:03 +03:00
docs(observability): rename "Hire an agent" to "Agent prompts" (#51148)
The "Hire an agent" and "monitor" wording oversold the feature: it is just a prompt you give an agent to check health, security, performance, or resources, optionally on a schedule. Rename the group to "Agent prompts", drop "monitor" from the four child pages (Health, Security, Performance, Resources), and use plainer framing across the landing page and observability hub. URL slugs are unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Renamed the Observability section to “Agent prompts” and updated its page titles and descriptions to describe project checks. * Clarified that prompts read project data without changing it, and that findings can be sent through existing harness connections. * Updated setup guidance to refer to running prompts and using “checks” in task names. * Renamed the Health, Security, Performance, and Resources entries. The related links, schedules, and reporting details remain unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
da2d0c46d7
commit
26010d80ce
11 files changed
+49
-49
No files matched your search
@@ -3093,16 +3093,16 @@ export const telemetry: NavMenuConstant = {
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Hire an agent',
|
||||
name: 'Agent prompts',
|
||||
items: [
|
||||
{ name: 'Set up an agent', url: '/guides/observability/automate-with-agents' },
|
||||
{ name: 'Health monitor', url: '/guides/observability/automate-with-agents/health' },
|
||||
{ name: 'Security monitor', url: '/guides/observability/automate-with-agents/security' },
|
||||
{ name: 'Overview', url: '/guides/observability/automate-with-agents' },
|
||||
{ name: 'Health', url: '/guides/observability/automate-with-agents/health' },
|
||||
{ name: 'Security', url: '/guides/observability/automate-with-agents/security' },
|
||||
{
|
||||
name: 'Performance monitor',
|
||||
name: 'Performance',
|
||||
url: '/guides/observability/automate-with-agents/performance',
|
||||
},
|
||||
{ name: 'Resource monitor', url: '/guides/observability/automate-with-agents/usage' },
|
||||
{ name: 'Resources', url: '/guides/observability/automate-with-agents/usage' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Observability
|
||||
description: 'Read project data, diagnose issues, and hire an agent to monitor your project'
|
||||
description: 'Read project data, diagnose issues, and run agent prompts to check your project'
|
||||
---
|
||||
|
||||
Use project data to understand what is happening, investigate issues, and give an agent repeatable checks to run.
|
||||
@@ -15,9 +15,9 @@ Query logs for events, inspect database statistics, or review advisor findings.
|
||||
|
||||
Run [detection checks](/docs/guides/observability/detecting) to identify health, security, performance, or capacity issues. Take the resulting error code, time window, or affected object to the [troubleshooting guides](/docs/guides/troubleshooting), then rerun the check after a fix.
|
||||
|
||||
## Hire an agent
|
||||
## Agent prompts
|
||||
|
||||
Give an agent recurring checks to run and findings to report. [Set up an agent](/docs/guides/observability/automate-with-agents) with read-only access to your project.
|
||||
Give an agent a prompt to check your project and report issues to fix. [See the prompts](/docs/guides/observability/automate-with-agents) and run them with read-only access to your project.
|
||||
|
||||
<ContentListings id="telemetry-hire-agent" />
|
||||
|
||||
|
||||
@@ -1,33 +1,33 @@
|
||||
---
|
||||
id: 'automate-with-agents'
|
||||
title: 'Hire an agent'
|
||||
subtitle: 'Run a read-only monitoring routine in your own agent harness.'
|
||||
description: 'Choose and set up a Health, Security, Performance, or Resource monitor in Claude, Codex, or Cursor.'
|
||||
title: 'Agent prompts'
|
||||
subtitle: 'Give an agent a prompt to check your project and report issues to fix.'
|
||||
description: 'Run a Health, Security, Performance, or Resource prompt in Claude, Codex, or Cursor.'
|
||||
---
|
||||
|
||||
This guide explains how to run a Supabase monitoring agent in your own harness. Each agent is a prompt plus a schedule. It reads project data and reports findings. It does not change the project.
|
||||
Each prompt tells an agent to check one area of your project — health, security, performance, or resources — and report issues worth fixing. It reads project data read-only and changes nothing. Run it on demand, or put it on a schedule.
|
||||
|
||||
## Choose a routine
|
||||
## Choose a prompt
|
||||
|
||||
Start with one monitor. Add another only when the project needs a different source or cadence.
|
||||
Start with one prompt. Add another only when you need a different source or cadence.
|
||||
|
||||
| Monitor | What it watches | Default cadence | Use it when |
|
||||
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | --------------- | -------------------------------------------------------------- |
|
||||
| [Health monitor](/docs/guides/observability/automate-with-agents/health) | API and Auth server errors, error-rate spikes, connection pressure | Hourly | You need incident detection and regular feedback loops |
|
||||
| [Security monitor](/docs/guides/observability/automate-with-agents/security) | Security Advisor findings, authentication and authorization failures | Daily | You need a regular access-control and configuration review |
|
||||
| [Performance monitor](/docs/guides/observability/automate-with-agents/performance) | Slow queries, lock waits, long-running sessions, Performance Advisor findings | Hourly | You need query and database performance checks |
|
||||
| [Resource monitor](/docs/guides/observability/automate-with-agents/usage) | Request, error, storage, table, and connection growth | Daily | You need to identify growth before it reaches a resource limit |
|
||||
| Prompt | What it checks | Suggested cadence | Use it when |
|
||||
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------- | -------------------------------------------------------------- |
|
||||
| [Health](/docs/guides/observability/automate-with-agents/health) | API and Auth server errors, error-rate spikes, connection pressure | Hourly | You need incident detection and regular feedback loops |
|
||||
| [Security](/docs/guides/observability/automate-with-agents/security) | Security Advisor findings, authentication and authorization failures | Daily | You need a regular access-control and configuration review |
|
||||
| [Performance](/docs/guides/observability/automate-with-agents/performance) | Slow queries, lock waits, long-running sessions, Performance Advisor findings | Hourly | You need query and database performance checks |
|
||||
| [Resources](/docs/guides/observability/automate-with-agents/usage) | Request, error, storage, table, and connection growth | Daily | You need to identify growth before it reaches a resource limit |
|
||||
|
||||
For a small project, run the most relevant routine daily or weekly and include the other categories in its prompt. Split it into specialized monitors only when you need different owners, schedules, or alert thresholds.
|
||||
For a small project, run the most relevant prompt daily or weekly and fold the other categories into it. Split into separate prompts only when you need different owners, schedules, or alert thresholds.
|
||||
|
||||
## Run the routine
|
||||
## Run a prompt
|
||||
|
||||
1. Connect the [Supabase MCP server](/docs/guides/ai-tools/mcp) with `project_ref` and `read_only=true`.
|
||||
2. Open the monitor that matches the job from the table above.
|
||||
2. Open the prompt that matches the job from the table above.
|
||||
3. Set it up in Claude, Codex, Cursor, or copy the prompt into another harness.
|
||||
4. Run it on demand first. Then put the same prompt on a schedule.
|
||||
|
||||
Each agent page describes what it will output. Send those findings through the connections your harness already has, such as Linear in Codex.
|
||||
Each prompt page describes what it will output. Send those findings through the connections your harness already has, such as Linear in Codex.
|
||||
|
||||
Scheduled tasks start a fresh context on every run, so the prompt is self-contained. Review the first runs before you rely on the schedule.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 'automate-with-agents-health'
|
||||
title: 'Health monitor'
|
||||
title: 'Health'
|
||||
subtitle: 'A read-only agent that checks API and Auth errors and Postgres connection pressure once per hour.'
|
||||
description: 'Hourly monitoring for server errors and connection pressure'
|
||||
description: 'Hourly checks for server errors and connection pressure'
|
||||
---
|
||||
|
||||
```mermaid
|
||||
@@ -28,7 +28,7 @@ It uses `query_logs` and read-only `execute_sql` on project-scoped [Supabase MCP
|
||||
|
||||
## What it will output
|
||||
|
||||
Health monitor reports new or changed problems with the affected service, measured error rate or connection usage, and a next investigation step. See [what triggers a health report](/docs/guides/observability/detecting#health).
|
||||
This prompt reports new or changed problems with the affected service, measured error rate or connection usage, and a next investigation step. See [what triggers a health report](/docs/guides/observability/detecting#health).
|
||||
|
||||
If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 'automate-with-agents-performance'
|
||||
title: 'Performance monitor'
|
||||
title: 'Performance'
|
||||
subtitle: 'A read-only agent that inspects query performance, blocking sessions, and Performance Advisor findings once per hour.'
|
||||
description: 'Hourly monitoring for query regressions, blocking sessions, and performance findings'
|
||||
description: 'Hourly checks for query regressions, blocking sessions, and performance findings'
|
||||
---
|
||||
|
||||
```mermaid
|
||||
@@ -29,7 +29,7 @@ It uses `get_advisors` and read-only `execute_sql` on project-scoped [Supabase M
|
||||
|
||||
## What it will output
|
||||
|
||||
Performance monitor reports new or changed findings with the affected query, session, or object, plus an investigation and verification step. It does not infer a regression without comparable measurements or recommend cancellation based only on query age. See [what triggers a performance report](/docs/guides/observability/detecting#performance).
|
||||
This prompt reports new or changed findings with the affected query, session, or object, plus an investigation and verification step. It does not infer a regression without comparable measurements or recommend cancellation based only on query age. See [what triggers a performance report](/docs/guides/observability/detecting#performance).
|
||||
|
||||
If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 'automate-with-agents-security'
|
||||
title: 'Security monitor'
|
||||
title: 'Security'
|
||||
subtitle: 'A read-only agent that reviews Security Advisor findings and authentication and authorization failures each day.'
|
||||
description: 'Daily review of security findings and access failures'
|
||||
---
|
||||
@@ -29,7 +29,7 @@ It uses `get_advisors` and `query_logs` on project-scoped, read-only [Supabase M
|
||||
|
||||
## What it will output
|
||||
|
||||
Security monitor reports new or changed advisor findings and access-failure spikes, with the affected object or service and a next investigation step. A spike is a review signal, not proof of an attack. See [what triggers a security report](/docs/guides/observability/detecting#security).
|
||||
This prompt reports new or changed advisor findings and access-failure spikes, with the affected object or service and a next investigation step. A spike is a review signal, not proof of an attack. See [what triggers a security report](/docs/guides/observability/detecting#security).
|
||||
|
||||
If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
id: 'automate-with-agents-usage'
|
||||
title: 'Resource monitor'
|
||||
title: 'Resources'
|
||||
subtitle: 'A read-only agent that tracks resource and request growth and estimates when a confirmed limit could be reached.'
|
||||
description: 'Daily monitoring for resource growth and approaching limits'
|
||||
description: 'Daily checks for resource growth and approaching limits'
|
||||
---
|
||||
|
||||
```mermaid
|
||||
@@ -30,7 +30,7 @@ It uses read-only `execute_sql` and `query_logs` on project-scoped [Supabase MCP
|
||||
|
||||
## What it will output
|
||||
|
||||
Resource monitor reports new or changed request-growth signals and resource-limit risks. When saved measurements support a forecast within 14 days, it includes the estimated date, calculation, and scaling guide. If history or a matching limit is missing, it explains what it needs instead of inventing a date. See [what triggers a resource report](/docs/guides/observability/detecting#usage).
|
||||
This prompt reports new or changed request-growth signals and resource-limit risks. When saved measurements support a forecast within 14 days, it includes the estimated date, calculation, and scaling guide. If history or a matching limit is missing, it explains what it needs instead of inventing a date. See [what triggers a resource report](/docs/guides/observability/detecting#usage).
|
||||
|
||||
If a check cannot run, the agent tells you what is missing. Clear checks and unchanged findings stay quiet.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ title: 'Detection checks'
|
||||
description: 'Repeatable health, security, performance, and capacity checks with explicit inputs and outcomes'
|
||||
---
|
||||
|
||||
Use these checks to identify evidence worth investigating. A finding does not establish a cause. The specialist [monitoring agents](/docs/guides/observability/automate-with-agents) use these same checks.
|
||||
Use these checks to identify evidence worth investigating. A finding does not establish a cause. The [agent prompts](/docs/guides/observability/automate-with-agents) use these same checks.
|
||||
|
||||
## Before running checks
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { AiPromptId } from './ai-prompts.data'
|
||||
export const monitoringAgents = {
|
||||
health: {
|
||||
id: 'health',
|
||||
name: 'Health monitor',
|
||||
name: 'Health',
|
||||
promptId: 'monitoring-agent-health' as AiPromptId,
|
||||
schedule: {
|
||||
cadence: 'once per hour',
|
||||
@@ -15,7 +15,7 @@ export const monitoringAgents = {
|
||||
},
|
||||
security: {
|
||||
id: 'security',
|
||||
name: 'Security monitor',
|
||||
name: 'Security',
|
||||
promptId: 'monitoring-agent-security' as AiPromptId,
|
||||
schedule: {
|
||||
cadence: 'once per day',
|
||||
@@ -26,7 +26,7 @@ export const monitoringAgents = {
|
||||
},
|
||||
performance: {
|
||||
id: 'performance',
|
||||
name: 'Performance monitor',
|
||||
name: 'Performance',
|
||||
promptId: 'monitoring-agent-performance' as AiPromptId,
|
||||
schedule: {
|
||||
cadence: 'once per hour',
|
||||
@@ -37,7 +37,7 @@ export const monitoringAgents = {
|
||||
},
|
||||
usage: {
|
||||
id: 'usage',
|
||||
name: 'Resource monitor',
|
||||
name: 'Resources',
|
||||
promptId: 'monitoring-agent-usage' as AiPromptId,
|
||||
schedule: {
|
||||
cadence: 'once each morning',
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
|
||||
describe('getMonitoringAgent', () => {
|
||||
it('returns a registered agent', () => {
|
||||
expect(getMonitoringAgent('health').name).toBe('Health monitor')
|
||||
expect(getMonitoringAgent('health').name).toBe('Health')
|
||||
})
|
||||
|
||||
it('fails clearly for an unknown id', () => {
|
||||
|
||||
@@ -98,14 +98,14 @@ export function getMonitoringAgentHarnesses(agent: MonitoringAgent): MonitoringA
|
||||
? 'https://code.claude.com/docs/en/desktop-scheduled-tasks'
|
||||
: 'https://code.claude.com/docs/en/routines',
|
||||
intro: isSubHourly
|
||||
? `Create a Claude Desktop scheduled task that runs ${agent.name} ${cadence}.`
|
||||
: `Create a Claude routine that runs ${agent.name} ${cadence}.`,
|
||||
? `Create a Claude Desktop scheduled task that runs the ${agent.name} prompt ${cadence}.`
|
||||
: `Create a Claude routine that runs the ${agent.name} prompt ${cadence}.`,
|
||||
steps: [
|
||||
MCP_STEP,
|
||||
isSubHourly
|
||||
? 'In the Claude Code Desktop app, open **Routines**, click **New routine**, and choose **Local**.'
|
||||
: 'Open [Claude routines](https://claude.ai/code/routines) or run `/schedule` in Claude Code.',
|
||||
`Name it ${agent.name}. Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Set the schedule to ${cadence}.`,
|
||||
`Name it ${agent.name} checks. Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Set the schedule to ${cadence}.`,
|
||||
],
|
||||
note: isSubHourly
|
||||
? 'Cloud routines have a 1-hour minimum. Use a [Desktop scheduled task](https://code.claude.com/docs/en/desktop-scheduled-tasks) for this cadence.'
|
||||
@@ -117,11 +117,11 @@ export function getMonitoringAgentHarnesses(agent: MonitoringAgent): MonitoringA
|
||||
icon: 'openai',
|
||||
hasDistinctDarkIcon: true,
|
||||
docsUrl: 'https://developers.openai.com/codex/app/automations',
|
||||
intro: `Create a Codex scheduled task that runs ${agent.name} ${cadence}.`,
|
||||
intro: `Create a Codex scheduled task that runs the ${agent.name} prompt ${cadence}.`,
|
||||
steps: [
|
||||
MCP_STEP,
|
||||
'Open **Scheduled** in the ChatGPT desktop app, or ask Codex to create a standalone scheduled task.',
|
||||
`Name it ${agent.name}. Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Set the schedule to ${cadence}. Each run should start a new chat.`,
|
||||
`Name it ${agent.name} checks. Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Set the schedule to ${cadence}. Each run should start a new chat.`,
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -130,11 +130,11 @@ export function getMonitoringAgentHarnesses(agent: MonitoringAgent): MonitoringA
|
||||
icon: 'cursor',
|
||||
hasDistinctDarkIcon: true,
|
||||
docsUrl: 'https://cursor.com/docs/cloud-agent/automations',
|
||||
intro: `Create a Cursor automation that runs ${agent.name} ${cadence}.`,
|
||||
intro: `Create a Cursor automation that runs the ${agent.name} prompt ${cadence}.`,
|
||||
steps: [
|
||||
MCP_STEP,
|
||||
'Create an automation in the Agents Window, at [cursor.com/automations](https://cursor.com/automations), or with the `/automate` skill.',
|
||||
`Name it ${agent.name}. Use a scheduled trigger (${cadence}, cron \`${cron}\`). Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Keep the agent read-only, with no repository.`,
|
||||
`Name it ${agent.name} checks. Use a scheduled trigger (${cadence}, cron \`${cron}\`). Paste the [prompt](#${AGENT_PROMPT_ANCHOR}). Keep the agent read-only, with no repository.`,
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user