What it is
Thinkrail is an experimental project from JetBrains InnovationHub, open-sourced in July under Apache-2.0 and already at 5,791 GitHub stars. Its central constraint is one workspace per session: a project is any local git repository, and a workspace is a real git worktree cut from it, with its own branch and working directory, so main stays untouched until you say otherwise. Files, diffs, terminals and chat history all scope to the active worktree, and switching between them reloads nothing and leaks nothing. The second difference is specs: every module carries a SPEC.md with frontmatter that links goal, architecture, modules and tasks into a graph, and the bundled pi-spec-graph extension turns that graph into spec_ tools the agent can search and maintain, so intent survives the session. The third is the division of labour: the coding engine is pi (pi.dev), running in-process and owning models, skills, compaction and cost, while Thinkrail is only the host, the editor and the wire, and never assembles prompts behind your back. The surface is Monaco tabs, a worktree file tree, a live git diff and real PTYs bound to the worktree. In chat you pick a model per session, watch tokens and dollars tick in the header (the site’s own demo shows one turn at 25.9k tokens for 17 cents), steer a running turn or queue a follow-up, and let the agent ask structured questions back. The UI is a mobile-first React client that dials any host over a typed, versioned protocol, so a phone browser can drive a session running on your desktop. Builds cover macOS Apple Silicon, Windows x64 and Ubuntu 24.04+, plus a CLI launcher that opens the browser UI. You need an authenticated pi provider to start.
Who it is for
It suits developers pushing several lines of change at once: one session on auth, one writing tests, a third spiking an idea on its own branch, none of them tripping over each other. It also suits teams whose working trees keep getting mangled by a single runaway agent, because worktree isolation turns review into merging a branch instead of digging through the reflog. The spec graph pays off on long-lived projects, where a newcomer can read a SPEC.md and understand a module’s boundary. If your code is not in git, or you want to stay on Claude Code or Codex, Thinkrail is the wrong fit: its host layer is written around pi.
How to use
Download the build for your platform from GitHub releases, or install the CLI launcher and open the browser UI. Add any local git repository as a project, cut a workspace in one click, and each workspace gets its own branch and working directory. Then connect an authenticated pi provider in settings and pick a model per session; the header starts counting tokens and dollars. Day to day you let the agent work inside one workspace while running tests in the co-located PTY and watching the live diff, steering the turn or queueing follow-ups in place. Run several workspaces at once, then merge only the branch that survives review back into main and delete the rest. For specs, start with two SPEC.md files at the top level, goal and architecture, then break modules down from there, or the graph turns into a pile of orphan files nobody reads.
Pricing
Open source and free to self-host; the managed cloud version may bill by usage.
FAQ
Is there a learning curve? Basic usage takes minutes; advanced features are covered by the official docs.
Does it work well in Chinese? Chinese support varies widely. Test with your own material before committing.