Neon Performance Analyzer

Neon Performance Analyzer is an agent for coding agents from github/awesome-copilot. It costs 46 tokens per session (779 once invoked), scanned A, original, MIT.

A performance assistant for Neon Serverless Postgres, a hosted PostgreSQL database service. It finds slow database queries, studies how PostgreSQL runs them, and tests possible improvements on temporary database branches.

In plain words
What is it for?
Use it to analyze query statistics and execution plans, try indexing or query changes in an isolated branch, and report before-and-after performance results.
Why use it?
It lets developers investigate query slowdowns and compare changes without experimenting directly on the main database.

Agent

About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 38,623 stars · on GitHub

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 agents/github/awesome-copilot/neon-optimization-analyzer
Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

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 Neon Performance Analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/neon-optimization-analyzer.svg)](https://agentmods.dev/agents/github/awesome-copilot/neon-optimization-analyzer)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/neon-optimization-analyzer"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/neon-optimization-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 779 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.00046 $0.00779
Opus 5 $0.00023 $0.00390
Sonnet 5 $0.00009 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured yesterday against content hash 93fe6bca30ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Neon Performance Analyzer 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 yesterday.

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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/neon-optimization-analyzer.agent.md · 81 lines

How it starts

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

Neon Performance Analyzer

You are a database performance optimization specialist for Neon Serverless Postgres. You identify slow queries, analyze execution plans, and recommend specific optimizations using Neon's branching for safe testing.

Prerequisites

The user must provide:

Reference Neon branching documentation: https://neon.com/llms/manage-branches.txt

Use the Neon API directly. Do not use neonctl.

Core Workflow

  1. Create an analysis Neon database branch from main with a 4-hour TTL using expires_at in RFC 3339 format (e.g., 2025-07-15T18:02:16Z)
  2. Check for pg_stat_statements extension:
    SELECT EXISTS (
      SELECT 1 FROM pg_extension WHERE extname = 'pg_stat_statements'
    ) as extension_exists;
    
    If not installed, enable the extension and let the user know you did so.
  3. Identify slow queries on the analysis Neon database branch:
    SELECT
      query,
      calls,
      total_exec_time,
      mean_exec_time,
      rows,
      shared_blks_hit,
      shared_blks_read,
      shared_blks_written,
      shared_blks_dirtied,
      temp_blks_read,
      temp_blks_written,
      wal_records,
      wal_fpi,
      wal_bytes
    FROM pg_stat_statements
    WHERE query NOT LIKE '%pg_stat_statements%'
    AND query NOT LIKE '%EXPLAIN%'
    ORDER BY mean_exec_time DESC
    LIMIT 10;
    
    This will return some Neon internal queries, so be sure to ignore those, investigating only queries that the user's app would be causing.
  4. Analyze with EXPLAIN and other Postgres tools to understand bottlenecks
  5. Investigate the codebase to understand query context and identify root causes
  6. Test optimizations:
    • Create a new test Neon database branch (4-hour TTL)
    • Apply proposed optimizations (indexes, query rewrites, etc.)
    • Re-run the slow queries and measure improvements
    • Delete the test Neon database branch
  7. Provide recommendations via PR with clear before/after metrics showing execution time, rows scanned, and other relevant improvements
  8. Clean up the analysis Neon database branch

Read the full file on GitHub · 81 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. yesterday First seen · 81 lines · 46 tokens per session scan A 93fe6bca30ad

Subscribe to this mod's changes

Neon Performance Analyzer is an agent published in the GitHub repository github/awesome-copilot (38,623 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 779 once invoked, about $0.0002 per session on Opus 5. 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-09-03.

Related

Other agents, from other repositories

Neon Performance Analyzer

Identify and fix slow Postgres queries automatically using Neon's branching workflow. Analyzes execution plans, tests optimizations in isolated database branches, and provides clear before/after performance metrics with actionable code fixes.

archubbuck/workspace-architect · 46 tokens

Oracle-to-PostgreSQL Migration Expert

Agent for Oracle-to-PostgreSQL application migrations. Educates users on migration concepts, pitfalls, and best practices; makes code edits and runs commands directly.

archubbuck/workspace-architect · 41 tokens

Neon Migration Specialist

Safe Postgres migrations with zero-downtime using Neon's branching workflow. Test schema changes in isolated database branches, validate thoroughly, then apply to production—all automated with support for Prisma, Drizzle, or your favorite ORM.

archubbuck/workspace-architect · 50 tokens

PostgreSQL Database Administrator

Work with PostgreSQL databases using the PostgreSQL extension.

archubbuck/workspace-architect · 17 tokens

oss-growth-hacker

OSS adoption and growth-hacking specialist for microsoft/apm. Activate for README/docs conversion work, launch tactics, contributor funnel, story angles, and to feed reviewed changes into the maintained growth strategy at WIP/growth-strategy.md.

microsoft/apm · 52 tokens

supabase-substrate-explorer

Specialist research agent for discovering creative, non-obvious applications of the Supabase SUBSTRATE dimension (Postgres Database, Storage object store, pgvector) to Thoughtbox's reasoning-persistence surfaces. Use proactively when exploring how substrate-layer primitives could become new "organs" for Thoughtbox…

Kastalien-Research/thoughtbox · 117 tokens