JetBrains/thinkrail
ThinkRail is the agentic IDE that gets better every time you use it
What it solves
AI coding agents often lack persistent context about a project and can be risky to run directly on your main codebase. ThinkRail solves this by giving the agent durable project knowledge through living spec files and by isolating each agent session in its own git worktree, so you can experiment safely and merge only the good branches.
How it works
ThinkRail is a thin host that runs the pi coding agent in-process and bridges it to a rich web UI. It creates isolated workspaces as git worktrees, each with its own branch and working directory, so agents can work in parallel without touching your main checkout. The agent reads, searches, and maintains a connected graph of SPEC.md files beside the code, using dedicated spec_* tools, so intent survives across sessions. The UI provides a splittable Monaco editor, a files tree with live git change marks, terminals, and a spec tree. Chats stream live with token and cost readouts, support subagents and a shared plan, and offer tools beyond the shell like web research and inline before/after mockups. ThinkRail also reads your existing pi configuration, supports MCP servers with per-chat permissions, and lets you use JetBrains AI or your own provider credentials.
Who it's for
Developers who want to leverage AI coding agents for complex tasks without jeopardizing their main codebase, and who want the agent to learn the project's intent over time. It's especially useful for those working on larger repositories where parallel agent work and persistent project knowledge are valuable.
Highlights
- Isolated workspaces: each agent run gets its own git worktree with a separate branch, and finished workspaces settle onto a shelf automatically.
- A real IDE around the agent: Monaco editor, files tree, terminals, anchored review comments, and the option to open the worktree in your installed IDE.
- Chats that stream like the engine thinks: concurrent
pisessions per workspace, live token and cost readout, delegation to subagents, and a shared plan you can edit. - Specs as ground truth: a connected graph of
SPEC.mdfiles the agent maintains, rendered as a tree in the workbench. - Skills and workflows: portable Agent Skills are read in place, and bundled workflows guide setup, design brainstorming, and shipping a pull request.
- Agent tools beyond the shell: web research, inline diagrams, option comparisons, and before/after mockups for UI changes.
- MCP servers: connect and manage them with per-chat controls; repositories' servers stay off until you approve them.
- Your providers, your credentials: sign in with JetBrains AI or use any provider through
pi's auth; no ThinkRail accounts. - Desktop app or browser: native app or a CLI that opens the same app in your browser.
- Your language and themes: built-in English, Japanese, Simplified Chinese, Spanish, plus custom locales and themes.
Related
- Dispatch
- Project
- Project
- Project
- Project