{"slug": "datasette-agent-edit-0-1a0", "title": "datasette-agent-edit 0.1a0", "summary": "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.", "body_md": "**Release:** [datasette-agent-edit 0.1a0](https://github.com/datasette/datasette-agent-edit/releases/tag/0.1a0)\n\nI'm planning several plugins for [Datasette Agent](https://agent.datasette.io/) which can make edits to existing pieces of text - things like collaborative Markdown editing, updating large SQL queries, and editing SVG files.\n\nAgentic editing of text is a little tricky to get right. My favorite published design for this is for the [Claude text editor](https://platform.claude.com/docs/en/agents-and-tools/tool-use/text-editor-tool#use-the-text-editor-tool), which implements the following tools:\n\n`view`\n\n- view sections of a file, with line numbers added to every line.`str_replace`\n\n- find an exact `old_str`\n\nand replace it with `new_str`\n\n- fail if the original string is not unique`insert`\n\n- 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`\n\n, which implements the core tools in a way that allows them to be adapted for other plugins.\n\nTags: [ai](https://simonwillison.net/tags/ai), [datasette](https://simonwillison.net/tags/datasette), [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-edit-0-1a0", "canonical_source": "https://simonwillison.net/2026/Jun/7/datasette-agent-edit/#atom-everything", "published_at": "2026-06-07 23:56:38+00:00", "updated_at": "2026-06-11 19:15:55.914277+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "generative-ai", "large-language-models", "ai-products"], "entities": ["Datasette Agent", "Claude", "datasette-agent-edit", "Simon Willison"], "alternates": {"html": "https://wpnews.pro/news/datasette-agent-edit-0-1a0", "markdown": "https://wpnews.pro/news/datasette-agent-edit-0-1a0.md", "text": "https://wpnews.pro/news/datasette-agent-edit-0-1a0.txt", "jsonld": "https://wpnews.pro/news/datasette-agent-edit-0-1a0.jsonld"}}