Neon for Agent Platforms: A Companion Skill for the AI Agent Program
neon-for-agent-platforms is an open-source companion Agent Skill and set of TypeScript scripts for running fleets of Neon Postgres databases on agent platforms. It covers a dual-org model that separates sponsored free-tier and paid customers, with one project per tenant transferred to the paid org on upgrade. It also covers copy-on-write dev and preview branches with shorter suspend timeouts to keep costs predictable, branch-based compound checkpoints, and the consumption API for per-customer cost attribution. Both skills install via npx, and the scripts can also be run directly against a Neon API key and org ID.
Related posts
- Inside Skydive: building virtual coworkers, powered by Neon
Neon mediumAdept
Skydive's specialized AI coworker agents provision their own isolated Neon Postgres backends mid-task when they need durable state beyond an ephemeral sandbox. Provisioning averages 0.7s and cold start to first row 1.13s. A single platform command creates a Neon project on Postgres 18, swaps the direct URI for the pooler host, and injects it as DATABASE_URL, while the control plane stores only project and branch IDs. The Neon API client uses keep-alive, three retries with exponential backoff and normalized errors. Agents choose among three size tiers with scale-to-zero for cost efficiency.
- Inside a Kylon room, where people and agents build apps on Neon
Neon easyNovice
Kylon, a shared workspace where teams and AI agents build internal apps like CRMs and invoice trackers, maps its product directly onto Neon resources: one Neon project per workspace, one database per app, and one branch per draft. Agents apply schema migrations and changes to a branch copy of real data, a person reviews the preview, and production changes only on publish. Scale-to-zero makes many mostly idle agent-built databases affordable. The Neon API, point-in-time restore and MCP let agents provision, manage and undo changes without anyone opening a console.
- How to Build a Full-Stack AI Agent
Neon mediumAdept
Aileen is an open-source codegen agent that generates full-stack web apps, combining Next.js on Vercel, Mastra for the agent loop, Assistant UI for persisted chat, Freestyle.sh for Git repos and dev sandboxes, and Neon for both the control-plane database and per-app Postgres with Neon Auth. A control plane provisions an isolated database, repo, auth config and dev server per project. The agent then iterates for up to 50 steps using custom filesystem and exec tools, Neon and Context7 MCP servers, and Drizzle migrations. Each version pairs a Git commit hash with a Neon snapshot ID plus versioned secrets, so code and data can be rolled back together, and long-running setup runs through Vercel Workflows.
- Just landed in the Neon CLI
Neon mediumAdept
The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on `neon link`, `neon checkout` and `neon env pull`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars. New commands include `neon inspect db` for read-only Postgres diagnostics (bloat, unused indexes, locks, pg_stat_statements outliers, cache hit rate), `neon diff` for git-style schema diffs, snapshots, project-scoped API keys and credential profiles for CI and agents, and a raw `neon api` fallback. `neon init` sets up MCP and agent skills in one step, and a suggested AGENTS.md snippet steers coding agents toward the branch-per-feature loop.
- Introducing neon.ts: infrastructure as code for your Neon projects
Neon mediumAdept
neon.ts is a TypeScript infrastructure-as-code file for Neon projects that declares services (Postgres, Neon Auth, Data API, with functions, buckets and an AI gateway coming under a preview block) and provisions them with `neon config plan` and `neon config apply`. A companion `@neondatabase/env` package provides `parseEnv`, which validates `process.env` against the declared services and returns a typed env object, with optional per-app subsets. A programmable `branch` function sets TTL, autoscaling limits and scale-to-zero for new branches created via `neon checkout`. Type-level encoding of service dependencies turns cryptic `never` errors into messages that explain the fix, such as requiring Neon Auth for the Data API.