datasette-agent 0.3a0

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

datasette-agent 0.3a0 lets an LLM agent write to a database with per-user permission checks and explicit approval, making prompt-driven data editing practical.

Read this as

datasette-agent 0.3a0 is a tool that lets you talk to an AI assistant which can change your databases for you. Before, it could only read data; now a new tool, execute_write_sql, asks you to press Yes or No before it inserts or updates anything. A terminal chat mode also gained --yes and --unsafe flags to skip all approvals. It matters to developers using Datasette who want natural-language commands like 'create a notes table'.

This minor alpha release adds write access to an AI agent for Datasette, with a user-approval gate and permission-aware checks before any data change executes. A CLI chat mode supports the same approvals, with --yes and --unsafe flags to bypass them entirely, which shifts risk onto the operator who enables them. Teams evaluating agents that touch production data gain a concrete pattern for permission-gated writes; no adoption costs or benchmarks are given.

Version 0.3a0 of datasette-agent adds an execute_write_sql tool that surfaces a confirmation dialog showing each statement, target database, and required permissions such as insert-row, update-row or delete-row, building on the ask-user mechanism introduced in 0.2a0. Batched statements run in order and later ones are skipped if an earlier one fails. The chat CLI now handles approval-required tools and offers --root, --yes and --unsafe flags. Tools can also serve plain-text alternatives to HTML output.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

datasette-agent execute_write_sql datasette agent chat Datasette gpt-5.5

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading