datasette-agent 0.3a0

· Source: Simon Willison's Weblog · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Intermediate, quick

Summary

Datasette-agent 0.3a0, released on June 15th, 2026, introduces significant enhancements for its LLM-powered agent for Datasette. A new "execute_write_sql" tool now enables the agent to request user approval before writing to a database, respecting user permissions. This allows for operations like inserting data, exemplified by adding pelican sightings to a "pelican_sightings" table. Furthermore, the "datasette agent chat" terminal mode has been updated to support these user approvals. It also gains new command-line options, including "--root" for root execution, "--yes" to auto-approve questions, and "--unsafe" which combines both. This enables direct database modification through natural language prompts, such as "create a notes table" or "add a note about X", using models like gpt-5.5.

Key takeaway

For Data Scientists or AI Engineers building LLM-powered data tools, datasette-agent 0.3a0 offers a controlled method for agent-driven database modifications. You can now implement conversational interfaces that directly update databases, ensuring data integrity through explicit user approval. Consider using the "--unsafe" option for development or trusted environments to streamline automated data operations, but always prioritize permission checks in production. This release simplifies creating interactive data management solutions.

Key insights

datasette-agent 0.3a0 integrates LLM-driven database write operations with explicit user approval and permission controls.

Principles

Method

The "execute_write_sql" tool generates SQL statements, prompts for user confirmation, and executes approved writes, considering database permissions. The "datasette agent chat" CLI supports this interaction.

In practice

Topics

Code references

Best for: AI Engineer, Machine Learning Engineer, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Simon Willison's Weblog.