WeSearch

datasette-agent-edit 0.1a0

Simon Willison· ·1 min read · 0 reactions · 0 comments · 17 views
#editing#plugins#datasette#Datasette Agent#Claude text editor#Markdown#SQL
⚡ TL;DR · AI summary

The Datasette Agent is being developed with several plugins to enable editing of existing text, including collaborative Markdown editing and updating SQL queries. The plugins will utilize a base plugin called datasette-agent-edit, which implements core tools for editing text. This base plugin is designed to be adaptable for various other plugins, streamlining the development process.

Key facts
Original article
Simon Willison's Weblog · Simon Willison
Read full at Simon Willison's Weblog →
Opening excerpt (first ~120 words) tap to expand

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 unique insert - insert the specified text after the specified line number Rather 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…

Excerpt limited to ~120 words for fair-use compliance. The full article is at Simon Willison's Weblog.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments