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

datasette-agent-edit 0.1a0

Simon Willison released datasette-agent-edit 0.1a0, a base plugin for Datasette Agent that provides core text editing tools for agentic editing of files. The plugin implements view, str_replace, and insert tools modeled after the Claude text editor design, allowing other plugins to build collaborative editing features for Markdown, SQL queries, and SVG files.

read1 min publishedJun 7, 2026

Release: datasette-agent-edit 0.1a0 I'm planning several plugins for Datasette Agent which can make edits to existing pieces of text - things like collaborative Markdown editing, updating large SQL queries, and editing SVG files.

Agentic editing of text is a little tricky to get right. My favorite published design for this is for the Claude text editor, which implements the following tools:

view

  • view sections of a file, with line numbers added to every line.str_replace

  • find an exact old_str

and replace it with new_str

  • fail if the original string is not uniqueinsert

  • insert the specified text after the specified line numberRather than recreate these patterns for every plugin that needs them I decided to create this base plugin, datasette-agent-edit

, which implements the core tools in a way that allows them to be adapted for other plugins.

Tags: ai, datasette, generative-ai, llms, llm-tool-use, 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-edit…] indexed:0 read:1min 2026-06-07 ·