Continuum

Local, MIT-licensed MCP server that gives coding agents named, persistent terminal sessions. Keep development servers, test watchers and REPLs running, then return to the same shell to inspect output or interact with a process.

เอกสาร

Continuum

Continuum logo and wordmark

Persistent terminals for AI coding agents.

Start a dev server, leave a test watcher running, or keep a Python REPL open while your agent edits code. When the agent comes back, it can read what happened and pick up in the same shell, with its working directory, variables, and foreground process intact.

Continuum is a local Model Context Protocol (MCP) server. It gives a coding agent separate, named terminal sessions through four tools.

Install · Try it · Clients · Benchmarks

When a terminal needs to stay open

Imagine your agent starts the app in one terminal and runs tests in another. While the app keeps serving requests, the agent can collect test output, make a change, and return to the app terminal to see the next log lines. Each session has its own terminal ID and shell state.

flowchart LR
    Agent["Coding agent"] <-->|MCP over stdio| Continuum
    Continuum <--> App["app · dev server"]
    Continuum <--> Tests["tests · test runner"]
    Continuum <--> Repl["repl · interactive Python"]

Each session runs in a pseudoterminal (PTY), the same kind of interface a terminal emulator uses to drive interactive programs. That lets the agent type into a running program, send keys like Ctrl+C, or check the rendered screen. Sessions last for the lifetime of the Continuum server process. If the client keeps that process running across a chat context compaction, the agent can rediscover its terminals by calling terminal_check with no arguments.

Install

From a release bundle, verify the archive against its .sha256 file, extract it, and run the bundled installer from the extracted folder. From a source checkout, run cargo build --release --locked with stable Rust and your platform's native build tools. Release downloads · Archive verification and build prerequisites

PlatformFrom an extracted bundleFrom a source checkout after building
Windows.\continuum-install.exe.\target\release\continuum-install.exe
Linux and macOS./continuum-install./target/release/continuum-install

The installer detects supported coding agents and preselects them in a numbered menu. Press Enter to accept, enter numbers such as 2,3 to choose a different set, or type none to install only the binary. The default destination is ~/.local/bin on Linux and macOS and %LOCALAPPDATA%\Continuum\bin on Windows.

Restart your client and follow its MCP approval prompts. The installer also accepts repeatable --agent options, --all for detected clients, and --binary-only for unattended setup. Updates, uninstall, and manual configuration

Try it

Open a trusted project with a src directory in a registered client and paste this into chat:

Use Continuum to create a terminal named app in this project. Run cd src, then run pwd in a separate call on the same terminal. Tell me what directory it reports, then close the terminal.

In Bash or PowerShell, pwd should report the project's src directory. The second call uses the same terminal ID, so the shell is still where the first call left it. For a longer workflow, ask the agent to open a second session for tests while the first runs your dev server.

The four MCP tools

ToolWhat the agent does with it
terminal_createOpens a shell and returns its terminal ID. You can set the starting directory, environment, and shell.
terminal_executeSends a command to the shell, types into a foreground program, or sends a control key.
terminal_checkLists sessions or inspects output, process state, and the current screen. Pass back next_cursor to read the next page of output.
terminal_closeCloses a session and reports the cleanup it could verify.

An accepted command means the input reached the terminal. Use terminal_check to see whether it finished or is still running. Tool arguments and result fields

Clients

Clientsetup --agentScope
CodexcodexUser or project
Claude Codeclaude-codeUser or project
Google Antigravity IDE and CLIantigravityUser or project
CursorcursorUser or project
Gemini CLIgemini-cliUser or project
GitHub Copilot CLIcopilotUser
VS Code, OpenCode, Cline, Zed, and other local MCP clientsManual configurationClient-managed

Codex and Claude Code also get a bundled workflow skill. Other clients can use the instructions in the MCP tool descriptions. Platform and shell support

Reading noisy output

The default compact view keeps useful output in sight by folding long runs of identical lines and some progress updates. This is what a burst of repeated warnings can look like in a compact page:

warning: dependency metadata unavailable; continuing with cached metadata
[previous line repeated 119 times]

The first line stays intact, and later unique lines remain visible. You can switch views depending on what the agent needs to inspect.

ViewUse it for
compactReading logs with repeated warnings or frequent progress updates.
plainReading the original normalized text. It shares cursors with compact.
rawInspecting exact retained terminal bytes, including escape sequences. It uses a separate cursor and returns base64.
mode: "screen"Seeing the current screen of an interactive terminal program.

Output history is bounded. If an old cursor falls behind retained output, the next read reports a history_gap and resumes at the oldest available position. Output modes and cursors

Command warnings and permissions

Continuum holds commands that match known high-impact patterns before sending them to the shell. The agent can explain the warning and ask for permission. Once the exact action is authorized, the agent can resend it with confirm_dangerous: true.

The advisory uses a limited set of patterns. The server runs with the privileges of the local account, and client permission and project-trust rules still apply. Security model · Advisory controls

Benchmarks

These measurements counted o200k_base tokens in complete tool results from the same output page on a real Windows PTY.

Windows PTY fixturePlain tokensCompact tokensReduction
120 repeated warning lines1,78950971.55%
Mixed build logs6,0624,27529.48%
Unique lines2,3222,3220%
Native progress updates5115110%

In the same release-build run, the median startup and MCP handshake took 11.2 ms, opening a PTY took 202.6 ms, and reading retained output took 0.31 ms. Savings depend on the workload, tokenizer, and client. Hardware, methodology, and full results

cargo build --release --locked
uv run scripts/measure.py target/release/continuum --samples 20

On Windows, pass target/release/continuum.exe. Use --demo to watch the script exercise persistent shell state and a live Python REPL.

Project links

Architecture · Protocol · Troubleshooting · Contributing · MIT license