Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 11 min read How-to mediumAdept

How to Build a Full-Stack AI Agent

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.

Related posts

  • Design Decisions Behind app.build, a Prompt-to-App Generator

    Neon mediumAdept

    app.build is an open-source prompt-to-app generator that trades breadth for reliability by restricting output to CRUD web apps on a fixed TypeScript/Postgres stack. A finite state machine drives specialized actors (draft, handler, frontend, edit) that run concurrently and use tree search with early termination, and no candidate is accepted until it passes TypeScript compilation, unit tests, custom linters targeting LLM failure modes, and Playwright smoke tests. The agent is stateless, serializing state in payloads so it scales on ECS. A lightweight top-level agent (gemini-flash) gathers requirements, and context engineering keeps prompts encapsulated per step, with system-prompt rules mined from failed-generation logs.

  • Neon for Agent Platforms: A Companion Skill for the AI Agent Program

    Neon mediumAdept

    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.

  • Reusable Prompts: The Future of Starter Templates

    Neon mediumAdept

    Starter templates can be complemented by reusable, atomic setup "recipes": Markdown prompts that AI coding agents apply to existing codebases, modeled on shadcn/ui's copy-the-code philosophy. Recipes declare prerequisites, which lets them compose, and cookbooks bundle them into ordered sequences. They also encode stack-specific decisions agents would otherwise get wrong, such as using node-postgres instead of Neon's serverless driver on Vercel Fluid Compute with connection pooling. Recipes are served as MCP resources with slash-command prompts. Long-lived skills ship as small per-cookbook Claude Code plugins whose skill files are one-line pointers, which keeps them from bloating the agent's context.

  • 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.

  • The agent builds the app, the user claims the database: how Ideavo does it

    Neon easyNovice

    Ideavo, a bring-your-own-key AI app builder, has its agent provision a separate Neon Postgres project for every generated app through the Neon API. The connection string goes into the app's .env as DATABASE_URL, and the agent then sets up Drizzle and runs migrations without the credential ever entering the LLM context. Users can later take ownership of the database through Neon's claim/transfer flow while keeping the same connection string. The team chose Neon over Supabase's bundled services and over self-hosting a database fleet to avoid lock-in and keep operational load low for a small team.

The quest for software engineering knowledge.

Look:
Layout: