项目 / JetBrains/thinkrail
JetBrains 出的轻量 AI 写代码工具,会按你的习惯自己调整界面和节奏。
本站整理,非 GitHub 官方 description。
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
安装或使用说明见 https://thinkrail.ai/#install。
来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 27,867 字节),完整内容见 GitHub 仓库。
# ThinkRail [](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [](https://star-history.com/#JetBrains/thinkrail&Date) [](https://thinkrail.ai/discord) ThinkRail is an agentic IDE that gets better every time you use it. With Spec-Driven Development support, it learns your project as you work, becoming more capable and helpful over time. We built a rich interface around the `pi` coding agent, isolated work into separate workspaces, and gave the agent durable project knowledge through the spec graph and reusable skills. We are now adding full extension support, so ThinkRail can create the tools it needs based on how you work. **Website:** [thinkrail.ai](https://thinkrail.ai/) · **Blog:** [thinkrail.ai/blog](https://thinkrail.ai/blog/) · **Discord:** [thinkrail.ai/discord](https://thinkrail.ai/discord) ⭐ If you find ThinkRail useful, give it a star. It helps others discover it. <p align="center"> <a href="https://www.star-history.com/jetbrains/thinkrail"> <picture><source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=rank&theme=dark" /><source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=rank" /><img alt="Star History Rank" src="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=rank" /></picture> <picture><source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=trending&theme=dark" /><source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=trending" /><img alt="GitHub Trending Repository of the Day" src="https://api.star-history.com/badge?repo=JetBrains/thinkrail&type=trending" /></picture> </a> </p> <picture> <source media="(prefers-color-scheme: dark)" srcset=".github/readme-assets/workbench-dark.png"> <img src=".github/readme-assets/workbench-light.png" alt="ThinkRail workbench: the Projects pane beside the left tool rail listing worktree workspaces and their Settled shelf, a finished pi conversation with its tool steps in the center, the resulting diff beside it, and the Specs tree above the Changes list on the right with their tools on the edge rail" width="900"> </picture> *From the left: An isolated workspace, a work session with an AI agent in that workspace, the code change made by the agent, and the spec tree.* <a id="install"></a> ## Installation ThinkRail ships in two forms: a native desktop installer and the self-contained `thinkrail` CLI. You can install them from out [Landing page](https://thinkrail.ai/#install). For latest version, see the [Releases page](https://github.com/JetBrains/thinkrail/releases). ## What you get - **Isolated workspaces.** Open any git repo as a project and create `git worktree` workspaces from it, each with its own branch and working directory. Agents can then work in parallel without touching your original codebase; when they finish, merge the results you want to keep and delete the rest. Ask a chat to do something "in a side workspace" and the agent starts that workspace and its chat itself, then checks how its chats and pull requests are doing. You can also attach existing git worktrees or explicitly work in the project folder. * Finished and dormant workspaces are settled when their pull request merges or closes, or after a quiet week, and return the moment you work in them again. * The topbar shows where the active branch stands against `origin`, and the state of its pull request. From there you can publish, push, or open a new PR described from the plan, the commits, your PR template, or an agent-written draft. * Once a GitHub PR is open, ThinkRail shows its CI checks and review decision, and lets you mark it ready, merge it, reopen it, or delete the remote branch. - **An IDE around the agent.** ThinkRail comes with Monaco editor tabs, a file tree integrated with git to show code changes as they happen, terminals, and document support. Rendered Markdown previews have a heading outline that follows the section you're reading; hide it or move it to either side. The pane you're typing in carries an accent line, a frame briefly lights the pane the keyboard takes you to, and VS Code-style keys move you around: `F6` steps between panes, `⌘L` jumps to the chat input, `⌘0` to Projects, `⌘1`–`⌘9` to an editor group, and `` ⌃` `` to the terminal; `⌘\` splits the editor and `⌃⌘←` / `⌃⌘→` move a tab between groups; `⇧⌘F12` hides every side and bottom pane and brings back the ones it hid, as in JetBrains IDEs. In a chat, `⌘↑` steps from the input into the conversation, where arrows or `j`/`k` walk messages, tool calls and thinking blocks — a long message scrolls a line at a time until you have read its end — `Space` pages, `g`/`G` reach the ends, `→`/`←` unfold them, `C` copies and `O` opens the file a tool touched. Enter on a file in the Files tree opens it with the keyboard inside: arrows or `j`/`k` scroll code, Markdown, tables, JSON, notebooks and PDFs a line, `Space` a page, `g`/`G` to the ends, and Esc goes back to the file's row. When the agent asks a question, `F6` (or `⇧Tab` from the input) lands on its options, `←`/`→` page its questions and `→` past the last one reaches Submit, `D` marks it for discussion, `I` steps into an HTML mockup and `⌘↵` answers. Review comments need no mouse either: Tab onto a diff and a line cursor moves with arrows or `j`/`k` (`h`/`l` switch sides, Shift extends), Enter comments, and rendered Markdown blocks, image regions and the swipe divider take the same keys. Press `F` outside a text field (a read-only code file counts) or `⌘;` anywhere for hint mode: every button, tab, row and field gets a short label — buttons that only show on hover, like a tab's ×, appear and get one too — and typing it presses that element (Shift on the last letter only focuses it); Esc leaves a text field, so `F` works from anywhere, and repeated Esc climbs back to the main area; a waiting agent question takes focus unless you're typing. Switch hint mode off in Settings → Extensions & skills. In the sidebar trees `S` searches the visible rows and `h`/`j`/`k`/`l` move like the arrows. `⌘?` opens a filterable, near-fullscreen cheatsheet of every shortcut in columns, with the pane you're in highlighted (a Mac browser keeps `⌘?` for its Help menu, so use the keyboard icon at the bottom of the left tool rail or the palette there); tooltips show a button's shortcut. Settings works from the keyboard too: arrows move through the sections and from setting to setting without changing anything, Enter edits a setting (arrows then change it, Esc keeps it) and `→` reaches its buttons, Space flips a switch, Delete resets a setting to its default, and `S` or `/` searches every individual setting. Rebind shortcuts in Settings → Keyboard, a tree of shortcuts by area that you can filter by name or by keys — the global chords and the keys a tree, tab strip, chat, review or palette takes while focused (letters like `S`, `C` or `j`/`k`, and chords like `⌘↵`); arrows, Enter, Esc, Tab, Space, Home/End and PgUp/PgDn stay fixed. Bindings are saved on the host, so every window and browser follows, and export or import as a JSON file; extensions bring their own shortcuts, which you can rebind too. - **Powerful chat features.** You can open several concurrent work sessions per workspace, each with its own model. Send a prompt, or queue it as a follow-up, delegate to subagents, and work together on a shared plan: the agent updates it, and you review and edit. Attach any file with the paperclip, paste or drag and drop: images go to the model, and other files (PDFs, videos, text) are copied into the workspace's `.thinkrail/context/attachments/` folder for the agent to read. On Linux, use the paperclip or paste, since drag and drop of files isn't available there. Settings → Subagents lists built-in, personal, and trusted workspace agents with their model policies. Switch individual agents off globally to block new launches without interrupting ongoing work, and set delegation and concurrency limits there. - **Session insights.** Open *Session insights* from the chart icon at the foot of the left sidebar (`Ctrl+Alt+I`, `⌃⌥I` on macOS, rebindable) or from the palette, or press *Session analysis* beside a chat's token and cost figures to open that chat's analysis right beside it, where picking a call shows it in the chat. It hides the side panels to make room; `⇧⌘F12` brings them back. You see how your past `pi` sessions went: what each cost (as `pi` recorded it, with subagent spend it missed on its own line), and per session an overview, a trace of every turn, model call and tool call on a timeline, its subagents, how it recovered from errors, what filled its context and why it was expensive, with a jump to any call in the chat. Across sessions the *Insights* tab lists rule-based findings with their evidence, such as skills that never load or commands that keep failing, charts usage and cost, ranks file hotspots and compares slices (A/B); tick two sessions to compare them step by step, and search every prompt, call and result. Every number says where it comes from, nothing is applied for you, and it all runs on your machine from your local session files; nothing leaves it. The same analysis is an `/insights` command for plain `pi` ([`@thinkrail/pi-session-insights`](pi-extensions/session-insights/README.md), not on npm yet). - **Find anything from one box.** `⌘K` (or a double tap of Shift) opens a palette that finds chats and the messages inside them, workspaces and projects, files in the current workspace, specs, and plans, with a preview pane. It also runs the app's commands, including the active tab's layout commands (split, move to another group or pane, new or remove group, close), and opens Settings sections or an individual setting, and with nothing typed it lists the chats waiting for you. Type a task and press `⌘↵` to open Create workspace with it as the prompt. Press `⌘⇧F` to find text inside the workspace's files as you type: matches are grouped by file, with match-case and whole-word toggles and a code preview, and `↵` opens the file at that line. - **Chats without a project.** Ask, plan, or draft without a repository. Each chat gets its own scratch folder under **Chats** for its files, terminal, and plan, with no branch, review, or pull request. Start one from the Welcome screen, the Create dialog, the palette, or the Chats section; deleting a chat moves its whole folder to the Trash. When a chat turns into work, **Continue in workspace** has the agent write a handoff summary and starts a new workspace chat with it. - **Artifacts that stay.** Everything the agent makes for you, such as design notes, mockups, diagrams, screenshots, and reports, lands in the workspace's git-ignored `.thinkrail/context/` folder. The Artifacts tool opens on **Outputs**: just the finished files the agent published for you — the mockup, not its drafts and assets — the same files it hands you as clickable cards in the chat. Its Smart view groups everything it showed, linked or published, and the one you picked, with the scripts and scratch renders behind each folded away; List and Tree show every file, newest first or by folder. Each round in the chat lists the artifacts it made. It also names the chat that wrote each file and the ignored files its runs left behind. A dot on its rail icon tells you something new arrived. Nothing there disappears on its own: if the agent deletes a file, it stays listed, and opening it brings it back. The agent is steered away from leaving new files in `/tmp`. Mention an artifact in the chat, reveal it in Files, rename it, or cut and paste it into your project. - **Always up-to-date specifications.** A connected graph of `SPEC.md` files lives beside the code; the agent reads, searches, and maintains it through dedicated `spec_*` tools, so project intent persists across sessions. The read-only Specs tool renders the graph as a tree in its own view. Type `#` and a question in the palette to find the spec sections that answer it, in any word order and word form, ranked the way the agent's own `spec_search` ranks them. Press `↵` to open the spec at that heading, or `⌥↵` to ask the agent in a new chat when the specs phrase it differently. - **Skills.** ThinkRail loads your `pi` skills and any already in your project. It can also import skills from Claude, Codex, and other coding agents: switch them on in Settings → Extensions & skills, or per project in the Skills dialog, which also shows the size of your skill catalog. A large library is listed within a small prompt budget, and the agent finds the rest with a skill search. - **Agent tools beyond the shell.** Thanks to the ThinkRail GUI, your AI agent can ask you structured multiple-choice questions in the chat instead of guessing, draw Mermaid diagrams, and show comparisons and file previews. When the agent proposes a UI change, it shows a before/after mockup you can comment on like a diff; in a browser, the agent's mockups are clickable prototypes whose scripts run in a sandbox with no network access. Any HTML file, from a mockup to a generated report, opens in your browser from its tab, its preview or the Files menu. When a question's options come with mockups, open them full screen to flip through them, put two side by side (two HTML mockups scroll together and also compare with a swipe or an overlay), or see them all at once, and pick one right there. When it is done and waiting for you, it can suggest what you might send next as numbered one-click chips above the composer: `⌥1`–`⌥9` sends one from anywhere but the terminal, the code editor and dialogs, and Shift+click or `⇧⌥1`–`⇧⌥9` puts it in the input to edit first (both rebindable in Settings → Keyboard). - Settings → Extensions & skills lists the ThinkRail extensions the agent may use. It can also install any `pi` package by source (npm, git or a local folder), for you or for a repository, showing what each one adds and letting you switch individual packages, their extensions and skills, and `pi`'s built-ins on or off. - The tools behind the questions, diagrams, previews, and next-message suggestions are also published as plain `pi` packages: `pi install npm:@thinkrail/pi-ask-user-question` for the questions ([`@thinkrail/pi-ask-user-question`](https://www.npmjs.com/package/@thinkrail/pi-ask-user-question)), `pi install npm:@thinkrail/pi-visualize` for the diagrams and previews ([`@thinkrail/pi-visualize`](https://www.npmjs.com/package/@thinkrail/pi-visualize)), and `pi install npm:@thinkrail/pi-next-steps` for the next-message suggestions ([`@thinkrail/pi-next-steps`](https://www.npmjs.com/package/@thinkrail/pi-next-steps), sent with Alt+1…9 in the terminal), so a vanilla `pi` in the terminal gets the same tools. - **MCP servers.** Connect the MCP servers in your `pi` `mcp.json`, or configure them in Settings → MCP servers. Your own servers, which apply to every project, can be added, switched on or off and removed there even with no project open. ThinkRail asks in the chat before calls that the server does not mark read-only, or always allows the tools you trust in a project. Servers a repository defines stay off until you approve them. ThinkRail signs you in to OAuth servers from Settings and shows each chat's servers next to its background commands and subagents, with each server's state and the chat's calls to it. - **Your providers, your credentials.** Sign in with [JetBrains AI](https://www.jetbrains.com/ai/) or connect any provider through `pi`'s own auth. ThinkRail has no accounts of its own. - **Your `pi` setup.** ThinkRail reads your existing `pi` configuration (`~/.pi/agent`). To use another one (for example, a personal `~/.pi/agent-personal`), or to pass extra environment variables to the agent, terminals and MCP servers, set them in Settings → Environment. The configuration becomes active on the next start. Settings → Models also holds `pi`'s prompt-cache warming (off, only while a run is active, or also between runs); ThinkRail keeps it to active runs unless you choose otherwise, so idle chats don't spend in the background. - **Your own model servers.** Go to Settings → Providers → Custom servers and connect a company LLM gateway or a model running on your own machine. Any OpenAI-compatible server fits: LiteLLM, sglang, vLLM, Ollama, LM Studio, or llama.cpp. - The **Find models** button lists the models available on the server, together with their capabilities. The server is saved to `pi`'s `models.json`. The models models appear in the chat model picker, and in the `pi` CLI alike. - **Desktop app or browser.** A native desktop app, or the `thinkrail` CLI that opens the same app in your browser. Both embed the same engine host. App state lives under `~/.thinkrail`. - **Your language.** ThinkRail uses your system language or a language you pick in Settings → Language: English, Japanese, Korean, Polish, Russian, Simplified Chinese, Spanish, or Traditional Chinese (Taiwan). You can add a language ThinkRail doesn't ship yet by putting a translated locale file, for example `de.json`, in `~/.thinkrail/locales`. (Tell your AI agent to do it for you!) - **Your themes.** In Settings → Appearance, you can choose from dark, light, minimal, and high-contrast themes. You can also make your own theme by copying a bundled `*.theme.json`, changing its id and colors, and saving it to `~/.thinkrail/themes`. (Again, tell your AI agent to do it for you!) - **Your fonts.** In Settings → Text & fonts, you can pick the interface and code fonts and set separate line widths for chat and for code. You can choose from the bundled Geist and JetBrains Mono, any font installed on your computer, and font files kept in `~/.thinkrail/fonts`, with fallback fonts for icon glyphs, a code size, ligatures, and a text-weight slider. <picture> <source media="(prefers-color-scheme: dark)" srcset=".github/readme-assets/specs-dark.png"> <img src=".github/readme-assets/specs-light.png" alt="The Specs tool, opened from the right edge rail, listing the project's spec tree while the product goal spec is rendered in the editor" width="900"> </picture> *The project's spec graph as a tree (on the right), with the spec itself rendered alongside in the center.* ## Installation details ### Desktop Download the `thinkrail-desktop-*` asset for your platform: - **macOS 14+ (Apple Silicon or Intel)**: open the DMG for your architecture: `thinkrail-desktop-darwin-arm64.dmg` or `thinkrail-desktop-darwin-x64.dmg`. - **Windows x64**: extract the complete setup ZIP, then run the executable. - **Linux x64 / ARM64**: extract the setup tarball and run `installer`. Desktop builds need glibc 2.38+ with GTK 3, WebKitGTK 4.1, Ayatana AppIndicator 3, librsvg 2, and Ubuntu 24.04 or newer, plus `libnotify-bin` for desktop notifications: ```bash sudo apt install libgtk-3-0 libwebkit2gtk-4.1-0 libayatana-appindicator3-1 librsvg2-2 libnotify-bin ``` There are two update channels: stable and nightly. If the ThinkRail desktop app, you can check them in **Settings → Updates**: **Download** → **Preparing update** → **Install & Restart**. ### Command line The installer downloads the right binary, verifies its SHA-256 checksum, and puts `thinkrail` on your PATH. **macOS / Linux** (also Windows under Git Bash): ```bash curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash ``` **Windows**: the same command works from cmd and PowerShell: ```powershell powershell -c "irm https://raw.githubuserconte