Article

Terminal status Agent guessing is coming to an end, with Claude Code,Codex following suit one after another OSC7501 According to Beating AI news, the terminal status protocol proposed by Ghostty creator Mitchell Hashimoto OSC 7501, has gradually been adopted by major Coding Agent integrations. Anthropic's Claude Code v2.1.295, and xAI's Grok Build v1.0.52 now officially support it. OpenAI has also merged Codex adaptation code into GitHub, but it has not yet entered the latest stable release.OSC 7501 lets Agent proactively tell the terminal whether it is working, waiting for the user, finished, or has encountered an error. For example, when Claude Code is stuck awaiting permission confirmation, the terminal can directly recognize the waiting state instead of relying on loading animations and on-screen text.

Other open-source Agent are also following suit. Pi v1.1.0、Crush v0.98.0、Oh My Pi v18.8.7 and Docker Agent v1.150.0 have both added support.

OpenTUI, the terminal interface framework used by OpenCode, also added the 0.6 interface in version.3, but OpenCode's own adaptation code has not yet been merged.

On the terminal side, Rex, cmux,OSC 7501 and others can already receive these statuses, reducing the need to maintain separate detection rules for different TUIOS independently.

Original link Agent https://m.theblockbeats.info/flash/371748