There is a specific kind of dread that comes with letting an AI coding agent loose on your repository. You ask it to fix a bug, look away for a minute, and come back to find it has rewritten files you never mentioned, in a branch you never asked for, with a commit message that reads like a shrug. JetBrains’ answer to that dread is a new open-source tool called Thinkrail — and its core idea is almost embarrassingly simple: give every agent its own copy of the code, and never let it touch yours.
Thinkrail comes from JetBrains’ InnovationHub incubator team, not the IntelliJ team, and it went from quiet announcement in August to one of the fastest-climbing repositories on GitHub in late October 2026. Here is what it actually is, how it works, and — because it is very much a 0.x product — what to be careful about before you hand it your codebase.
What Thinkrail is
Thinkrail is an agentic IDE: a real editor, a real terminal, and a real diff viewer, wrapped around a coding agent. But here is the twist that matters — Thinkrail is not itself an agent. The agent is pi, the minimal terminal coding agent from the earendil-works project, which runs in-process inside Thinkrail. Pi owns the hard parts: the models, the skills, context compaction, token cost tracking, and session state. Thinkrail owns everything around it: the workspace, the interface, and the typed contract between the engine and the UI. The project’s own README sums it up as “a thin host that runs pi in-process and bridges it to a rich web UI.”
It is free and open source under the Apache 2.0 license, with no accounts and no paid tier. You sign in with JetBrains AI if you want, or you connect any provider pi supports — including any OpenAI-compatible server, so Ollama, vLLM, and LM Studio setups work too. There is a desktop app for macOS (Apple Silicon and Intel), Windows, and Linux, plus a CLI that boots the same host on your machine and opens it in the browser.
The worktree idea: agents never touch your checkout
The headline feature — and the reason developers on Hacker News got excited about it in late October — is the workspace model. Every workspace in Thinkrail is its own git worktree, with its own branch, its own files, its own terminals, and its own chats. When you give an agent a task, it works in that worktree, not in your checkout. Several agents can work on the same repository at the same time without stepping on each other or on you.
That sounds like a small thing until you have lived the alternative. The usual agentic workflow is one shared working tree, one agent at a time, and a lot of nervous git diff checks. Thinkrail flips it: your checkout stays clean while the agents do their messy work in parallel copies. When a task is done, you review the diff hunk by hunk in the built-in Changes tab, and the pull-request flow lives right in the top bar — from Publish to Merge — so the path from “agent finished” to “code reviewed and merged” never leaves the app.
The spec graph: project knowledge that survives the session
The second big idea is what JetBrains calls Spec-Driven Development. Beside every module in your project, Thinkrail keeps a graph of SPEC.md files that the agent itself maintains. These are living documents of what each part of the project is supposed to do — requirements, decisions, quirks — and the agent updates them as it works.
The point is durability. A normal agent session starts from zero every time: it reads your code cold, guesses at intent, and forgets everything when the chat closes. The spec graph is Thinkrail’s answer to that amnesia. The agent’s understanding of your project accumulates across sessions instead of resetting, and the project gets a little easier to work with each time you use it. One early reviewer put it well: the project’s truth survives the session.
Thinkrail also leans on pi’s skills system. It can import skills from other coding agents such as Codex and Claude, and the Thinkrail team ships its own pi packages for things like asking the user a clarifying question mid-task or visualising a plan. MCP servers can be configured too, so the agent can reach your external tools.
How to try it
The quickest route is the installer from the GitHub repo:
curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bashThen point it at a repository — thinkrail ~/code/my-repo — and it opens a workspace. Fair warning, and one the community itself raises: that is a curl | bash install, piping a remote script straight into your shell. If that makes you uncomfortable, the releases page ships the desktop binaries with SHA256 checksums for a manual install instead.
A few practical notes from the repo as of early November: pi needs Node.js 22.19 or newer, the latest stable release is v0.3.1 (published November 1, 2026), and nightly builds go out almost daily. The project picked up roughly 7,000 GitHub stars in its first big week and topped GitHub’s daily TypeScript trending list on October 27 — but it is still an incubator project at version 0.x, and the README is honest that there is no promise it lasts.
Thinkrail vs JetBrains Air: not the same product
One confusion worth clearing up early: JetBrains already has an agentic environment called Air, in public preview since March 2026, which runs Codex, Claude Agent, Gemini CLI, and Junie side by side over the Agent Client Protocol. Thinkrail is a separate, deliberately narrower project. It is pi-only, and the product spec lists a second agent runtime as an explicit non-goal. If your workflow is built around Claude Code or Cursor, Thinkrail is not a drop-in replacement — there are community forks experimenting with other engines, but the official product is about pi, full stop.
That narrowness is arguably the point. Air is the big multi-agent platform; Thinkrail is a focused experiment in one specific workflow: worktrees, specs, and a clean review path. It does one thing and tries to do it well.
The honest caveats
For all the enthusiasm, the reviews from people who have actually read the code flag the same few cautions, and they are worth repeating plainly.
First, it is version 0.x from an incubator team inside a company that also sells a competing product. JetBrains could keep investing in it, or it could quietly fade — there is no roadmap guarantee either way. Second, error reports are sent unconditionally, which is the kind of default worth knowing about before you point it at a private codebase. Third, agents run on your machine without a sandbox, so the worktree protects your checkout, not your system. And fourth, it only makes sense if you are happy with pi as your engine. Pi is a capable, minimal agent with a large following — around 119,000 GitHub stars — but if you have built your workflow around another agent, Thinkrail will not meet you there.
None of that makes it a bad tool. It makes it a young one, and the right way to approach a young tool is to try it on a side project first, not on the repository your job depends on.
Who this is actually for
Thinkrail fits a specific developer: someone who already likes the terminal-agent workflow, probably already uses pi or is curious about it, and has felt the pain of agents trampling a shared checkout. If you run several agents in parallel — one fixing a bug, one writing tests, one refactoring — the worktree model is genuinely useful, and the spec graph is the kind of feature that gets more valuable the longer you use it.
If you are new to AI coding agents entirely, there are simpler starting points. But if you are the kind of developer who has strong opinions about your git history and still wants agents to do real work, Thinkrail is the most considered attempt yet at giving them a workspace of their own — and keeping yours untouched.