| ▲ | danudey 3 hours ago | |
As someone who works on a lot of CLI tools at work I actually like the idea of implementing this in some of our long-running tooling, completely independent of the AI agent use case. I actually created a separate golang library with something like this in mind: https://github.com/danudey/ansipants The original idea I had being that CI environments, or anywhere that shows terminal output, could use a streaming ANSI parsing library to detect when a program sent a 'change window title' OSC event and then start a new collapsable section in its output. This would let programs update the actual terminal window title with its current state when running locally and update the CI interface when running in CI. Adding in the ability to specify the program's current status and (optionally) progress could be extremely useful in CI environments as well. Imagine, for example, a long-running analysis task which uses OSC 7501 to say that it's currently running and is 75% of the way done. CI could expose that in the UI to provide useful information to the end-user without having to print a progress bar or multiple progress lines to the fake terminal it's being run in. | ||
| ▲ | paaloeye an hour ago | parent | next [-] | |
Is https://github.com/danudey/ansipants private? | ||
| ▲ | paaloeye 2 hours ago | parent | prev [-] | |
long-running analysis task can use osc9;4 for progress reporting | ||