Terminal Scrollback
- Desktop app
- All plans
What it does
Sets how many lines of history each agent console keeps in memory. Every open console holds its whole history in the app window, so with 20 or more consoles open all day, a long history adds up to gigabytes of RAM. Lowering the number keeps the window's memory flat; raising it lets you scroll further back in the terminal.
Where to find it
- Settings > Terminal > Terminal scrollback (the global value).
- Project settings > Terminals > Terminal scrollback (this project only; Inherit follows the folder, then Settings).
- The settings of a sidebar folder > Environment > Terminal scrollback (every project of that folder; Inherit follows the parent folder, then Settings).
- At the top of a console whose history is full: a bar This console keeps the last N lines with a Keep more button. It opens a menu Keep N lines for: This agent, This project, This folder (when the project is filed in a folder), All agents, or Other value in Settings.
How to use it
- Open Settings > Terminal.
- Pick a value in Terminal scrollback (from 1,000 to 100,000 lines).
- The new value applies at once to every open console and to the ones opened afterwards, in every window (detached windows included).
Settings
terminalScrollbackLines: lines of history each agent console keeps in memory, between 1,000 and 100,000. Default 10,000 since 2026-11-22 (30,000 before; an install that still had the old untouched 30,000 moves to 10,000 once, a value you chose stays).- Four scopes, narrowest first: the agent > its project > its folder > Settings > Terminal (global). A scope that pins nothing inherits the one above. The global value is synced to your account, the project and folder values with the project and folder, the agent value with the agent.
Agent tools (MCP)
settings_get/settings_setonterminalScrollbackLines, withscopeglobal,project,folderoragent: read or change the depth (any whole number from 1,000 to 100,000;nullon project, folder or agent goes back to inheriting).
Providers
All providers, no difference: the setting caps the terminal, not the CLI.
Mobile
Not on the phone: the mobile terminal shows one console at a time and already keeps a shorter history of its own.
Limits
- Lowering the value on open consoles removes their oldest lines from the terminal right away. The agent's own transcript (and the conversation view, which reads it) keeps them.
- A rough order of size: 30,000 lines is about 20 to 25 MB per open console.
Common questions
- Why does AgentsRoom use more and more RAM with many consoles open? Each console keeps up to 10,000 lines of history in memory by default. Lower Settings > Terminal > Terminal scrollback (5,000 is plenty for most work).
- Do I lose my agent's earlier output if I lower it? Only from the terminal grid. The CLI's transcript keeps everything, and the conversation view still shows the full exchange.
- Can I scroll further back in a terminal? Yes. Scroll to the top of the console and click Keep more, then pick this agent, this project, this folder or all agents. Or raise Settings > Terminal > Terminal scrollback, up to 100,000 lines, at the cost of more memory per console.
- Can one agent keep a longer history than the others? Yes: Keep more > This agent, or
settings_setwithscope: "agent".
Related
- Process Guard: spots agent child processes that hold too much memory.
- Terminal Shell and Environment: the shell and environment every terminal starts with.