# ThinkRail

> An open-source agentic IDE built around the pi coding agent with git-worktree workspaces and a spec graph the agent reads.

ThinkRail is an open-source agentic IDE from JetBrains InnovationHub, released under Apache-2.0. It wraps the `pi` coding agent in a workbench with Monaco editor tabs, terminals, diffs, and isolated git-worktree workspaces. It is available as a desktop app for macOS, Windows, and Linux, or as a `thinkrail` CLI that opens the same app in the browser.

## What It Is

ThinkRail is a desktop and browser-based IDE for working with a coding agent. You open a local git repo as a project and cut workspaces from it as `git worktree`s, each with its own branch, files, terminals, and chats. The agent runs in-process through `pi`, which owns models, skills, compaction, cost, and session state, while ThinkRail owns the workspace, editor, and wire protocol.

## Workspaces and the IDE

Each workspace scopes its Files tree, Changes diff, terminals, and chats to one worktree, so several agents can work in parallel without touching your checkout. The topbar tracks the branch against `origin` and its pull request, and for GitHub PRs it shows CI checks and review decisions and offers publish, push, and merge actions. Reviewers can leave anchored comments on files and diffs and send them to a chat as structured context.

## Specs, skills, and tools

A graph of `SPEC.md` files sits beside the code, and the agent reads, searches, and maintains it through dedicated `spec_*` tools. The Specs tab renders the graph as a tree. The README also describes portable Agent Skills, bundled workflows, web research, inline diagrams and mockups, subagents, and MCP server connections with approval prompts for calls not marked read-only.

## Setup path

The CLI installs with a shell or PowerShell script and requires `git` plus an authenticated `pi` provider; users can sign in with JetBrains AI or bring their own provider credentials. The README notes usage analytics tied to a random installation ID, with additional sharing controlled in Settings → Privacy.

## Features
- Isolated git-worktree workspaces
- Monaco editor tabs, Files tree, Changes diff, and terminals
- Concurrent pi chat sessions with per-session model and live token/cost readout
- Spec graph of SPEC.md files with spec_* agent tools
- Agent Skills and bundled workflows
- Pull request status, CI checks, and merge actions
- MCP server support with approval prompts
- Anchored review comments sent to chat
- Desktop app or browser UI via CLI
- Built-in English and Simplified Chinese localization

## Integrations
pi coding agent, JetBrains AI, MCP servers, GitHub, Agent Skills

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, VSC_EXTENSION, JETBRAINS_PLUGIN, CLI

## Pricing
Open Source

## Version
v0.2.0

## Links
- Website: https://thinkrail.ai/
- Repository: https://github.com/JetBrains/thinkrail
- EveryDev.ai: https://www.everydev.ai/tools/thinkrail
