cd /news/ai-agents/datasette-agent-0-2a0 · home topics ai-agents article
[ARTICLE · art-24298] src=simonwillison.net ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

datasette-agent 0.2a0

Datasette-agent 0.2a0 was released, introducing tools that can ask users questions mid-execution via a new `ToolContext` object and `ask_user()` method. The release also adds a built-in `save_query` tool that allows the AI agent to save SQL queries as Datasette stored queries, but only after requiring human approval.

read1 min publishedJun 10, 2026

Release: datasette-agent 0.2a0 Highlights from the release notes:

  • Tools can now ask the user questions mid-execution. Tools that declare a context

parameter receive aToolContext

object, andawait context.ask_user(...)

can ask a yes/no, multiple-choice (`options=[...]`

) or free-text (`free_text=True`

) question. While a question is unanswered the agent turn suspends: the question renders as a form in the chat UI and persists to the internal database, so suspended conversations survive a server restart. Once answered, the tool re-executes from the top with stored answers replayed, so callask_user()

before performing side effects.[#20]- New built-in save_query

tool: the agent can save SQL it has written as a[Datasette stored query]. Saving always requires human approval - the agent shows the full SQL plus the proposed name, database and visibility, and nothing is stored until you click Yes.[#20]

The ask_user() feature was enabled by the new LLM alpha I built yesterday with the help of Claude Fable 5.

Tags: ai, datasette, generative-ai, llms, datasette-agent

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/datasette-agent-0-2a…] indexed:0 read:1min 2026-06-10 ·