I am curious with the use cases for something like this might be. I feel like it's very rare nowadays to encounter a CLI/TUI program that doesn't have a "non-interactive" alternative, either in a different tool or built into the application itself.

I know that pexpect can be used for testing such applications though. Is this meant to be for a similar use case? Or were "interactive-only" tools more common at one time in the past?

I think automating nethack is sufficient reason for this tool.

There's no wrong way to play, but savescumming makes it a different kind of game!

Sadly the AIs (nethackchallenge.com) are not yet good enough to show us what closer to optimal play looks like.

not as consistent as the best humans yet, but they have won https://github.com/krajj7/BotHack