Only 5 of 12 Terminals Have Code for Claude Code and Codex Status
When agents run in neighboring tabs, the terminal needs to know whether one has finished or is waiting for permission. Since October, a shared status protocol called OSC 7501 has existed for this purpose: a service command that Claude Code and Codex embed in their output. The Habr author searched the source code of 12 terminals for its number and found it in 5 (iTerm2, kitty, cmux, Ghostty, zellij), but not in the other seven. If your terminal is among those seven, it's better to pick the notification channel manually, at least a plain bell.
AI-processed from Habr AI; edited by Hamidun News
You've launched three or four agents in different tabs and walked off to get coffee. Which one has finished, and which has been waiting ten minutes for permission to run a command? The terminal learns this from service commands (in terminal jargon, OSC sequences) that the agent hides in the ordinary text stream.
Since October 2026, they have had a shared status language under number 7501. The Habr author downloaded Claude Code 2.1.
331 and Codex CLI 0.172.0, found the notification-channel selection code in them, and then searched the source code of twelve terminals and multiplexers for the numbers 7501 and 21337.
Support was found in only five: iTerm2, kitty, cmux, Ghostty, and zellij. The other seven (tmux, WezTerm, Windows Terminal, Wave, Tabby, Warp, and agterm) have no such number, so the agent's status there is most likely simply discarded. Everything was checked in a disposable Docker container, without launching the agents and without logging into any accounts.
What agents send to the terminal
By default, Claude Code runs in auto mode and chooses a channel based on the TERM_PROGRAM variable. In iTerm2 it is OSC 9, in kitty its own OSC 99 protocol, and in Ghostty OSC 777. Terminal.app gets a bell only if it is enabled in the profile. In all other cases the result is no_method_available: WezTerm, Warp, Windows Terminal, Wave, Tabby, Alacritty, and VS Code's built-in terminal don't even get a bell. The fix is the preferredNotifChannel parameter (iterm2, iterm2_with_bell, terminal_bell, kitty, ghostty, notifications_disabled); for most of these terminals, the honest choice is terminal_bell.
Codex is simpler. It sends OSC 9 to Ghostty, iTerm2, kitty, Warp, and WezTerm; to all others it sends a plain BEL bell, and only when the tab is not in focus. The method is changed in ~/.codex/config.toml, in the notification_method parameter of the [tui] section. This creates a mismatch: Codex considers Warp and WezTerm capable of displaying OSC 9, while Claude Code stays silent in them.
A new shared language: OSC 7501
On October 6, 2026, Mitchell Hashimoto published the Program Status Protocol. A program reports one of five states: idle, working, done, blocked (with a reason: permission, question, or auth), or error. Previously, "agent inboxes" guessed the status from a spinner symbol in the window title, and the rule for Claude Code alone was changed ten times in three months. Claude Code first asks the terminal whether it understands the protocol, and sends statuses only after receiving an answer. Codex asks nothing and writes the sequence to any TTY, except old VTE.
What turned up in the source code:
- iTerm2 3.7.9: 38 mentions in 14 files, next to ClaudeCodeStatusOverlay.swift. The Install Claude Code Integration menu item writes hooks and shows the status on each tab. Since 3.7.5, Session Status also tracks Codex, but hooks for it are configured manually. Version 3.7.9 closes a vulnerability involving file output through cat, so updating is advisable.
- kitty 0.51.1: support since 0.50.0 (November 3); the status is output to the tab bar via the tab.program_status field.
- Ghostty 1.4.0: libghostty parses the protocol in full, but Ghostty's own interface does not yet use it. Claude Code identifies the terminal by TERM_PROGRAM, notifies via OSC 777, and since version 1.2.0 shows a progress indicator.
- cmux 0.65.2.2 and zellij 0.46.1: both accept the protocol; zellij also forwards the status to the outer terminal.
- Rex: a beta terminal from Hashimoto's company Superlogical; the protocol is claimed in its documentation. The author did not run Rex: installation is available only to invited testers, so it did not make it into the table.
- tmux 3.8: does not process the protocol itself. It can be passed through only via passthrough, for which the program must wrap the sequence in a tmux DCS; Codex writes OSC 7501 directly, so apparently a status run inside tmux does not reach the outer terminal.
- WezTerm, Windows Terminal 1.25.3, Wave 0.14.5, Tabby 1.0.238: the number is absent from the source code. Windows Terminal understands the OSC 9;4 progress indicator, but Claude Code explicitly disables it during ordinary local launches.
- Warp: there is no OSC 7501 in the code, but there are the warp@claude-code-warp and warp@codex-warp plugins, with which Warp itself shows permission requests.
- agterm 0.44.1: a macOS terminal from Umputun built on libghostty. It receives statuses via hooks and its own agtermctl CLI, and does not mention OSC 7501 in its source code. According to the author's estimate, Claude Code will get OSC 777 there in response to an XTVERSION query, but this was not verified on a live macOS system.
What to do in practice
If you run several agents, check whether your terminal has native status support: iTerm2 and kitty have working support; Ghostty will get it once its interface starts reading what its library already parses. In Warp and agterm, install the native plugins and hooks. In WezTerm, Wave, Tabby, and Windows Terminal, set the channel manually, at least to terminal_bell.
The limitations are honest ones. The search was done by the decimal number in the source files; a handler in a dependency or under a different name would have been missed. A found number does not yet mean the status is visible on screen, as the Ghostty example shows. For Rex, the data comes only from documentation.
- Nov 24, 2026Anthropic Releases Claude Ship: Three AI Agents Review, Fix, and Approve Pull Requests
- Nov 24, 2026AI Didn't Get 10x More Expensive as Predicted: Tokens Got 200–300x Cheaper in Three Years
- Nov 24, 2026AI Agents Found a Zero-Day and Breached a University Server in 11 Minutes
- Nov 24, 2026Anthropic launches Claude Ship: agents fix and approve pull requests on their own
Key Questions Answered
What agents send to the terminal?
By default, Claude Code runs in auto mode and chooses a channel based on the TERM_PROGRAM variable. In iTerm2 it is OSC 9, in kitty its own OSC 99 protocol, and in Ghostty OSC 777. Terminal.app gets a bell only if it is enabled in the profile. In all other cases the result is no_method_available: WezTerm, Warp, Windows Terminal, Wave, Tabby, Alacritty, and VS Code's built-in terminal don't even get a bell.
What are the key details on A new shared language: OSC 7501?
On October 6, 2026, Mitchell Hashimoto published the Program Status Protocol. A program reports one of five states: idle, working, done, blocked (with a reason: permission, question, or auth), or error. Previously, "agent inboxes" guessed the status from a spinner symbol in the window title, and the rule for Claude Code alone was changed ten times in three months. Claude Code first asks the terminal whether it understands the protocol, and sends statuses only after receiving an answer.
What to do in practice?
If you run several agents, check whether your terminal has native status support: iTerm2 and kitty have working support; Ghostty will get it once its interface starts reading what its library already parses. In Warp and agterm, install the native plugins and hooks. In WezTerm, Wave, Tabby, and Windows Terminal, set the channel manually, at least to terminal_bell. The limitations are honest ones.
Build & Ship Production AI Agents Without Boilerplate Code
Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.