Login
You're viewing the ruby.social public feed.
  • Oct 6, 2026, 9:05 PM

    I've published a new, general-purpose terminal specification that gives any program a way to tell the terminal what it's doing: idle, working, waiting, finished, or failed, and why. It is easy to implement on both sides. I've written more about why: mitchellh.com/writing/program-

    The problem this solves is generic and applies in compelling ways to all sorts of use cases (e.g. package managers, build tools), but it really rears a hideous head when it comes to AI and the "agentic inbox" problem.

    I found over 250 different agent orchestrators (with various goals) that all individually implement a heuristic based approach to detecting whether things like Claude Code are working, blocked, done, etc.

    If you look at Herdr’s commit history, you can see around 10 compatibility changes to detect Claude Code within just the past 3 months. (This isn't a dig at Herdr! They're doing great work with what they have, and everyone else is doing the same thing).

    Heuristics are not the way. And over-indexing on agentic use cases isn't the way, because this problem is really interesting for other tools too: Homebrew, Terraform, Cargo, etc. etc.

    Proprietary protocols and out of band APIs are not the way. They have an O(N) integration problem and require extra work to work over SSH or within local VMs/containers.

    The program status specification (OSC 7501) solves this in a reliable, deterministic way that is general-purpose and can be easily adopted by the entire industry.

    Read more: mitchellh.com/writing/program-

    💬 7🔄 41⭐ 96

Replies

  • 💬 1🔄 0⭐ 7
  • 💬 0🔄 0⭐ 2
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 3
  • 💬 0🔄 0⭐ 1
  • Oct 7, 2026, 5:26 AM

    @mitchellh Why not add progress too? I'm thinking about this from an accessibility point of view, there's no good way of emitting progress info which doesn't suck for screen readers. Not sure if we'd get any consumers of this though.

    💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 7, 2026, 7:43 AM

    @mitchellh

    A few years ago, I did a prototype that allowed you to do two things in the FreeBSD kernel:

    The first was a backwards-compatible content-type negotiation protocol for pipes. If either end did a read / write, it would fail and report that the other end didn’t support content negotiation. But if both did, the sender could provide a list of types it could produce and the receiver could select the one that it wanted. I also made libxo use this, so piping any libxo command to something else could transparently have the target select the text, HTML, XML, or JSON version.

    The next part was to add the ability to use the pty layer to create pipes. The pty client could request a new pipe and get an additional communication channel to the terminal emulator. This let you do things like provide HTML-formatted output for the terminal to render in a web view in addition to the text output, to provide screen-reader text for TUIs, and so on.

    This is quite easy to tunnel over ssh because ssh already supports multiple channels, you can then wire them either to the host’s version of the pty layer or to some additional out-of-band mechanism.

    💬 0🔄 0⭐ 2
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0