cd /news/ai-agents/thinkrail-from-jetbrains Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-156656] src=thinkrail.ai β†— pub= topic=ai-agents verified=true sentiment=↑ positive

ThinkRail from JetBrains

JetBrains released ThinkRail, an Apache-2.0 open-source agentic IDE that runs the pi coding agent in-process and gives each agent session its own git worktree workspace with a separate branch and working directory. ThinkRail runs on macOS, Windows, and Linux, installs via a command-line launcher that opens a browser UI, and pairs the Monaco editor engine with per-workspace file trees, live git diffs, and real PTY terminals, while a spec graph of files beside the code serves as the intent the agent reads and maintains. The release matters because it isolates parallel agents' changes on disposable branches so the main branch stays clean until the user merges.

read4 min views2 publishedOct 24, 2026
ThinkRail from JetBrains
Image: source

<!-- README.md -->

JetBrains InnovationHub Apache-2.0 open source

The agentic IDE that gets better every time you use it.

Open a repo as a project. Cut isolated git-worktree workspaces. Pair with a real agent across Monaco tabs, terminals, and diffs β€” while your project's intent lives in a spec graph the agent actually reads.

ThinkRail runs on macOS, Windows, and Linux.

macOS

Browser UI via command line #

Install the local launcher; run thinkrail to open the browser UI.

curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash Windows

Browser UI via command line #

Install the local launcher; run thinkrail to open the browser UI.

PowerShell

irm https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.ps1 | iex Command Prompt (cmd)

powershell -c "irm https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.ps1 | iex" WSL

curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash Linux

Browser UI via command line #

Install the local launcher; run thinkrail to open the browser UI.

curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash <!-- WHY ThinkRail -->

Why ThinkRail #

Agents deserve worktrees, not your working tree.

Every workspace is a real git worktree β€” its own branch, its own cwd. Run several agents in parallel; each one's mess stays on its branch, and main stays clean until you say otherwise.

Specs are the ground truth.

ThinkRail is built spec-first, and so are your projects: a connected graph of spec files lives beside the code, and the agent reads, searches, and maintains it with dedicated tools. Intent survives the session.

A thin host, a real engine.

The pi coding agent runs in-process and owns models, skills, compaction, and cost. ThinkRail owns the workspace, the editor, and the wire β€” it never assembles prompts behind your back.

<!-- FEATURES / worktrees -->

Projects β†’ workspaces #

A project is any local git repo. A workspace is a git worktree cut from it β€” created in one click, listed in the rail, disposable without ceremony.

~/code/my-repo                        ← project
└─ ~/.thinkrail/worktrees/
   β”œβ”€ workspace-1   βŽ‡ feature/auth      agent A building
   β”œβ”€ workspace-2   βŽ‡ fix/flaky-test    agent B fixing
   └─ workspace-3   βŽ‡ spike/ideas       you, exploring
  • Own branch + cwd per workspace β€” files, diffs, terminals, and chats all scope to it.
  • Switch workspaces instantly; nothing reloads, nothing leaks across.
  • Merge the good one, delete the rest. Your repo never noticed the chaos.

<!-- FEATURES / editor -->

A real IDE around the agent #

Watch the agent work β€” or work beside it β€” without leaving the page.

Monaco editor tabs

The VS Code editor engine: syntax everywhere, rendered markdown with a source toggle, file tabs per workspace.

Files tree

The active worktree at a glance β€” like the rail on the right of this very page.

Changes

A live git diff of the workspace branch, so you review the agent's work as it lands.

Terminals

Real PTYs scoped to the worktree β€” run the tests yourself while the agent keeps typing.

<!-- FEATURES / agent-chat -->

Chats that stream like the engine thinks #

This transcript is a real pi session, captured in ThinkRail while it worked on its own repo:

goal-and-requirements.md Β· architecture.md ThinkRail is the agentic IDE built around the pi coding agent β€” a thin host that runs pi in-process and bridges it to a rich UI, while pi owns models, skills, compaction, cost, and session state.

The three rings:

  1. Engine host (packages/server ) β€”createServer() runs an HTTP+WS host plus anAgentSessionManager : one in-processpi session per tab.
  2. The wire (packages/contracts ) β€” the typed, versioned protocol between host and UI. Types only.
  3. UI client (apps/web ) β€” mobile-first React that ships independently and dials any host over the wire.
  • Several sessions per workspace, streaming concurrently.
  • Pick the model per session; tokens and cost tick live in the header.
  • Steer a running turn or queue a follow-up β€” no waiting for the agent to finish.
  • Interactive tools: the agent can ask structured questions back, right in the chat.

<!-- FEATURES / specs -->

Specs are first-class #

Every module carries a SPEC.md with frontmatter linking it into a graph β€” goal, architecture, modules, tasks. The bundled pi-spec-graph extension gives the agent spec_* tools to search, navigate, and maintain it, and the Specs tab renders the live graph of your worktree:

main spec

arch

module

submodule

module

---
id: module-server
type: module-design
status: active
parent: architecture
---

Plain markdown, plain frontmatter, versioned with the code β€” reading the specs is enough to understand an area and formulate the next task. The agent keeps them honest as it builds.

<!-- INSTALL.md -->

Install #

Choose your platform and start working.

macOS Apple Silicon

Windows Windows x64

Linux Ubuntu 24.04+

Linux: extract the archive, run ./installer, and check the native library requirements.

Browser UI via command line #

Install the local launcher, then run thinkrail to open the browser UI.

curl -fsSL https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.sh | bash irm https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.ps1 | iex powershell -c "irm https://raw.githubusercontent.com/JetBrains/thinkrail/main/install.ps1 | iex" Requires git and an authenticated pi provider. See all releases and advanced CLI options.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @jetbrains 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/thinkrail-from-jetbr…] indexed:0 read:4min 2026-10-24 Β· β€”