跳到正文
Simon Willison·· 6 天前AI 评分23

Simon Willison 发布 web-edit 0.1a0:用手机编辑文件的 Python Web 应用

web-edit 0.1a0

AI 导读

Simon Willison 发布 web-edit 0.1a0,一个提供 Web UI 用于查看和编辑文件夹内文件的 Python 应用,由 Codex 和 GPT-6 Astra Extra High 构建。

正文 · AI 翻译

我当时在用 Codex Remote 从手机上做一个项目,然后发现自己想编辑一个凭据文件,又不想让这些凭据经由 LLM 本身来回传递。

所以……我让 Codex 和 GPT-6 Astra Extra High 构建了这个 Python Web 应用,它提供了一个 Web UI,用于查看和编辑某个文件夹中的文件。它设计为通过 Tailscale 运行,这样我就可以让一个 agent 启动它,然后直接从我的手机通过我的 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