ThinkRail is an open-source agent IDE designed to provide a safer, more isolated working environment for coding agents. It is developed by the JetBrains InnovationHub project, released under the Apache-2.0 license, and runs on macOS, Windows, and Linux.
Purpose and core philosophy: ThinkRail is built around the pi coding agent and emphasizes that "agents should use worktrees, not your worktree." Each workspace is a real git worktree with its own branch and current working directory, allowing multiple agents to run in parallel, with each agent's changes confined to its own branch and the main branch staying clean until the user decides to merge.
Key capabilities:
- Projects and workspaces: Any local Git repository can serve as a project. Workspaces (git worktrees) are created with one click, listed in the sidebar, and can be discarded at any time. Each workspace has its own branch, files, diffs, terminal, and chat; switching workspaces requires no reload and no data leaks between them.
- Editor: A built-in Monaco editor (the VS Code engine) with syntax highlighting, Markdown rendering and source toggle, and per-workspace file tabs. It provides live Git diffs for the workspace branch and a PTY terminal scoped to the worktree so you can run tests yourself.
- Agent chat: Multiple sessions per workspace with concurrent streaming output. Users can select a model for each session, and token usage and cost are displayed live. It supports steering and queuing follow-up messages while the agent is running, and the agent can ask structured questions in chat.
- Spec-first: Each module comes with a SPEC.md file, linked into a graph via frontmatter (goals, architecture, modules, tasks). The built-in pi-spec-graph extension provides the agent with spec_* tools to search, navigate, and maintain the spec graph. The Specs tab renders the workspace's live spec graph. Specs are plain Markdown plus frontmatter and are version-controlled.
Usage:
- Linux: Extract the archive, run ./installer, and check the native library requirements.
- Browser UI: After installing the local launcher, run the thinkrail command to open the browser interface (supported on Linux, WSL, and Windows PowerShell).
- Requires Git and a certified pi provider.
Architecture: ThinkRail uses a three-layer structure: the engine host (packages/server) runs the HTTP+WS host and AgentSessionManager, with one in-process pi session per tab; the communication layer (packages/contracts) defines a typed, versioned protocol; the UI client (apps/web) is a mobile-first React application that can be released independently and connect to any host via the protocol.
Use cases: suitable for developers who need to run multiple coding agents in parallel, want isolated changes, and value continuity of project intent and specification documents.
Limitations: the materials do not provide specific pricing information, a list of supported models, performance data, or detailed system requirements, and some feature details are not yet available.