# ThinkRail

JetBrains 开源的智能体 IDE，把 pi 编程助手放进相互隔离的 git worktree 工作区，配合 Monaco 编辑、终端、实时 diff 和助手可读取的规格图。

> 这是 OpenNavo 上 ThinkRail 页面的 Markdown 版本，内容与网页相同： https://opennavo.com/zh/apps/thinkrail

- **最新版本**: `0.3.1`
- **开发者**: JetBrains
- **主页**: https://thinkrail.ai/
- **分类**: [AI 工具](https://opennavo.com/zh/categories/ai), [开发工具](https://opennavo.com/zh/categories/developer-tools)
- **安装**: `brew install --cask thinkrail`
- **近 30 天安装**: 22
- **Homebrew**: 可以安装，应用会自行更新
- **下载地址**: https://github.com/JetBrains/thinkrail/releases/download/v0.3.1/thinkrail-desktop-darwin-arm64.dmg
- **SHA-256**: `dc23dad47bf3cf6b7ae73ffde5ee6af0d38f16a0c2810919c65f954c820f903d`

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "ThinkRail.app"
      ],
      "target": "/Applications/ThinkRail.app"
    },
    "phase": "install",
    "sources": [
      "ThinkRail.app"
    ],
    "target": "/Applications/ThinkRail.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "rmdir": "~/.thinkrail",
          "trash": [
            "~/Library/Application Support/ai.thinkrail.app",
            "~/Library/Preferences/ai.thinkrail.app.plist",
            "~/Library/WebKit/ai.thinkrail.app"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

ThinkRail 是 JetBrains InnovationHub 的项目：一款围绕 pi 编程助手构建的智能体 IDE，以 Apache-2.0 协议开源。

**工作方式**
- 项目就是本地任意一个 git 仓库。每个工作区都是真正的 `git worktree`，有自己的分支和工作目录，因此多个助手可以并行工作，在你合并之前 main 始终保持干净。
- pi 助手在进程内运行，负责模型、技能、上下文压缩和成本。ThinkRail 提供工作区、编辑器以及两者之间的连接。
- 规格文件是一等公民：每个模块都带有一个 `SPEC.md` 并连成图，扩展让助手具备搜索、浏览和维护它的工具。

**窗口里有什么**
- 来自 VS Code 编辑器内核的 Monaco 标签页、可切换到源文的 Markdown 渲染，以及当前 worktree 的文件树。
- 工作区分支的实时 git diff，助手的工作落地时即可查看。
- 绑定到该 worktree 的真实 PTY 终端。
- 每个工作区可开多个助手会话，每个会话单独选择模型，实时显示 token 与费用，Cmd/Ctrl+K 切换会话。

**适合谁**
希望在自己的仓库上运行编程助手、并在完整 IDE 中查看结果的开发者。

**费用与要求**
ThinkRail 免费且开源。使用助手需要 `git` 和一个已认证的 pi 服务提供方。macOS 版需要 Apple Silicon 与 macOS 14 或更高版本；另有 Windows x64、Linux x64 与 Linux ARM64 版本。

## 系统要求

- macOS 14 起 · 应用版本: 0.3.1 · Apple 芯片 · https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 核查于 2026-11-02
  - https://github.com/JetBrains/thinkrail/releases/download/v0.3.1/thinkrail-desktop-darwin-arm64.dmg
  - SHA-256: `dc23dad47bf3cf6b7ae73ffde5ee6af0d38f16a0c2810919c65f954c820f903d`

## ThinkRail 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- https://github.com/JetBrains/thinkrail · 是否开源: 是 — https://github.com/JetBrains/thinkrail · 核查于 2026-10-30

## 卸载

- `brew uninstall --cask thinkrail`

普通卸载会删除应用本身，设置和缓存会保留。

### 深度清理（可选）

- `brew uninstall --zap --cask thinkrail`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/Library/Application Support/ai.thinkrail.app` — https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 以上条目来自 Homebrew 定义，核查于 2026-11-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Preferences/ai.thinkrail.app.plist` — https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 以上条目来自 Homebrew 定义，核查于 2026-11-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/WebKit/ai.thinkrail.app` — https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 以上条目来自 Homebrew 定义，核查于 2026-11-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/.thinkrail` — https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 以上条目来自 Homebrew 定义，核查于 2026-11-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 最新版本说明

### 0.4.0-nightly.2-prerelease (2026-11-01)

#### What's Changed
* fix(web): stop the chat crashing with "Maximum call stack size exceeded" on WebKit by @rsolmano in https://github.com/JetBrains/thinkrail/pull/1080
* test(web): typecheck every web test and drop the exclude list by @Mark-Life in https://github.com/JetBrains/thinkrail/pull/1074
* refactor(web): type-check prototype-free maps with nullProto by @Mark-Life in https://github.com/JetBrains/thinkrail/pull/1066
* lint(web): reject Object.create(null) outside nullProto by @Mark-Life in https://github.com/JetBrains/thinkrail/pull/1067
* test: stop the Windows desktop smoke and real-shortcut test flakes by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1112
* test: stop the lifecycle pid-file, e2e global-setup and freePort races by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1115
* ci: retry the Electrobun toolchain download before desktop builds by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1116
* test(e2e): judge managed-runner signal cleanup at runner exit by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1120
* test(e2e): stop the layout tab-drag and side-focus races by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1121
* test(e2e): let the chat's placement motion settle before clicking visualize card controls by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1124
* fix: wake the idle parent as soon as a background result lands by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1123
* test(server): make the unit suite independent of file order and the developer's machine by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1126
* feat(scripts): count queue-on-queue and stacked failures once and read flakes from green e2e jobs by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1122
* fix: stop the Changes review snap-back and the Pierre reveal give-up behind three e2e flakes by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1128
* fix(desktop): keep the window on its origin and open external links exactly once by @danyaberezun in https://github.com/JetBrains/thinkrail/pull/1030

**Full Changelog**: https://github.com/JetBrains/thinkrail/compare/v0.4.0-nightly.1...v0.4.0-nightly.2

## 资料与来源

- https://opennavo.com/zh/apps/thinkrail
- https://opennavo.com/zh/apps/thinkrail/versions
- https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/t/thinkrail.rb · 核查于 2026-11-02
- https://formulae.brew.sh/cask/thinkrail
- https://github.com/JetBrains/thinkrail · 核查于 2026-10-30
