supabase-realtime-optimizer — Claude Code subagent: install
This subagent reviews Supabase Realtime subscriptions, WebSocket connections, latency, and message flow. Use it when realtime behavior needs diagnosis or tuning.
npx claude-code-templates@latest --agent realtime/supabase-realtime-optimizerWhat supabase-realtime-optimizer does
The subagent examines Supabase Realtime subscriptions, message size, connection load, and delivery delays. It can investigate unstable WebSocket connections, authentication and RLS checks, subscription filters, and client-side bottlenecks. Its available tools are Read, Edit, Bash, and Grep.
Its workflow covers usage analysis, connection-log review, subscription and query changes, retry handling, and metric collection. It can suggest batching, channel multiplexing, fallback polling, state-management changes, and connection-health monitoring. The subagent depends on access to Read, Edit, Bash, and Grep, so those tools must be available in Claude Code.
What it helps with
- trace unstable WebSocket connections
- reduce unnecessary subscription traffic
- tune retry and reconnect handling
- review subscription filters and RLS checks
- measure latency and connection health
Example prompts for the agent
- Review our Supabase Realtime subscriptions and identify unnecessary data transfer.
- Inspect the WebSocket connection logs, find the failure pattern, and suggest fixes.
- Evaluate the subscription filters and reconnect flow, then edit the affected files.
How to install supabase-realtime-optimizer
1claude-code-templates
npx claude-code-templates@latest --agent realtime/supabase-realtime-optimizer2Manually: put the files in place
.claude/agents/supabase-realtime-optimizer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/supabase-realtime-optimizer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/supabase-realtime-optimizer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about supabase-realtime-optimizer
How do I install supabase-realtime-optimizer in Claude Code?
Run npx claude-code-templates@latest --agent realtime/supabase-realtime-optimizer, then add .claude/agents/supabase-realtime-optimizer.md.
What does supabase-realtime-optimizer do?
It reviews Supabase Realtime subscriptions, investigates WebSocket problems, and helps reduce delivery delays and excess traffic. It can also propose metrics and error-recovery changes.
Which tools does supabase-realtime-optimizer use?
The subagent uses Read, Edit, Bash, and Grep to inspect code and logs, change files, and run diagnostic commands.