More in Migrations & upgrades.
Upgrade a plugin to a new framework alpha with Codex CLI
A one-line Codex CLI loop read the Datasette 1.0a20 upgrade docs, fixed the failing tests and got a plugin passing again.
Result: WorkedTool: OpenAI Codex CLILevel: Advanced
Outcome
A one-line codex exec loop read the Datasette 1.0a20 upgrade docs, fixed the failing tests, and got the datasette-checkbox plugin passing again. The author first found the plugin's tests passed on the new alpha because they never checked that the table page loaded, so the test was changed to trigger the error before Codex got the job. The author notes fixing it by hand would probably have been faster, since the fix was small, then tested the fix manually, committed it and confirmed the released plugin worked in a fresh install.
Evidence: Screenshots or logsThe source shows screenshots, a transcript or the AI's output.
WorkedEvidence: Screenshots or logsPosted Last checked
- Source checked
- Results shared. The poster described their results. This doesn't mean proof is attached.
Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.
How to use this
- Tap Copy prompt.
- Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
- Paste it into the message box.
- Send it, then read the answer before acting on it.
New to this? What's a prompt?
A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.
Prompt
These are the person's own words, as shared in the source.
Run the command tadd and look at the errors and then read ~/dev/datasette/docs/upgrade-1.0a20.md and apply fixes and run the tests again and get them to pass
Try this in:
Sends the Original prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Goal: Upgrade this plugin to the new Datasette alpha so all tests pass. Inputs (fill in or confirm): - The plugin repo path - Upgrade guide path (~/dev/datasette/docs/upgrade-1.0a20.md) - Test command (tadd) - Python version and how tests are run in CI Rules: - Run the tests first and save the full error list. - Read the upgrade guide and map each error to a guide section before editing. - Make the smallest change that fixes each error; don't refactor unrelated code. - Keep a short changelog entry describing the compatibility change. - Read the whole upgrade guide first and list the changes that apply to this plugin. - Fix one failing test at a time and rerun the suite after each change. - Don't change test expectations just to make them pass; explain any test you think is wrong. - Bump the Datasette dependency pin and note it in the changelog. Checkpoint: Don't commit, bump versions or publish without asking. If you get stuck: If an error isn't covered by the guide after two attempts, stop and show it to me. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: Final full test run must be green; list any warnings that remain. Output: A summary of errors → fixes with file names, and the final test output. Done when: the test suite passes on the new alpha with a minimal diff.
AI tool
Source
- Posted
- by Simon Willison
- Last checked
- Method:
- How we verify
https://simonwillison.net/2025/Nov/6/upgrading-datasette-plugins/
Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.
More in Migrations & upgrades
Migrate a 180M-row Postgres table to bigint with Claude Code
Claude Code wrote most of a nine-day bigint migration with a 1.4-second lock, but twice suggested steps that would have failed.
WorkedClaude CodeAdvancedView CaseMigrate two websites from WordPress to Wagtail with Claude Code
Over a weekend Claude Code moved two sites from WordPress to Wagtail, including server setup and testing; the poster says nothing broke.
WorkedClaude CodeEvidence: Described by posterAdvancedView CasePort a backend to Convex in four hours with Factory's Droid
The poster reports Factory Droid ported a tRPC/Drizzle backend to Convex in about 4 hours, with some bugs left to fix.
WorkedFactory DroidEvidence: Described by posterAdvancedView CaseMigrate a 50-screen app from Firebase to Supabase with Claude Code
Going feature by feature with Claude Code, the poster moved about 85% of a 50-screen app from Firebase to Supabase in 10–20 days.
WorkedClaude CodeAdvancedPoster says: ~85% migrated in 10–20 days
View CaseMigrate 180 microservices to a new framework version with Cursor agents
Brex reports its self-hosted Cursor agents let one engineer migrate 180 microservices from Micronaut 3 to 4 in a month.
WorkedCursor (self-hosted agents)AdvancedAccording to Brex: 180 microservices migrated in one month
View CasePort an HTML5 parser from Python to JavaScript with Codex CLI
Codex CLI ran largely unattended for about 4.5 hours and produced 9,000 lines of JavaScript passing 9,200 html5lib tests.
WorkedOpenAI Codex CLIEvidence: Screenshots or logsAdvancedPoster says: Passes 9,200 html5lib tests
View Case
Similar cases
Automate defect remediation across C/C++ codebases with Codex CLI
OpenAI's case study says Cisco's Codex CLI defect-repair workflow raised defect resolution throughput 10–15x.
WorkedOpenAI Codex CLIEvidence: Company case studyAdvancedAccording to OpenAI: 10–15x defect resolution throughput
View CaseDiagnose a Kubernetes pod-scheduling outage with Claude Code
Given dashboard screenshots, Claude Code traced an outage to pod IP exhaustion and supplied the fix; Anthropic says it saved 20 minutes.
WorkedClaude CodeEvidence: Company case studyAdvancedAccording to Anthropic: 20 minutes saved during an outage
View CaseDiagnose why your Mac is running slow with Claude Code
Claude Code checked a slow Mac's load, memory, disk, swap and stuck processes, then suggested fixes with risk notes, including Docker and Time Machine.
WorkedClaude CodeAdvancedView CaseFix a Product Hunt X handle across launches and comments with a browser agent
A browser agent corrected the poster's X handle from johnrushx to johnrush across all Product Hunt launches and hundreds of comments.
WorkedBrowser agentEvidence: Screenshots or logsAdvancedView Case

