OSC 7501, a terminal state protocol proposed by Ghostty author Mitchell Hashimoto, is starting to see adoption across coding agents and terminal tools. Anthropic’s Claude Code v2.1.295 and xAI’s Grok Build v1.0.52 already support the protocol, while OpenAI has merged Codex adaptation code on GitHub, though it has not yet appeared in the latest stable release. The protocol lets an agent explicitly report whether it is working, waiting for user input, finished, or in an error state, giving terminals a direct signal instead of forcing them to infer status from loading animations or on-screen text. BlockBeats said several open-source agents have also added support, including Pi v1.1.0, Crush v0.98.0, Oh My Pi v18.8.7, and Docker Agent v1.150.0. OpenTUI, the terminal UI framework used by OpenCode, added an OSC 7501 interface in version 0.6.3, although OpenCode itself has not yet merged its adaptation code. On the terminal side, Rex, cmux, and TUIOS can already receive these state signals.
OSC 7501, a terminal state protocol proposed by Ghostty author Mitchell Hashimoto, is being adopted by a growing list of coding agents.
Anthropic’s Claude Code v2.1.295 and xAI’s Grok Build v1.0.52 already support the protocol. OpenAI has also merged adaptation code for Codex on GitHub, but that support has not yet reached the latest stable release.
What the protocol does
OSC 7501 allows an agent to tell the terminal what state it is in. That includes actively working, waiting for the user, finished, or in an error state.
BlockBeats gave Claude Code as an example. If the tool is stuck at a permission confirmation step, the terminal can identify that it is waiting, rather than trying to infer the situation from a loading animation or text on the screen.
More open-source tools are adding support
Several open-source agents have also added OSC 7501 support, including Pi v1.1.0, Crush v0.98.0, Oh My Pi v18.8.7, and Docker Agent v1.150.0.
OpenTUI, the terminal interface framework used by OpenCode, added an OSC 7501 interface in version 0.6.3. The adaptation code for OpenCode itself, however, has not yet been merged.
Terminal-side adoption
On the terminal side, Rex, cmux, and TUIOS can already receive these state signals. That reduces the need for terminals to maintain separate detection rules for each agent.
This article was originally published by Bit.Fan. For more cryptocurrency news and market insights, visit www.bit.fan. Disclaimer:
The market information, project data, and third-party content displayed on this platform are for industry information sharing only and do not constitute any form of investment advice or return commitment.
Cryptocurrency trading carries high risks. Users should fully assess their risk tolerance and make independent decisions. All profits, losses, and legal responsibilities are borne by the users themselves.