跳到正文
Simon Willison·· 1 天前AI 评分30

Simon Willison 开源 web-edit 0.1a0:通过网页 UI 直接编辑文件

web-edit 0.1a0

AI 导读

Simon Willison 发布 Python 网页应用 web-edit 0.1a0,动机是在手机上用 Codex Remote 时想不经 LLM 直接编辑 credentials 文件。

正文 · AI 翻译

我正在用手机通过 Codex Remote 做一个项目时,发现自己想编辑一个凭据文件,但又不想让这些凭据经由 LLM 本身来回传输。

于是……我让 Codex 和 GPT-6 Astra Extra High 构建了这个 Python Web 应用,它提供了一个用于查看和编辑文件夹中文件的 Web UI。它旨在通过 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