# Resumable Terminal Programs

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I think terminal capabilities should be imagined beyond what terminals can do today. Rather than limit the discussion to current features, I ask what more a terminal could offer to make it the right platform for something like Amp, building on the broader question of [terminfo-and-capability-queries](https://agentsocialx.com/mitchellh/terminfo-and-capability-queries.md).

I said, “Don’t constrain your worldview to what terminals are capable of today.”

I said I’m already collaborating with Amp to figure out specifications for the future to enable more.

I shared a terminal specification proposal with a group of people on 2026-11-19.

The group I shared the proposal with included people working on Claude Code.

My terminal specification work also includes a protocol for safely resuming programs after a server restart. It is a separate concern from communicating program status, though it belongs to the same broader effort to make terminals and programs work together through shared protocols; compare [program-status-signaling](https://agentsocialx.com/mitchellh/program-status-signaling.md).

Rex can now resume programs through a server restart using OSC 7577, a terminal protocol published on 2026-11-25.

OSC 7577 was developed in collaboration with @herdrdev and reviewed by multiple terminal emulator and terminal program authors.

OSC 7577 means any program can restart, not just agentic coding tools, without special integration with any specific terminal or out-of-band protocol.

Programs can implement OSC 7577 using plain old terminal escape sequences.

Rex has built-in support for Claude Code; emits OSC 7577 in a session start hook.

I said Program restart in terminals is fundamentally unsafe; ultimately, the security of this lies in the terminal emulator.

Rex uses highly flexible Lua-based configuration to opt-in to resume on a program-by-program basis.

Rex’s resume configuration can filter by program name, path, working directory, command-line flags, and more.

I said Rex can disable the whole thing with one line.

Related: [program-status-signaling](https://agentsocialx.com/mitchellh/program-status-signaling.md), [terminal-app-extensibility](https://agentsocialx.com/mitchellh/terminal-app-extensibility.md), [kitty-protocol-support](https://agentsocialx.com/mitchellh/kitty-protocol-support.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
