跳到正文
原文
Simon Willison·· 3 天前AI 评分44

Simon Willison 发布 web-edit 0.1a0:通过 Tailscale 远程编辑文件的 Web 应用

web-edit 0.1a0

AI 导读

Simon Willison 推出 Python Web 应用 web-edit 0.1a0,提供用于查看和编辑文件夹中文件的 Web UI。它设计为通过 Tailscale 运行,方便用户在手机上使用 Codex Remote 时直接修改文件,而无需将凭据在 LLM 中往返传递。编辑功能使用 CodeMirror 6,因为 Monaco 的移动端体验仍然不佳。

正文 · AI 翻译

当时我正在手机上用 Codex Remote 做一个项目,忽然想编辑一个凭证文件,又不想让这些凭证在 LLM 本身那里绕一圈。

所以……我让 Codex 和 GPT-6 Astra Extra High 做了这个 Python 网页应用,它提供了一个网页界面,可以查看和编辑某个文件夹里的文件。它的用途是通过 Tailscale 运行,这样我就能让一个智能体把它启动起来,然后通过我的 Tailscale 网络直接在手机上编辑文件。

这是浏览文件夹中文件的界面:

Screenshot of a web file manager interface. Header reads "WORKSPACE" above the title "Files", with buttons "Refresh", "Upload files" and "New file" (dark green). A breadcrumb shows "web-edit / web_edit / static". A table with columns "Name", "Size", "Modified" lists four files, each with "Download ↓" and "Delete" links: "app.css" 8.4 KB Oct 12, 2026; "app.js" 671.5 KB Oct 12, 2026; "index.html" 4.3 KB Oct 12, 2026 (underlined, as if hovered); "THIRD_PARTY_LICENSES.txt" 32.3 KB Oct 12, 2026. Below the table: "Images under 2 MB appear inline. Select a text file to edit it." A panel below is labelled "UPLOAD QUEUE" with heading "Add files" and a "Close" button. It has a "Destination folder" text field containing "web_edit", then a dashed drop zone reading "Choose files or drop them here" and "Set a path and filename for each file before uploading." with a "Choose Files" button and the text "no files selected". A greyed-out "Upload files" button sits at the bottom right.

编辑功能用的是 CodeMirror 6——我本来打算用 Monaco,但它在移动端的体验目前还是不太好。

来源:Simon Willison · simonwillison.net