{"slug": "datasette-agent-0-3a0", "title": "datasette-agent 0.3a0", "summary": "Datasette released version 0.3a0 of datasette-agent, introducing an execute_write_sql tool that requests user approval before writing to a database. The update also enhances the datasette agent chat terminal mode with approval support and adds --root, --yes, and --unsafe options for auto-approving queries.", "body_md": "**Release:** [datasette-agent 0.3a0](https://github.com/datasette/datasette-agent/releases/tag/0.3a0)\n\n- New tool,\n`execute_write_sql`\n\n, which requests user approval and then writes to a database - taking user permissions into account.[#27]\n\nI added a mechanism for asking user approval in [datasette agent 0.2a0](https://simonwillison.net/2026/Jun/10/datasette-agent/). The new `execute_write_sql`\n\ntool can now prompt the user for all kinds of useful operations. Here's an example where I add some pelican sightings to my `pelican_sightings`\n\ntable:\n\nThe new version also enhances the `datasette agent chat`\n\nterminal mode to support approvals, and adds several new options including `--unsafe`\n\nmode for auto-approving them:\n\n`datasette agent chat`\n\ncan execute tools that require user approval.[#30]- Three new options for\n`datasette agent chat`\n\n-`--root`\n\nto run as root,`--yes`\n\nto approve all ask user questions, and`--unsafe`\n\nfor both.- Tools can now provide plain text alternatives to HTML, for display in the\n`datasette agent chat`\n\nCLI.[#31]\n\nThe `datasette agent chat content.db -m gpt-5.5 --unsafe`\n\ncommand can now be used to chat directly with a specific database *and* directly modify it through prompts like \"create a notes table\", \"add a note about X\" etc.\n\nTags: [projects](https://simonwillison.net/tags/projects), [ai](https://simonwillison.net/tags/ai), [datasette](https://simonwillison.net/tags/datasette), [annotated-release-notes](https://simonwillison.net/tags/annotated-release-notes), [generative-ai](https://simonwillison.net/tags/generative-ai), [llms](https://simonwillison.net/tags/llms), [llm-tool-use](https://simonwillison.net/tags/llm-tool-use), [datasette-agent](https://simonwillison.net/tags/datasette-agent)", "url": "https://wpnews.pro/news/datasette-agent-0-3a0", "canonical_source": "https://simonwillison.net/2026/Jun/15/datasette-agent/#atom-everything", "published_at": "2026-06-15 17:19:27+00:00", "updated_at": "2026-06-15 23:47:56.228857+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "generative-ai", "large-language-models"], "entities": ["Datasette", "datasette-agent", "execute_write_sql", "datasette agent chat"], "alternates": {"html": "https://wpnews.pro/news/datasette-agent-0-3a0", "markdown": "https://wpnews.pro/news/datasette-agent-0-3a0.md", "text": "https://wpnews.pro/news/datasette-agent-0-3a0.txt", "jsonld": "https://wpnews.pro/news/datasette-agent-0-3a0.jsonld"}}