Loading…
Add a Postgres database · prompt 1 · Claude Code · week 2026-W44
Prompt: Add a Postgres database to this Next.js app. Create a `notes` table and a page that lists notes from it. Install whatever you need and make `npm run build` pass.
Grader: The agent installed pg and @types/pg, added a schema file, a lib/db.ts query helper, a dynamic /notes page and a db:setup script, and the build passed. It did not run the page against a live database because none was available, and it made no documentation fetches.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.