---
title: "Why the second pane opens instantly"
description: "Starting a coding CLI takes seconds. Pre-warmed sessions hide that wait — here is how we do it without eating your memory."
url: "https://panescale.com/blog/pre-warming-terminals"
published: "2026-10-10"
updated: "2026-10-29"
category: "Engineering"
---

# Why the second pane opens instantly

Starting a coding CLI takes seconds. Pre-warmed sessions hide that wait — here is how we do it without eating your memory.

Open a fresh terminal and start a coding agent. Before you can type, it has to load its runtime, check its sign-in, read its configuration, start its MCP servers and usually index the workspace. That takes a few seconds — sometimes much longer in a large repository.

A few seconds is nothing once. It is a lot when you open panes all day, and it breaks the flow of “I want another agent on this, now.” So PaneScale starts them before you ask.

## Why a few seconds matter

Usability research has long described three rough limits for response times: about a tenth of a second feels instant, about one second keeps your train of thought intact, and around ten seconds is where attention starts to wander. A coding CLI that takes three to eight seconds to become ready sits squarely in the zone where you notice the wait and start doing something else — checking another tab, losing the thought you wanted to hand off.

Opening a pane is supposed to be the cheap part of working with agents. If it costs a context switch every time, people open fewer panes, and the whole point of a grid is lost.

## The idea

For every free cell of the grid in the active project — plus one spare, so even a full grid can grow — PaneScale keeps a session that has already started. When you open a pane, the waiting session is simply handed over. The pane appears with the agent ready for input, in milliseconds.

The waiting sessions live in the app’s backend, without a terminal on screen. Their output is buffered, and the startup queries a CLI sends to its terminal are answered right there, so the agent never hangs waiting for a reply. When a pane takes a session over, the buffered output is replayed and the session continues as if it had always been visible.

Ready sessions exist for the agents you start most — Claude Code, Codex and your default shell — and only for the active project, where the next pane is most likely to open.

## Not eating your machine

Naively, “a session behind every cell” on a 16-pane grid means sixteen agents running for nothing. That would be a terrible trade. So pre-warming is careful:

- **Lower priority.** On Windows, waiting sessions are prepared at lower priority, so they have little effect on what you are doing.
- **A memory budget.** PaneScale estimates what each waiting session costs — about 450 MB for Claude Code with its MCP servers, 150 MB for Codex, 60 MB for a shell — and always leaves at least 4 GB of memory free. If the budget runs out, fewer sessions wait.
- **Throttled.** At most four sessions are prepared at the same time, and after a failed start PaneScale pauses for a minute instead of trying again and again.
- **Bounded per agent.** At most three Codex sessions and two shells wait at a time.
- **Kept fresh.** A session that has waited for 30 minutes is replaced by a new one, so a pane never starts with stale state.

The footprint shown in the toolbar counts only the panes you see; ready sessions waiting in the background are not included, so the number tells you what your visible work costs.

## When the pool is empty

If you open panes faster than sessions can start, the pane still appears instantly and shows that its agent is starting. You can type immediately — your input is collected and handed over as soon as the CLI is ready.

When many panes start at once, PaneScale staggers them so that a burst of new panes doesn’t make every one of them slow: the pane you clicked goes first, then light CLIs such as shells and Codex, then the rest. Each pane switches to *ready* when its CLI has drawn its first screen and gone quiet.

## Start options are part of the key

If you start Claude Code with a different effort level, a different account or without permission prompts, a session warmed with the default options wouldn’t be the same thing. So the options are part of the match: a pane only receives a ready session that was started exactly the way the pane asks for — same agent, shell, folder and start options. Change the start options, and the waiting sessions restart with the new ones automatically.

## What a ready session is not

It is worth being precise about what pre-warming does and doesn’t do:

- **It doesn’t send anything to the agent.** A waiting session has started and is idle at its prompt. No task, no message, no tokens spent on a conversation.
- **It doesn’t keep panes alive after you close them.** Closing a pane ends its whole process tree — on Windows each pane’s processes run in their own job object, so MCP servers an agent started end with it.
- **It doesn’t follow you everywhere.** Ready sessions belong to the active project. Switch projects, and the pool follows the project you are working in.

## Questions about instant starts

### Does this use my plan’s limits?

Starting a CLI is not a conversation, so a ready session does not spend tokens on a task. What it does use is memory and a little CPU while it starts, which is what the budget and priority rules above are for.

### What happens on a computer with little memory?

The memory budget turns pre-warming down automatically: PaneScale always keeps at least 4 GB free, so on a machine with little free memory fewer sessions wait — or none. Panes still open instantly and show that their agent is starting. The details are in the [Code mode docs](https://panescale.com/docs/code#instant-start).

### Why not keep one session per agent and reuse it?

Because every pane needs its own process. Two panes sharing one session would be one agent in two windows, not two agents. The pool keeps separate sessions so each pane gets its own.

## Sources

- [Response times: the 3 important limits](https://www.nngroup.com/articles/response-times-3-important-limits/) — Nielsen Norman Group on 0.1, 1 and 10 seconds
- [Creating a pseudoconsole session](https://learn.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session) — the Windows terminal API every pane runs on
- [Job objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects) — how Windows groups a pane’s processes so they end together
- [Scheduling priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities) — how lower priority keeps background work out of your way
