datasette-agent 0.2a0

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

Summary

datasette-agent 0.2a0, released on 10th June 2026, introduces significant enhancements for its LLM-powered agent capabilities within Datasette. Key features include the ability for tools to ask users questions mid-execution via an `ask_user()` function, supporting yes/no, multiple-choice, or free-text inputs. This interactive questioning suspends the agent's turn, rendering a form in the chat UI, and persists across server restarts. Additionally, a new built-in `save_query` tool allows the agent to save generated SQL as a Datasette stored query. This saving process always requires explicit human approval, displaying the full SQL, proposed name, database, and visibility before storage. The `ask_user()` feature was enabled by a new LLM alpha developed with Claude Fable 5.

Key takeaway

For data scientists or AI engineers building LLM-powered data tools, `datasette-agent 0.2a0` offers crucial advancements in agent-user interaction and controlled data persistence. You should consider integrating this version to develop more robust, user-guided data analysis agents that require explicit human approval for critical actions like saving queries, thereby increasing reliability and trust in automated processes.

Key insights

LLM agents can now interactively seek user input and save approved queries, enhancing control and persistence.

Principles

Method

Tools declare a `context` parameter to receive a `ToolContext` object, enabling `await context.ask_user(...)` for interactive questioning and re-execution.

In practice

Topics

Code references

Best for: AI Architect, AI Product Manager, AI Engineer, Data Scientist, Software Engineer

Related on AIssential

Open in AIssential →

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