跳到主內容

Theme / 0.3.2

ThinkRail

圍繞 pi 代理的代理式 IDE

基礎觀念

工作台:包住代理的真 IDE

🟢 入門|Monaco 編輯器分頁、帶 git 變更標記的檔案樹、終端機、文件——全部綁定目前工作區。還能在檔案與 diff 上釘審查註解、把 worktree 丟給外部 IDE 開。

一個工作區,一套完整的 IDE 介面

README 對工作台的描述:

A splittable workbench of Monaco editor tabs, a Files tree with live git change marks and a Changed view, terminals, and documents — all scoped to the active workspace.

拆開來看:

介面 內容
編輯器 (Editor) Monaco 分頁,可分割;MDX / 程式碼高亮
檔案樹 (Files tree) 即時 git 變更標記,另有 Changed view 只看改動
終端機 (Terminals) 每個工作區自己的終端(terminal.new 命令新增)
文件 綁定工作區的文件分頁
Specs 樹 唯讀的 Specs 工具把規格圖渲染成工作台裡的樹

重點是最後一句——all scoped to the active workspace。切到別的工作區,這些全部跟著換。

審查註解:釘在檔案與 diff 上

README:

Leave anchored review comments on files and diffs and send them to a chat as structured context, or open the worktree in your installed IDE.

兩個動作:

  1. Anchored review comments——註解直接釘在檔案或 diff 的位置上,不是散在對話裡。
  2. Send to chat——把註解當結構化 context 餵給代理,讓它照你的意見改。
  3. Open in your installed IDE——同一個 worktree 丟給你已裝的 IDE 開(workspace.openIn.<editor> 命令)。

官方的透明化主張

ThinkRail 的賣點不是「代理好神奇」,而是「代理做的每一步都看得到」。官網 vibecoding 頁:

官網 transparency 卡,標題為 “See what your agents are doing”:

No black boxes. Every terminal prompt, source code lookup, and tool invocation is rendered in real-time. Know exactly what your agents are exploring.

對應到 v0.2.0 的部落格標題——review the turn, not the chat log(審的是這一輪的改動,不是聊天記錄)。工作台+diff+審查註解就是這句話的介面化。

面板與快捷鍵

工作台左右與底部面板可用快捷鍵切換(見命令面板詳表):

快捷鍵 動作
⌘B / Ctrl+B Projects 面板(view.toggleLeft)
⌘J / Ctrl+J Workspace 面板(view.toggleRight)
⌘⇧J / Ctrl+Shift+J 底部面板(view.toggleBottom)

面板裡也能切換 Specs / Files / Review / Plan 工具(命令 view.show.specs|files|review|plan)。

下一課

介面看完了,換引擎本身:對話與 pi session。